This source file includes following definitions.
- render_process_id_
- OverrideThreadForMessage
- OnMessageReceived
- OnMsgShowBrowserAccountManagementUI
- OnMsgGetManagedAccounts
#include "chrome/browser/signin/principals_message_filter.h"
#include "chrome/common/render_messages.h"
#include "content/public/browser/browser_thread.h"
PrincipalsMessageFilter::PrincipalsMessageFilter(int render_process_id)
: BrowserMessageFilter(ChromeMsgStart),
render_process_id_(render_process_id) {}
PrincipalsMessageFilter::~PrincipalsMessageFilter(){}
void PrincipalsMessageFilter::OverrideThreadForMessage(
const IPC::Message& message,
content::BrowserThread::ID* thread) {
if (message.type() == ChromeViewHostMsg_ShowBrowserAccountManagementUI::ID)
*thread = content::BrowserThread::UI;
}
bool PrincipalsMessageFilter::OnMessageReceived(const IPC::Message& message,
bool* message_was_ok) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP_EX(PrincipalsMessageFilter, message, *message_was_ok)
IPC_MESSAGE_HANDLER(
ChromeViewHostMsg_GetManagedAccounts, OnMsgGetManagedAccounts)
IPC_MESSAGE_HANDLER(
ChromeViewHostMsg_ShowBrowserAccountManagementUI,
OnMsgShowBrowserAccountManagementUI)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
}
void PrincipalsMessageFilter::OnMsgShowBrowserAccountManagementUI(){
}
void PrincipalsMessageFilter::OnMsgGetManagedAccounts(
const GURL& url, std::vector<std::string>* managed_accounts) {
}