diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 07:57:00 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 07:57:00 +0000 |
commit | 38fe1964640f28c273b2a68a564b7c47a68f8b01 (patch) | |
tree | 872c11ad9630842dc2a39b6bbe64877bcd41f0d0 /chrome/common | |
parent | 6364aad5c4a477197165def0a06f118acd422744 (diff) | |
download | chromium_src-38fe1964640f28c273b2a68a564b7c47a68f8b01.zip chromium_src-38fe1964640f28c273b2a68a564b7c47a68f8b01.tar.gz chromium_src-38fe1964640f28c273b2a68a564b7c47a68f8b01.tar.bz2 |
Added an IPC server in the service process to listen to commands. This is not used yet.
BUG=None
TEST=None for now since this code is not enabled.
Review URL: http://codereview.chromium.org/3041036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/service_messages.h | 14 | ||||
-rw-r--r-- | chrome/common/service_messages_internal.h | 43 |
2 files changed, 57 insertions, 0 deletions
diff --git a/chrome/common/service_messages.h b/chrome/common/service_messages.h new file mode 100644 index 0000000..d514bff --- /dev/null +++ b/chrome/common/service_messages.h @@ -0,0 +1,14 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_COMMON_SERVICE_MESSAGES_H_ +#define CHROME_COMMON_SERVICE_MESSAGES_H_ + +#include "ipc/ipc_message_utils.h" + +#define MESSAGES_INTERNAL_FILE "chrome/common/service_messages_internal.h" +#include "ipc/ipc_message_macros.h" + +#endif // CHROME_COMMON_SERVICE_MESSAGES_H_ + diff --git a/chrome/common/service_messages_internal.h b/chrome/common/service_messages_internal.h new file mode 100644 index 0000000..4968db0 --- /dev/null +++ b/chrome/common/service_messages_internal.h @@ -0,0 +1,43 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#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" + +//------------------------------------------------------------------------------ +// 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) + +IPC_END_MESSAGES(Service) + +//------------------------------------------------------------------------------ +// 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) + +IPC_END_MESSAGES(ServiceHost) + |