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

Side by Side Diff: chrome/service/service_ipc_server.cc

Issue 11037005: New Cloud Print Private API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/service/service_ipc_server.h" 5 #include "chrome/service/service_ipc_server.h"
6 6
7 #include "chrome/common/service_messages.h" 7 #include "chrome/common/service_messages.h"
8 #include "chrome/service/cloud_print/cloud_print_proxy.h" 8 #include "chrome/service/cloud_print/cloud_print_proxy.h"
9 #include "chrome/service/service_process.h" 9 #include "chrome/service/service_process.h"
10 #include "ipc/ipc_logging.h" 10 #include "ipc/ipc_logging.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 return handled; 108 return handled;
109 } 109 }
110 110
111 void ServiceIPCServer::OnEnableCloudPrintProxy(const std::string& lsid) { 111 void ServiceIPCServer::OnEnableCloudPrintProxy(const std::string& lsid) {
112 g_service_process->GetCloudPrintProxy()->EnableForUser(lsid); 112 g_service_process->GetCloudPrintProxy()->EnableForUser(lsid);
113 } 113 }
114 114
115 void ServiceIPCServer::OnEnableCloudPrintProxyWithRobot( 115 void ServiceIPCServer::OnEnableCloudPrintProxyWithRobot(
116 const std::string& robot_auth_code, 116 const std::string& robot_auth_code,
117 const std::string& robot_email, 117 const std::string& robot_email,
118 const std::string& user_email) { 118 const std::string& user_email,
119 bool connect_new_printers,
120 const std::vector<std::string>& printer_blacklist) {
119 g_service_process->GetCloudPrintProxy()->EnableForUserWithRobot( 121 g_service_process->GetCloudPrintProxy()->EnableForUserWithRobot(
120 robot_auth_code, 122 robot_auth_code, robot_email, user_email, connect_new_printers,
121 robot_email, 123 printer_blacklist);
122 user_email);
123 } 124 }
124 125
125 void ServiceIPCServer::OnGetCloudPrintProxyInfo() { 126 void ServiceIPCServer::OnGetCloudPrintProxyInfo() {
126 cloud_print::CloudPrintProxyInfo info; 127 cloud_print::CloudPrintProxyInfo info;
127 g_service_process->GetCloudPrintProxy()->GetProxyInfo(&info); 128 g_service_process->GetCloudPrintProxy()->GetProxyInfo(&info);
128 channel_->Send(new ServiceHostMsg_CloudPrintProxy_Info(info)); 129 channel_->Send(new ServiceHostMsg_CloudPrintProxy_Info(info));
129 } 130 }
130 131
131 void ServiceIPCServer::OnDisableCloudPrintProxy() { 132 void ServiceIPCServer::OnDisableCloudPrintProxy() {
132 // User disabled CloudPrint proxy explicitly. Delete printers 133 // User disabled CloudPrint proxy explicitly. Delete printers
(...skipping 11 matching lines...) Expand all
144 } 145 }
145 146
146 void ServiceIPCServer::OnEnableVirtualDriver() { 147 void ServiceIPCServer::OnEnableVirtualDriver() {
147 g_service_process->EnableVirtualPrintDriver(); 148 g_service_process->EnableVirtualPrintDriver();
148 } 149 }
149 150
150 void ServiceIPCServer::OnDisableVirtualDriver() { 151 void ServiceIPCServer::OnDisableVirtualDriver() {
151 g_service_process->DisableVirtualPrintDriver(); 152 g_service_process->DisableVirtualPrintDriver();
152 } 153 }
153 154
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698