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 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
8 | 8 |
| 9 #include "chrome/common/remoting/chromoting_host_info.h" |
| 10 |
9 #define IPC_MESSAGE_START ServiceMsgStart | 11 #define IPC_MESSAGE_START ServiceMsgStart |
10 | 12 |
11 //------------------------------------------------------------------------------ | 13 //------------------------------------------------------------------------------ |
12 // Service process messages: | 14 // Service process messages: |
13 // These are messages from the browser to the service process. | 15 // These are messages from the browser to the service process. |
14 // Tell the service process to enable the cloud proxy passing in the lsid | 16 // Tell the service process to enable the cloud proxy passing in the lsid |
15 // of the account to be used. | 17 // of the account to be used. |
16 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy, | 18 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy, |
17 std::string /* lsid */) | 19 std::string /* lsid */) |
18 // Tell the service process to enable the cloud proxy passing in specific | 20 // Tell the service process to enable the cloud proxy passing in specific |
19 // tokens to be used. | 21 // tokens to be used. |
20 IPC_MESSAGE_CONTROL2(ServiceMsg_EnableCloudPrintProxyWithTokens, | 22 IPC_MESSAGE_CONTROL2(ServiceMsg_EnableCloudPrintProxyWithTokens, |
21 std::string, /* token for cloudprint service */ | 23 std::string, /* token for cloudprint service */ |
22 std::string /* token for Google Talk service */) | 24 std::string /* token for Google Talk service */) |
23 // Tell the service process to disable the cloud proxy. | 25 // Tell the service process to disable the cloud proxy. |
24 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy) | 26 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy) |
25 | 27 |
26 // Requests a message back on whether the cloud print proxy is | 28 // Requests a message back on whether the cloud print proxy is |
27 // enabled. | 29 // enabled. |
28 IPC_MESSAGE_CONTROL0(ServiceMsg_IsCloudPrintProxyEnabled) | 30 IPC_MESSAGE_CONTROL0(ServiceMsg_IsCloudPrintProxyEnabled) |
29 | 31 |
30 // This message is for testing purpose. | 32 // This message is for testing purpose. |
31 IPC_MESSAGE_CONTROL0(ServiceMsg_Hello) | 33 IPC_MESSAGE_CONTROL0(ServiceMsg_Hello) |
32 | 34 |
33 // This message is for enabling the remoting process. | 35 // Set credentials used by the RemotingHost. |
34 IPC_MESSAGE_CONTROL3(ServiceMsg_EnableRemotingWithTokens, | 36 IPC_MESSAGE_CONTROL2(ServiceMsg_SetRemotingHostCredentials, |
35 std::string, /* username */ | 37 std::string, /* username */ |
36 std::string, /* Token for remoting */ | 38 std::string /* token for XMPP */) |
37 std::string /* Token for Google Talk */) | 39 |
| 40 // Enabled remoting host. |
| 41 IPC_MESSAGE_CONTROL0(ServiceMsg_EnableRemotingHost) |
| 42 |
| 43 // Disable remoting host. |
| 44 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableRemotingHost) |
| 45 |
| 46 // Get remoting host status information. |
| 47 IPC_MESSAGE_CONTROL0(ServiceMsg_GetRemotingHostInfo) |
38 | 48 |
39 // Tell the service process to shutdown. | 49 // Tell the service process to shutdown. |
40 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown) | 50 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown) |
41 | 51 |
42 // Tell the service process that an update is available. | 52 // Tell the service process that an update is available. |
43 IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable) | 53 IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable) |
44 | 54 |
45 //------------------------------------------------------------------------------ | 55 //------------------------------------------------------------------------------ |
46 // Service process host messages: | 56 // Service process host messages: |
47 // These are messages from the service process to the browser. | 57 // These are messages from the service process to the browser. |
48 // Sent when the cloud print proxy has an authentication error. | 58 // Sent when the cloud print proxy has an authentication error. |
49 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError) | 59 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError) |
50 | 60 |
51 // Sent as a response to a request for enablement status. | 61 // Sent as a response to a request for enablement status. |
52 IPC_MESSAGE_CONTROL2(ServiceHostMsg_CloudPrintProxy_IsEnabled, | 62 IPC_MESSAGE_CONTROL2(ServiceHostMsg_CloudPrintProxy_IsEnabled, |
53 bool, /* Is the proxy enabled? */ | 63 bool, /* Is the proxy enabled? */ |
54 std::string /* Email address of account */) | 64 std::string /* Email address of account */) |
55 | 65 |
| 66 IPC_MESSAGE_CONTROL1(ServiceHostMsg_RemotingHost_HostInfo, |
| 67 remoting::ChromotingHostInfo /* host_info */) |
| 68 |
56 // Sent from the service process in response to a Hello message. | 69 // Sent from the service process in response to a Hello message. |
57 IPC_MESSAGE_CONTROL0(ServiceHostMsg_GoodDay) | 70 IPC_MESSAGE_CONTROL0(ServiceHostMsg_GoodDay) |
OLD | NEW |