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 #include "remoting/host/service_client.h" | 5 #include "remoting/host/service_client.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "googleurl/src/gurl.h" | |
11 #include "net/http/http_status_code.h" | 10 #include "net/http/http_status_code.h" |
12 #include "net/url_request/url_fetcher.h" | 11 #include "net/url_request/url_fetcher.h" |
13 #include "net/url_request/url_fetcher_delegate.h" | 12 #include "net/url_request/url_fetcher_delegate.h" |
14 #include "net/url_request/url_request_context_getter.h" | 13 #include "net/url_request/url_request_context_getter.h" |
| 14 #include "url/gurl.h" |
15 | 15 |
16 namespace remoting { | 16 namespace remoting { |
17 | 17 |
18 class ServiceClient::Core | 18 class ServiceClient::Core |
19 : public base::RefCountedThreadSafe<ServiceClient::Core>, | 19 : public base::RefCountedThreadSafe<ServiceClient::Core>, |
20 public net::URLFetcherDelegate { | 20 public net::URLFetcherDelegate { |
21 public: | 21 public: |
22 Core(const std::string& chromoting_hosts_url, | 22 Core(const std::string& chromoting_hosts_url, |
23 net::URLRequestContextGetter* request_context_getter) | 23 net::URLRequestContextGetter* request_context_getter) |
24 : request_context_getter_(request_context_getter), | 24 : request_context_getter_(request_context_getter), |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 163 } |
164 | 164 |
165 void ServiceClient::UnregisterHost( | 165 void ServiceClient::UnregisterHost( |
166 const std::string& host_id, | 166 const std::string& host_id, |
167 const std::string& oauth_access_token, | 167 const std::string& oauth_access_token, |
168 Delegate* delegate) { | 168 Delegate* delegate) { |
169 return core_->UnregisterHost(host_id, oauth_access_token, delegate); | 169 return core_->UnregisterHost(host_id, oauth_access_token, delegate); |
170 } | 170 } |
171 | 171 |
172 } // namespace gaia | 172 } // namespace gaia |
OLD | NEW |