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

Side by Side Diff: remoting/host/setup/service_client.cc

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/setup/service_client.h" 5 #include "remoting/host/setup/service_client.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "net/http/http_status_code.h" 11 #include "net/http/http_status_code.h"
12 #include "net/url_request/url_fetcher.h" 12 #include "net/url_request/url_fetcher.h"
13 #include "net/url_request/url_fetcher_delegate.h" 13 #include "net/url_request/url_fetcher_delegate.h"
14 #include "net/url_request/url_request_context_getter.h" 14 #include "net/url_request/url_request_context_getter.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 class ServiceClient::Core 19 class ServiceClient::Core
20 : public base::RefCountedThreadSafe<ServiceClient::Core>, 20 : public base::RefCountedThreadSafe<ServiceClient::Core>,
21 public net::URLFetcherDelegate { 21 public net::URLFetcherDelegate {
22 public: 22 public:
23 Core(const std::string& chromoting_hosts_url, 23 Core(const std::string& chromoting_hosts_url,
24 net::URLRequestContextGetter* request_context_getter) 24 net::URLRequestContextGetter* request_context_getter)
25 : request_context_getter_(request_context_getter), 25 : request_context_getter_(request_context_getter),
26 delegate_(NULL), 26 delegate_(nullptr),
27 pending_request_type_(PENDING_REQUEST_NONE), 27 pending_request_type_(PENDING_REQUEST_NONE),
28 chromoting_hosts_url_(chromoting_hosts_url) { 28 chromoting_hosts_url_(chromoting_hosts_url) {
29 } 29 }
30 30
31 void RegisterHost(const std::string& host_id, 31 void RegisterHost(const std::string& host_id,
32 const std::string& host_name, 32 const std::string& host_name,
33 const std::string& public_key, 33 const std::string& public_key,
34 const std::string& host_client_id, 34 const std::string& host_client_id,
35 const std::string& oauth_access_token, 35 const std::string& oauth_access_token,
36 ServiceClient::Delegate* delegate); 36 ServiceClient::Delegate* delegate);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 void ServiceClient::UnregisterHost( 189 void ServiceClient::UnregisterHost(
190 const std::string& host_id, 190 const std::string& host_id,
191 const std::string& oauth_access_token, 191 const std::string& oauth_access_token,
192 Delegate* delegate) { 192 Delegate* delegate) {
193 return core_->UnregisterHost(host_id, oauth_access_token, delegate); 193 return core_->UnregisterHost(host_id, oauth_access_token, delegate);
194 } 194 }
195 195
196 } // namespace gaia 196 } // namespace gaia
OLDNEW
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host_unittest.cc ('k') | remoting/host/setup/start_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698