diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-19 23:35:50 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-19 23:35:50 +0000 |
commit | 2ccf45c50fad0f2c3c20d95eef6d0040b565b291 (patch) | |
tree | 73eac41769a4678fcdb566e78d6e3bde7c10617c /chrome/service | |
parent | da930e1b7adfb28f6895d95004c25984af627080 (diff) | |
download | chromium_src-2ccf45c50fad0f2c3c20d95eef6d0040b565b291.zip chromium_src-2ccf45c50fad0f2c3c20d95eef6d0040b565b291.tar.gz chromium_src-2ccf45c50fad0f2c3c20d95eef6d0040b565b291.tar.bz2 |
Prefix all IPC messages used by src\chrome with Chrome. For e.g ChromeViewMsg_, ChromeViewHostMsg, etc.
This makes it easier to identify which messages are specific to content and chrome.
This is a preparation CL for bug http://code.google.com/p/chromium/issues/detail?id=87335 which
requires IPC's to not span across content and chrome. When IPC's cross these boundaries they need
to be handled as API calls.
BUG=87335
Review URL: http://codereview.chromium.org/7631063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97536 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r-- | chrome/service/service_utility_process_host.cc | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc index dda918a..c633773 100644 --- a/chrome/service/service_utility_process_host.cc +++ b/chrome/service/service_utility_process_host.cc @@ -74,11 +74,12 @@ bool ServiceUtilityProcessHost::StartRenderPDFPagesToMetafile( return false; waiting_for_reply_ = true; return Send( - new UtilityMsg_RenderPDFPagesToMetafile(pdf_file_in_utility_process, - metafile_path_, - render_area, - render_dpi, - page_ranges)); + new ChromeUtilityMsg_RenderPDFPagesToMetafile( + pdf_file_in_utility_process, + metafile_path_, + render_area, + render_dpi, + page_ranges)); #endif // !defined(OS_WIN) } @@ -88,7 +89,7 @@ bool ServiceUtilityProcessHost::StartGetPrinterCapsAndDefaults( if (!StartProcess(true, exposed_path)) return false; waiting_for_reply_ = true; - return Send(new UtilityMsg_GetPrinterCapsAndDefaults(printer_name)); + return Send(new ChromeUtilityMsg_GetPrinterCapsAndDefaults(printer_name)); } bool ServiceUtilityProcessHost::StartProcess(bool no_sandbox, @@ -138,10 +139,11 @@ bool ServiceUtilityProcessHost::OnMessageReceived(const IPC::Message& message) { bool msg_is_ok = false; IPC_BEGIN_MESSAGE_MAP_EX(ServiceUtilityProcessHost, message, msg_is_ok) #if defined(OS_WIN) // This hack is Windows-specific. - IPC_MESSAGE_HANDLER(UtilityHostMsg_PreCacheFont, OnPreCacheFont) + IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_PreCacheFont, OnPreCacheFont) #endif - IPC_MESSAGE_HANDLER(UtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, - OnRenderPDFPagesToMetafileSucceeded) + IPC_MESSAGE_HANDLER( + ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, + OnRenderPDFPagesToMetafileSucceeded) IPC_MESSAGE_UNHANDLED(msg_is_ok__ = MessageForClient(message)) IPC_END_MESSAGE_MAP_EX() return true; @@ -184,11 +186,12 @@ bool ServiceUtilityProcessHost::Client::OnMessageReceived( bool msg_is_ok = true; bool handled = true; IPC_BEGIN_MESSAGE_MAP_EX(ServiceUtilityProcessHost, message, msg_is_ok) - IPC_MESSAGE_HANDLER(UtilityHostMsg_RenderPDFPagesToMetafile_Failed, + IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed, Client::OnRenderPDFPagesToMetafileFailed) - IPC_MESSAGE_HANDLER(UtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, - Client::OnGetPrinterCapsAndDefaultsSucceeded) - IPC_MESSAGE_HANDLER(UtilityHostMsg_GetPrinterCapsAndDefaults_Failed, + IPC_MESSAGE_HANDLER( + ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, + Client::OnGetPrinterCapsAndDefaultsSucceeded) + IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, Client::OnGetPrinterCapsAndDefaultsFailed) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP_EX() |