OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_HOST_STARTER | 5 #ifndef REMOTING_HOST_HOST_STARTER |
6 #define REMOTING_HOST_HOST_STARTER | 6 #define REMOTING_HOST_HOST_STARTER |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "google_apis/gaia/gaia_oauth_client.h" | 11 #include "google_apis/gaia/gaia_oauth_client.h" |
12 #include "remoting/base/rsa_key_pair.h" | 12 #include "remoting/base/rsa_key_pair.h" |
| 13 #include "remoting/base/url_request_context.h" |
13 #include "remoting/host/service_client.h" | 14 #include "remoting/host/service_client.h" |
14 #include "remoting/host/setup/daemon_controller.h" | 15 #include "remoting/host/setup/daemon_controller.h" |
15 #include "remoting/host/url_request_context.h" | |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 | 18 |
19 // A helper class that registers and starts a host. | 19 // A helper class that registers and starts a host. |
20 class HostStarter : public gaia::GaiaOAuthClient::Delegate, | 20 class HostStarter : public gaia::GaiaOAuthClient::Delegate, |
21 public remoting::ServiceClient::Delegate { | 21 public remoting::ServiceClient::Delegate { |
22 public: | 22 public: |
23 enum Result { | 23 enum Result { |
24 START_COMPLETE, | 24 START_COMPLETE, |
25 NETWORK_ERROR, | 25 NETWORK_ERROR, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 base::WeakPtrFactory<HostStarter> weak_ptr_factory_; | 90 base::WeakPtrFactory<HostStarter> weak_ptr_factory_; |
91 base::WeakPtr<HostStarter> weak_ptr_; | 91 base::WeakPtr<HostStarter> weak_ptr_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(HostStarter); | 93 DISALLOW_COPY_AND_ASSIGN(HostStarter); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace remoting | 96 } // namespace remoting |
97 | 97 |
98 #endif // REMOTING_HOST_HOST_STARTER | 98 #endif // REMOTING_HOST_HOST_STARTER |
OLD | NEW |