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

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

Issue 5526008: Simplify the magic required to create IPC message headers a bit. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/service_messages.cc ('k') | chrome/common/utility_messages.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) 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 #include "ipc/ipc_message_macros.h"
8 // header guard.
9 // See ipc_message_macros.h for explanation of the macros and passes.
10 8
11 // This file needs to be included again, even though we're actually included 9 #define IPC_MESSAGE_START ServiceMsgStart
12 // from it via utility_messages.h.
13 #include "ipc/ipc_message_macros.h"
14 10
15 //------------------------------------------------------------------------------ 11 //------------------------------------------------------------------------------
16 // Service process messages: 12 // Service process messages:
17 // These are messages from the browser to the service process. 13 // These are messages from the browser to the service process.
18 IPC_BEGIN_MESSAGES(Service) 14 // Tell the service process to enable the cloud proxy passing in the lsid
15 // of the account to be used.
16 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy,
17 std::string /* lsid */)
18 // Tell the service process to enable the cloud proxy passing in specific
19 // tokens to be used.
20 IPC_MESSAGE_CONTROL2(ServiceMsg_EnableCloudPrintProxyWithTokens,
21 std::string, /* token for cloudprint service */
22 std::string /* token for Google Talk service */)
23 // Tell the service process to disable the cloud proxy.
24 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy)
19 25
20 // Tell the service process to enable the cloud proxy passing in the lsid 26 // Requests a message back on whether the cloud print proxy is
21 // of the account to be used. 27 // enabled.
22 IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy, 28 IPC_MESSAGE_CONTROL0(ServiceMsg_IsCloudPrintProxyEnabled)
23 std::string /* lsid */)
24 // Tell the service process to enable the cloud proxy passing in specific
25 // tokens to be used.
26 IPC_MESSAGE_CONTROL2(ServiceMsg_EnableCloudPrintProxyWithTokens,
27 std::string, /* token for cloudprint service */
28 std::string /* token for Google Talk service */)
29 // Tell the service process to disable the cloud proxy.
30 IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy)
31 29
32 // Requests a message back on whether the cloud print proxy is 30 // This message is for testing purpose.
33 // enabled. 31 IPC_MESSAGE_CONTROL0(ServiceMsg_Hello)
34 IPC_MESSAGE_CONTROL0(ServiceMsg_IsCloudPrintProxyEnabled)
35 32
36 // This message is for testing purpose. 33 // This message is for enabling the remoting process.
37 IPC_MESSAGE_CONTROL0(ServiceMsg_Hello) 34 IPC_MESSAGE_CONTROL3(ServiceMsg_EnableRemotingWithTokens,
35 std::string, /* username */
36 std::string, /* Token for remoting */
37 std::string /* Token for Google Talk */)
38 38
39 // This message is for enabling the remoting process. 39 // Tell the service process to shutdown.
40 IPC_MESSAGE_CONTROL3(ServiceMsg_EnableRemotingWithTokens, 40 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown)
41 std::string, /* username */
42 std::string, /* Token for remoting */
43 std::string /* Token for Google Talk */)
44 41
45 // Tell the service process to shutdown. 42 // Tell the service process that an update is available.
46 IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown) 43 IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable)
47
48 // Tell the service process that an update is available.
49 IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable)
50
51 IPC_END_MESSAGES(Service)
52 44
53 //------------------------------------------------------------------------------ 45 //------------------------------------------------------------------------------
54 // Service process host messages: 46 // Service process host messages:
55 // These are messages from the service process to the browser. 47 // These are messages from the service process to the browser.
56 IPC_BEGIN_MESSAGES(ServiceHost) 48 // Sent when the cloud print proxy has an authentication error.
49 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError)
57 50
58 // Sent when the cloud print proxy has an authentication error. 51 // Sent as a response to a request for enablement status.
59 IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError) 52 IPC_MESSAGE_CONTROL2(ServiceHostMsg_CloudPrintProxy_IsEnabled,
53 bool, /* Is the proxy enabled? */
54 std::string /* Email address of account */)
60 55
61 // Sent as a response to a request for enablement status. 56 // Sent from the service process in response to a Hello message.
62 IPC_MESSAGE_CONTROL2(ServiceHostMsg_CloudPrintProxy_IsEnabled, 57 IPC_MESSAGE_CONTROL0(ServiceHostMsg_GoodDay)
63 bool, /* Is the proxy enabled? */
64 std::string /* Email address of account */)
65
66 // Sent from the service process in response to a Hello message.
67 IPC_MESSAGE_CONTROL0(ServiceHostMsg_GoodDay)
68
69 IPC_END_MESSAGES(ServiceHost)
OLDNEW
« no previous file with comments | « chrome/common/service_messages.cc ('k') | chrome/common/utility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698