Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4900)

Unified Diff: chrome/service/service_ipc_server.cc

Issue 7485011: Virtual Cloud Print Driver for Mac. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update GYP file to show warnings. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/service/service_ipc_server.cc
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc
index b3582a2e09d19af6d0f83d319f05dc9e524c91df..9b8fda6421a472cd18d6368e1838a3981954c4bb 100644
--- a/chrome/service/service_ipc_server.cc
+++ b/chrome/service/service_ipc_server.cc
@@ -109,6 +109,10 @@ bool ServiceIPCServer::OnMessageReceived(const IPC::Message& msg) {
OnGetCloudPrintProxyInfo)
IPC_MESSAGE_HANDLER(ServiceMsg_Shutdown, OnShutdown);
IPC_MESSAGE_HANDLER(ServiceMsg_UpdateAvailable, OnUpdateAvailable);
+ IPC_MESSAGE_HANDLER(ServiceMsg_EnableVirtualDriver,
+ OnEnableVirtualDriver);
+ IPC_MESSAGE_HANDLER(ServiceMsg_DisableVirtualDriver,
+ OnDisableVirtualDriver);
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -145,3 +149,11 @@ void ServiceIPCServer::OnShutdown() {
void ServiceIPCServer::OnUpdateAvailable() {
g_service_process->SetUpdateAvailable();
}
+
+void ServiceIPCServer::OnEnableVirtualDriver() {
+ g_service_process->EnableVirtualPrintDriver();
+}
+
+void ServiceIPCServer::OnDisableVirtualDriver() {
+ g_service_process->DisableVirtualPrintDriver();
+}

Powered by Google App Engine
This is Rietveld 408576698