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