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

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

Issue 14215009: Changed cloud print private API to pass all page settings as single object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 void ServiceIPCServer::OnEnableCloudPrintProxy(const std::string& lsid) { 107 void ServiceIPCServer::OnEnableCloudPrintProxy(const std::string& lsid) {
108 g_service_process->GetCloudPrintProxy()->EnableForUser(lsid); 108 g_service_process->GetCloudPrintProxy()->EnableForUser(lsid);
109 } 109 }
110 110
111 void ServiceIPCServer::OnEnableCloudPrintProxyWithRobot( 111 void ServiceIPCServer::OnEnableCloudPrintProxyWithRobot(
112 const std::string& robot_auth_code, 112 const std::string& robot_auth_code,
113 const std::string& robot_email, 113 const std::string& robot_email,
114 const std::string& user_email, 114 const std::string& user_email,
115 bool connect_new_printers, 115 const base::DictionaryValue& user_settings) {
116 const std::vector<std::string>& printer_blacklist) {
117 g_service_process->GetCloudPrintProxy()->EnableForUserWithRobot( 116 g_service_process->GetCloudPrintProxy()->EnableForUserWithRobot(
118 robot_auth_code, robot_email, user_email, connect_new_printers, 117 robot_auth_code, robot_email, user_email, user_settings);
119 printer_blacklist);
120 } 118 }
121 119
122 void ServiceIPCServer::OnGetCloudPrintProxyInfo() { 120 void ServiceIPCServer::OnGetCloudPrintProxyInfo() {
123 cloud_print::CloudPrintProxyInfo info; 121 cloud_print::CloudPrintProxyInfo info;
124 g_service_process->GetCloudPrintProxy()->GetProxyInfo(&info); 122 g_service_process->GetCloudPrintProxy()->GetProxyInfo(&info);
125 channel_->Send(new ServiceHostMsg_CloudPrintProxy_Info(info)); 123 channel_->Send(new ServiceHostMsg_CloudPrintProxy_Info(info));
126 } 124 }
127 125
128 void ServiceIPCServer::OnDisableCloudPrintProxy() { 126 void ServiceIPCServer::OnDisableCloudPrintProxy() {
129 // User disabled CloudPrint proxy explicitly. Delete printers 127 // User disabled CloudPrint proxy explicitly. Delete printers
130 // registered from this proxy and disable proxy. 128 // registered from this proxy and disable proxy.
131 g_service_process->GetCloudPrintProxy()-> 129 g_service_process->GetCloudPrintProxy()->
132 UnregisterPrintersAndDisableForUser(); 130 UnregisterPrintersAndDisableForUser();
133 } 131 }
134 132
135 void ServiceIPCServer::OnShutdown() { 133 void ServiceIPCServer::OnShutdown() {
136 g_service_process->Shutdown(); 134 g_service_process->Shutdown();
137 } 135 }
138 136
139 void ServiceIPCServer::OnUpdateAvailable() { 137 void ServiceIPCServer::OnUpdateAvailable() {
140 g_service_process->SetUpdateAvailable(); 138 g_service_process->SetUpdateAvailable();
141 } 139 }
142 140
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698