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

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

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « remoting/host/setup/oauth_client.h ('k') | remoting/host/shaped_desktop_capturer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 22 matching lines...) Expand all
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);
37 37
38 void UnregisterHost(const std::string& host_id, 38 void UnregisterHost(const std::string& host_id,
39 const std::string& oauth_access_token, 39 const std::string& oauth_access_token,
40 ServiceClient::Delegate* delegate); 40 ServiceClient::Delegate* delegate);
41 41
42 // net::URLFetcherDelegate implementation. 42 // net::URLFetcherDelegate implementation.
43 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; 43 void OnURLFetchComplete(const net::URLFetcher* source) override;
44 44
45 private: 45 private:
46 friend class base::RefCountedThreadSafe<Core>; 46 friend class base::RefCountedThreadSafe<Core>;
47 virtual ~Core() {} 47 ~Core() override {}
48 48
49 enum PendingRequestType { 49 enum PendingRequestType {
50 PENDING_REQUEST_NONE, 50 PENDING_REQUEST_NONE,
51 PENDING_REQUEST_REGISTER_HOST, 51 PENDING_REQUEST_REGISTER_HOST,
52 PENDING_REQUEST_UNREGISTER_HOST 52 PENDING_REQUEST_UNREGISTER_HOST
53 }; 53 };
54 54
55 void MakeChromotingRequest(net::URLFetcher::RequestType request_type, 55 void MakeChromotingRequest(net::URLFetcher::RequestType request_type,
56 const std::string& post_body, 56 const std::string& post_body,
57 const std::string& url_suffix, 57 const std::string& url_suffix,
(...skipping 129 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/oauth_client.h ('k') | remoting/host/shaped_desktop_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698