Index: chrome/common/service_messages.h |
=================================================================== |
--- chrome/common/service_messages.h (revision 77320) |
+++ chrome/common/service_messages.h (working copy) |
@@ -2,11 +2,20 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// Multiply-included file, no standard include guard. |
+ |
+#include <string> |
+ |
+#include "chrome/common/remoting/chromoting_host_info.h" |
+#include "ipc/ipc_channel_handle.h" |
+#include "ipc/ipc_message_macros.h" |
+ |
+#define IPC_MESSAGE_START ServiceMsgStart |
+ |
+// Singly-included section not yet converted |
#ifndef CHROME_COMMON_SERVICE_MESSAGES_H_ |
#define CHROME_COMMON_SERVICE_MESSAGES_H_ |
-#include "chrome/common/service_messages_internal.h" |
- |
namespace remoting { |
struct ChromotingHostInfo; |
} // namespace remoting |
@@ -24,3 +33,57 @@ |
} // namespace IPC |
#endif // CHROME_COMMON_SERVICE_MESSAGES_H_ |
+ |
+//------------------------------------------------------------------------------ |
+// Service process messages: |
+// These are messages from the browser to the service process. |
+// Tell the service process to enable the cloud proxy passing in the lsid |
+// of the account to be used. |
+IPC_MESSAGE_CONTROL1(ServiceMsg_EnableCloudPrintProxy, |
+ std::string /* lsid */) |
+// Tell the service process to enable the cloud proxy passing in specific |
+// tokens to be used. |
+IPC_MESSAGE_CONTROL2(ServiceMsg_EnableCloudPrintProxyWithTokens, |
+ std::string, /* token for cloudprint service */ |
+ std::string /* token for Google Talk service */) |
+// Tell the service process to disable the cloud proxy. |
+IPC_MESSAGE_CONTROL0(ServiceMsg_DisableCloudPrintProxy) |
+ |
+// Requests a message back on whether the cloud print proxy is |
+// enabled. |
+IPC_MESSAGE_CONTROL0(ServiceMsg_IsCloudPrintProxyEnabled) |
+ |
+// Set credentials used by the RemotingHost. |
+IPC_MESSAGE_CONTROL2(ServiceMsg_SetRemotingHostCredentials, |
+ std::string, /* username */ |
+ std::string /* token for XMPP */) |
+ |
+// Enabled remoting host. |
+IPC_MESSAGE_CONTROL0(ServiceMsg_EnableRemotingHost) |
+ |
+// Disable remoting host. |
+IPC_MESSAGE_CONTROL0(ServiceMsg_DisableRemotingHost) |
+ |
+// Get remoting host status information. |
+IPC_MESSAGE_CONTROL0(ServiceMsg_GetRemotingHostInfo) |
+ |
+// Tell the service process to shutdown. |
+IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown) |
+ |
+// Tell the service process that an update is available. |
+IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable) |
+ |
+//------------------------------------------------------------------------------ |
+// Service process host messages: |
+// These are messages from the service process to the browser. |
+// Sent when the cloud print proxy has an authentication error. |
+IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError) |
+ |
+// Sent as a response to a request for enablement status. |
+IPC_MESSAGE_CONTROL2(ServiceHostMsg_CloudPrintProxy_IsEnabled, |
+ bool, /* Is the proxy enabled? */ |
+ std::string /* Email address of account */) |
+ |
+IPC_MESSAGE_CONTROL1(ServiceHostMsg_RemotingHost_HostInfo, |
+ remoting::ChromotingHostInfo /* host_info */) |
+ |