OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 5 #include <string> |
6 | 6 |
7 // This header is meant to be included in multiple passes, hence no traditional | 7 // This header is meant to be included in multiple passes, hence no traditional |
8 // header guard. | 8 // header guard. |
9 // See ipc_message_macros.h for explanation of the macros and passes. | 9 // See ipc_message_macros.h for explanation of the macros and passes. |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy, | 22 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy, |
23 std::string /* lsid */) | 23 std::string /* lsid */) |
24 // Tell the service process to enable the cloud proxy passing in specific | 24 // Tell the service process to enable the cloud proxy passing in specific |
25 // tokens to be used. | 25 // tokens to be used. |
26 IPC_MESSAGE_CONTROL2(ServiceMsg_EnableCloudPrintProxyWithTokens, | 26 IPC_MESSAGE_CONTROL2(ServiceMsg_EnableCloudPrintProxyWithTokens, |
27 std::string, /* token for cloudprint service */ | 27 std::string, /* token for cloudprint service */ |
28 std::string /* token for Google Talk service */) | 28 std::string /* token for Google Talk service */) |
29 // Tell the service process to disable the cloud proxy. | 29 // Tell the service process to disable the cloud proxy. |
30 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy) | 30 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy) |
31 | 31 |
32 // Queries whether the cloud print proxy is enabled. | 32 // Requests a message back on whether the cloud print proxy is |
33 IPC_SYNC_MESSAGE_ROUTED0_2(ServiceMsg_IsCloudPrintProxyEnabled, | 33 // enabled. |
34 bool, /* out: is_enabled*/ | 34 IPC_MESSAGE_CONTROL0(ServiceMsg_IsCloudPrintProxyEnabled) |
35 std::string /* out: Email address of account */ | |
36 /* used for Cloud Print, if enabled*/) | |
37 | 35 |
38 // This message is for testing purpose. | 36 // This message is for testing purpose. |
39 IPC_MESSAGE_CONTROL0(ServiceMsg_Hello) | 37 IPC_MESSAGE_CONTROL0(ServiceMsg_Hello) |
40 | 38 |
41 // This message is for enabling the remoting process. | 39 // This message is for enabling the remoting process. |
42 IPC_MESSAGE_CONTROL3(ServiceMsg_EnableRemotingWithTokens, | 40 IPC_MESSAGE_CONTROL3(ServiceMsg_EnableRemotingWithTokens, |
43 std::string, /* username */ | 41 std::string, /* username */ |
44 std::string, /* Token for remoting */ | 42 std::string, /* Token for remoting */ |
45 std::string /* Token for Google Talk */) | 43 std::string /* Token for Google Talk */) |
46 | 44 |
47 // Tell the service process to shutdown. | 45 // Tell the service process to shutdown. |
48 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown) | 46 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown) |
49 | 47 |
50 IPC_END_MESSAGES(Service) | 48 IPC_END_MESSAGES(Service) |
51 | 49 |
52 //------------------------------------------------------------------------------ | 50 //------------------------------------------------------------------------------ |
53 // Service process host messages: | 51 // Service process host messages: |
54 // These are messages from the service process to the browser. | 52 // These are messages from the service process to the browser. |
55 IPC_BEGIN_MESSAGES(ServiceHost) | 53 IPC_BEGIN_MESSAGES(ServiceHost) |
56 | 54 |
57 // Sent when the cloud print proxy has an authentication error. | 55 // Sent when the cloud print proxy has an authentication error. |
58 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError) | 56 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError) |
59 | 57 |
| 58 // Sent as a response to a request for enablement status. |
| 59 IPC_MESSAGE_CONTROL2(ServiceHostMsg_CloudPrintProxy_IsEnabled, |
| 60 bool, /* Is the proxy enabled? */ |
| 61 std::string /* Email address of account */) |
| 62 |
60 // Sent from the service process in response to a Hello message. | 63 // Sent from the service process in response to a Hello message. |
61 IPC_MESSAGE_CONTROL0(ServiceHostMsg_GoodDay) | 64 IPC_MESSAGE_CONTROL0(ServiceHostMsg_GoodDay) |
62 | 65 |
63 IPC_END_MESSAGES(ServiceHost) | 66 IPC_END_MESSAGES(ServiceHost) |
OLD | NEW |