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

Side by Side Diff: chrome/common/service_messages.h

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
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/service/cloud_print/cloud_print_connector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Multiply-included message file, no traditional include guard. 5 // Multiply-included message file, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/values.h"
9 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" 10 #include "chrome/common/cloud_print/cloud_print_proxy_info.h"
10 #include "ipc/ipc_channel_handle.h" 11 #include "ipc/ipc_channel_handle.h"
11 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
12 13
13 #define IPC_MESSAGE_START ServiceMsgStart 14 #define IPC_MESSAGE_START ServiceMsgStart
14 15
15 IPC_STRUCT_TRAITS_BEGIN(cloud_print::CloudPrintProxyInfo) 16 IPC_STRUCT_TRAITS_BEGIN(cloud_print::CloudPrintProxyInfo)
16 IPC_STRUCT_TRAITS_MEMBER(enabled) 17 IPC_STRUCT_TRAITS_MEMBER(enabled)
17 IPC_STRUCT_TRAITS_MEMBER(email) 18 IPC_STRUCT_TRAITS_MEMBER(email)
18 IPC_STRUCT_TRAITS_MEMBER(proxy_id) 19 IPC_STRUCT_TRAITS_MEMBER(proxy_id)
19 IPC_STRUCT_TRAITS_END() 20 IPC_STRUCT_TRAITS_END()
20 21
21 //----------------------------------------------------------------------------- 22 //-----------------------------------------------------------------------------
22 // Service process messages: 23 // Service process messages:
23 // These are messages from the browser to the service process. 24 // These are messages from the browser to the service process.
24 // Tell the service process to enable the cloud proxy passing in the lsid 25 // Tell the service process to enable the cloud proxy passing in the lsid
25 // of the account to be used. 26 // of the account to be used.
26 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy, 27 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy,
27 std::string /* lsid */) 28 std::string /* lsid */)
28 29
29 // Tell the service process to enable the cloud proxy passing in the OAuth2 30 // Tell the service process to enable the cloud proxy passing in the OAuth2
30 // auth code of a robot account. 31 // auth code of a robot account.
31 IPC_MESSAGE_CONTROL5(ServiceMsg_EnableCloudPrintProxyWithRobot, 32 IPC_MESSAGE_CONTROL4(ServiceMsg_EnableCloudPrintProxyWithRobot,
32 std::string /* robot_auth_code */, 33 std::string /* robot_auth_code */,
33 std::string /* robot_email */, 34 std::string /* robot_email */,
34 std::string /* user_email */, 35 std::string /* user_email */,
35 bool /* connect_new_printers */, 36 DictionaryValue /* user_settings */)
36 std::vector<std::string> /* printer_blacklist */)
37 37
38 // Tell the service process to disable the cloud proxy. 38 // Tell the service process to disable the cloud proxy.
39 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy) 39 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy)
40 40
41 // Requests a message back on the current status of the cloud print proxy 41 // Requests a message back on the current status of the cloud print proxy
42 // (whether it is enabled, the email address and the proxy id). 42 // (whether it is enabled, the email address and the proxy id).
43 IPC_MESSAGE_CONTROL0(ServiceMsg_GetCloudPrintProxyInfo) 43 IPC_MESSAGE_CONTROL0(ServiceMsg_GetCloudPrintProxyInfo)
44 44
45 // Tell the service process to shutdown. 45 // Tell the service process to shutdown.
46 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown) 46 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown)
47 47
48 // Tell the service process that an update is available. 48 // Tell the service process that an update is available.
49 IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable) 49 IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable)
50 50
51 //----------------------------------------------------------------------------- 51 //-----------------------------------------------------------------------------
52 // Service process host messages: 52 // Service process host messages:
53 // These are messages from the service process to the browser. 53 // These are messages from the service process to the browser.
54 // Sent when the cloud print proxy has an authentication error. 54 // Sent when the cloud print proxy has an authentication error.
55 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError) 55 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError)
56 56
57 // Sent as a response to a request for cloud print proxy info 57 // Sent as a response to a request for cloud print proxy info
58 IPC_MESSAGE_CONTROL1(ServiceHostMsg_CloudPrintProxy_Info, 58 IPC_MESSAGE_CONTROL1(ServiceHostMsg_CloudPrintProxy_Info,
59 cloud_print::CloudPrintProxyInfo /* proxy info */) 59 cloud_print::CloudPrintProxyInfo /* proxy info */)
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/service/cloud_print/cloud_print_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698