diff options
Diffstat (limited to 'chrome/common/service_messages_internal.h')
-rw-r--r-- | chrome/common/service_messages_internal.h | 89 |
1 files changed, 45 insertions, 44 deletions
diff --git a/chrome/common/service_messages_internal.h b/chrome/common/service_messages_internal.h index bb6e34d..94a0215 100644 --- a/chrome/common/service_messages_internal.h +++ b/chrome/common/service_messages_internal.h @@ -4,66 +4,67 @@ #include <string> -// This header is meant to be included in multiple passes, hence no traditional -// header guard. -// See ipc_message_macros.h for explanation of the macros and passes. - -// This file needs to be included again, even though we're actually included -// from it via utility_messages.h. #include "ipc/ipc_message_macros.h" +#include "chrome/common/remoting/chromoting_host_info.h" + +#define IPC_MESSAGE_START ServiceMsgStart + //------------------------------------------------------------------------------ // Service process messages: // These are messages from the browser to the service process. -IPC_BEGIN_MESSAGES(Service) +// 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) - // 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) - // Requests a message back on whether the cloud print proxy is - // enabled. - IPC_MESSAGE_CONTROL0(ServiceMsg_IsCloudPrintProxyEnabled) +// This message is for testing purpose. +IPC_MESSAGE_CONTROL0(ServiceMsg_Hello) - // This message is for testing purpose. - IPC_MESSAGE_CONTROL0(ServiceMsg_Hello) +// Set credentials used by the RemotingHost. +IPC_MESSAGE_CONTROL2(ServiceMsg_SetRemotingHostCredentials, + std::string, /* username */ + std::string /* token for XMPP */) - // This message is for enabling the remoting process. - IPC_MESSAGE_CONTROL3(ServiceMsg_EnableRemotingWithTokens, - std::string, /* username */ - std::string, /* Token for remoting */ - std::string /* Token for Google Talk */) +// Enabled remoting host. +IPC_MESSAGE_CONTROL0(ServiceMsg_EnableRemotingHost) - // Tell the service process to shutdown. - IPC_MESSAGE_CONTROL0(ServiceMsg_Shutdown) +// Disable remoting host. +IPC_MESSAGE_CONTROL0(ServiceMsg_DisableRemotingHost) - // Tell the service process that an update is available. - IPC_MESSAGE_CONTROL0(ServiceMsg_UpdateAvailable) +// Get remoting host status information. +IPC_MESSAGE_CONTROL0(ServiceMsg_GetRemotingHostInfo) -IPC_END_MESSAGES(Service) +// 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. -IPC_BEGIN_MESSAGES(ServiceHost) - - // Sent when the cloud print proxy has an authentication error. - IPC_MESSAGE_CONTROL0(ServiceHostMsg_CloudPrintProxy_AuthError) +// 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 */) +// 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 */) - // Sent from the service process in response to a Hello message. - IPC_MESSAGE_CONTROL0(ServiceHostMsg_GoodDay) +IPC_MESSAGE_CONTROL1(ServiceHostMsg_RemotingHost_HostInfo, + remoting::ChromotingHostInfo /* host_info */) -IPC_END_MESSAGES(ServiceHost) +// Sent from the service process in response to a Hello message. +IPC_MESSAGE_CONTROL0(ServiceHostMsg_GoodDay) |