Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Unified Diff: remoting/host/setup/host_starter.h

Issue 23606019: Refactor the daemon controller so that the callbacks are called on the caller thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the license Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/setup/daemon_controller_win.cc ('k') | remoting/host/setup/host_starter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/host_starter.h
diff --git a/remoting/host/setup/host_starter.h b/remoting/host/setup/host_starter.h
index ef97d21db5f5f77d89f2fad61d99cf8a72637739..475829385e551b5057ab04226658f7b4b2ca775a 100644
--- a/remoting/host/setup/host_starter.h
+++ b/remoting/host/setup/host_starter.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/callback.h"
+#include "base/memory/ref_counted.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "remoting/base/rsa_key_pair.h"
#include "remoting/base/url_request_context.h"
@@ -68,7 +69,7 @@ class HostStarter : public gaia::GaiaOAuthClient::Delegate,
private:
HostStarter(scoped_ptr<gaia::GaiaOAuthClient> oauth_client,
scoped_ptr<remoting::ServiceClient> service_client,
- scoped_ptr<remoting::DaemonController> daemon_controller);
+ scoped_refptr<remoting::DaemonController> daemon_controller);
void StartHostProcess();
@@ -76,7 +77,7 @@ class HostStarter : public gaia::GaiaOAuthClient::Delegate,
scoped_ptr<gaia::GaiaOAuthClient> oauth_client_;
scoped_ptr<remoting::ServiceClient> service_client_;
- scoped_ptr<remoting::DaemonController> daemon_controller_;
+ scoped_refptr<remoting::DaemonController> daemon_controller_;
gaia::OAuthClientInfo oauth_client_info_;
std::string host_name_;
std::string host_pin_;
« no previous file with comments | « remoting/host/setup/daemon_controller_win.cc ('k') | remoting/host/setup/host_starter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698