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

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

Issue 6646005: Creates the ipclist utility that chrome security team has wanted to dump... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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) 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 // Multiply-included file, no standard include guard.
6
7 #include <string>
8
9 #include "chrome/common/remoting/chromoting_host_info.h"
10 #include "ipc/ipc_channel_handle.h"
11 #include "ipc/ipc_message_macros.h"
12
13 #define IPC_MESSAGE_START ServiceMsgStart
14
15 // Singly-included section not yet converted
5 #ifndef CHROME_COMMON_SERVICE_MESSAGES_H_ 16 #ifndef CHROME_COMMON_SERVICE_MESSAGES_H_
6 #define CHROME_COMMON_SERVICE_MESSAGES_H_ 17 #define CHROME_COMMON_SERVICE_MESSAGES_H_
7 18
8 #include "chrome/common/service_messages_internal.h"
9
10 namespace remoting { 19 namespace remoting {
11 struct ChromotingHostInfo; 20 struct ChromotingHostInfo;
12 } // namespace remoting 21 } // namespace remoting
13 22
14 namespace IPC { 23 namespace IPC {
15 24
16 template <> 25 template <>
17 struct ParamTraits<remoting::ChromotingHostInfo> { 26 struct ParamTraits<remoting::ChromotingHostInfo> {
18 typedef remoting::ChromotingHostInfo param_type; 27 typedef remoting::ChromotingHostInfo param_type;
19 static void Write(Message* m, const param_type& p); 28 static void Write(Message* m, const param_type& p);
20 static bool Read(const Message* m, void** iter, param_type* p); 29 static bool Read(const Message* m, void** iter, param_type* p);
21 static void Log(const param_type& p, std::string* l); 30 static void Log(const param_type& p, std::string* l);
22 }; 31 };
23 32
24 } // namespace IPC 33 } // namespace IPC
25 34
26 #endif // CHROME_COMMON_SERVICE_MESSAGES_H_ 35 #endif // CHROME_COMMON_SERVICE_MESSAGES_H_
36
37 //------------------------------------------------------------------------------
38 // Service process messages:
39 // These are messages from the browser to the service process.
40 // Tell the service process to enable the cloud proxy passing in the lsid
41 // of the account to be used.
42 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy,
43 std::string /* lsid */)
44 // Tell the service process to enable the cloud proxy passing in specific
45 // tokens to be used.
46 IPC_MESSAGE_CONTROL2(ServiceMsg_EnableCloudPrintProxyWithTokens,
47 std::string, /* token for cloudprint service */
48 std::string /* token for Google Talk service */)
49 // Tell the service process to disable the cloud proxy.
50 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy)
51
52 // Requests a message back on whether the cloud print proxy is
53 // enabled.
54 IPC_MESSAGE_CONTROL0(ServiceMsg_IsCloudPrintProxyEnabled)
55
56 // Set credentials used by the RemotingHost.
57 IPC_MESSAGE_CONTROL2(ServiceMsg_SetRemotingHostCredentials,
58 std::string, /* username */
59 std::string /* token for XMPP */)
60
61 // Enabled remoting host.
62 IPC_MESSAGE_CONTROL0(ServiceMsg_EnableRemotingHost)
63
64 // Disable remoting host.
65 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableRemotingHost)
66
67 // Get remoting host status information.
68 IPC_MESSAGE_CONTROL0(ServiceMsg_GetRemotingHostInfo)
69
70 // Tell the service process to shutdown.
71 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown)
72
73 // Tell the service process that an update is available.
74 IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable)
75
76 //------------------------------------------------------------------------------
77 // Service process host messages:
78 // These are messages from the service process to the browser.
79 // Sent when the cloud print proxy has an authentication error.
80 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError)
81
82 // Sent as a response to a request for enablement status.
83 IPC_MESSAGE_CONTROL2(ServiceHostMsg_CloudPrintProxy_IsEnabled,
84 bool, /* Is the proxy enabled? */
85 std::string /* Email address of account */)
86
87 IPC_MESSAGE_CONTROL1(ServiceHostMsg_RemotingHost_HostInfo,
88 remoting::ChromotingHostInfo /* host_info */)
89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698