summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_ipc_server.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 00:33:46 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 00:33:46 +0000
commitc41b2ecfcdc90b29ffc7b45e77a8fc68d269030c (patch)
treea9b8ea900db3a3181f403b4ad27ecfa3d9ce8b6a /chrome/service/service_ipc_server.cc
parent9808e2f0f1e5b8b9c1798912ab1ae9a239426c92 (diff)
downloadchromium_src-c41b2ecfcdc90b29ffc7b45e77a8fc68d269030c.zip
chromium_src-c41b2ecfcdc90b29ffc7b45e77a8fc68d269030c.tar.gz
chromium_src-c41b2ecfcdc90b29ffc7b45e77a8fc68d269030c.tar.bz2
Gaia authentication for access remoting directory and talk
We are now able to access remoting directory token and talk token through the chromoting setup dialog. These information are sent to the service process for enabling the chromoting host and perform the host registration. All the plumbing for starting the service process, enabling the chromoting host through through IPC commands are in place but host registration is stubbed out and will be completed in next patch. Review URL: http://codereview.chromium.org/3176014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_ipc_server.cc')
-rw-r--r--chrome/service/service_ipc_server.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc
index 116374f..1a698b4 100644
--- a/chrome/service/service_ipc_server.cc
+++ b/chrome/service/service_ipc_server.cc
@@ -64,6 +64,8 @@ void ServiceIPCServer::OnMessageReceived(const IPC::Message& msg) {
OnEnableCloudPrintProxy)
IPC_MESSAGE_HANDLER(ServiceMsg_EnableCloudPrintProxyWithTokens,
OnEnableCloudPrintProxyWithTokens)
+ IPC_MESSAGE_HANDLER(ServiceMsg_EnableRemotingWithTokens,
+ OnEnableRemotingWithTokens)
IPC_MESSAGE_HANDLER(ServiceMsg_DisableCloudPrintProxy,
OnDisableCloudPrintProxy)
IPC_MESSAGE_HANDLER(ServiceMsg_Hello, OnHello);
@@ -81,6 +83,16 @@ void ServiceIPCServer::OnEnableCloudPrintProxyWithTokens(
NOTIMPLEMENTED();
}
+void ServiceIPCServer::OnEnableRemotingWithTokens(
+ const std::string& login,
+ const std::string& remoting_token,
+ const std::string& talk_token) {
+#if defined(ENABLE_REMOTING)
+ g_service_process->EnableChromotingHostWithTokens(login, remoting_token,
+ talk_token);
+#endif
+}
+
void ServiceIPCServer::OnDisableCloudPrintProxy() {
g_service_process->GetCloudPrintProxy()->DisableForUser();
}