diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-17 00:33:46 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-17 00:33:46 +0000 |
commit | c41b2ecfcdc90b29ffc7b45e77a8fc68d269030c (patch) | |
tree | a9b8ea900db3a3181f403b4ad27ecfa3d9ce8b6a /chrome/browser/service | |
parent | 9808e2f0f1e5b8b9c1798912ab1ae9a239426c92 (diff) | |
download | chromium_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/browser/service')
-rw-r--r-- | chrome/browser/service/service_process_control.cc | 9 | ||||
-rw-r--r-- | chrome/browser/service/service_process_control.h | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/service/service_process_control.cc b/chrome/browser/service/service_process_control.cc index 6cf649b..9b76dc7 100644 --- a/chrome/browser/service/service_process_control.cc +++ b/chrome/browser/service/service_process_control.cc @@ -209,4 +209,13 @@ bool ServiceProcessControl::Shutdown() { return ret; } +bool ServiceProcessControl::EnableRemotingWithTokens( + const std::string& user, + const std::string& remoting_token, + const std::string& talk_token) { + return Send( + new ServiceMsg_EnableRemotingWithTokens(user, remoting_token, + talk_token)); +} + DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcessControl); diff --git a/chrome/browser/service/service_process_control.h b/chrome/browser/service/service_process_control.h index 469b17d..2577ec6 100644 --- a/chrome/browser/service/service_process_control.h +++ b/chrome/browser/service/service_process_control.h @@ -81,6 +81,12 @@ class ServiceProcessControl : public IPC::Channel::Sender, // Return true if the message was sent. bool Shutdown(); + // Send a message to enable the remoting service in the service process. + // Return true if the message was sent. + bool EnableRemotingWithTokens(const std::string& user, + const std::string& remoting_token, + const std::string& talk_token); + // Set the message handler for receiving messages from the service process. // TODO(hclam): Allow more than 1 handler. void SetMessageHandler(MessageHandler* message_handler) { |