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

Side by Side Diff: google_apis/gcm/engine/registration_request.h

Issue 625293003: replace OVERRIDE and FINAL with override and final in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase on master 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 GOOGLE_APIS_GCM_ENGINE_REGISTRATION_REQUEST_H_ 5 #ifndef GOOGLE_APIS_GCM_ENGINE_REGISTRATION_REQUEST_H_
6 #define GOOGLE_APIS_GCM_ENGINE_REGISTRATION_REQUEST_H_ 6 #define GOOGLE_APIS_GCM_ENGINE_REGISTRATION_REQUEST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 const net::BackoffEntry::Policy& backoff_policy, 87 const net::BackoffEntry::Policy& backoff_policy,
88 const RegistrationCallback& callback, 88 const RegistrationCallback& callback,
89 int max_retry_count, 89 int max_retry_count,
90 scoped_refptr<net::URLRequestContextGetter> request_context_getter, 90 scoped_refptr<net::URLRequestContextGetter> request_context_getter,
91 GCMStatsRecorder* recorder); 91 GCMStatsRecorder* recorder);
92 virtual ~RegistrationRequest(); 92 virtual ~RegistrationRequest();
93 93
94 void Start(); 94 void Start();
95 95
96 // URLFetcherDelegate implementation. 96 // URLFetcherDelegate implementation.
97 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 97 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
98 98
99 private: 99 private:
100 // Schedules a retry attempt, informs the backoff of a previous request's 100 // Schedules a retry attempt, informs the backoff of a previous request's
101 // failure, when |update_backoff| is true. 101 // failure, when |update_backoff| is true.
102 void RetryWithBackoff(bool update_backoff); 102 void RetryWithBackoff(bool update_backoff);
103 103
104 // Parse the response returned by the URL fetcher into token, and returns the 104 // Parse the response returned by the URL fetcher into token, and returns the
105 // status. 105 // status.
106 Status ParseResponse(const net::URLFetcher* source, std::string* token); 106 Status ParseResponse(const net::URLFetcher* source, std::string* token);
107 107
(...skipping 11 matching lines...) Expand all
119 GCMStatsRecorder* recorder_; 119 GCMStatsRecorder* recorder_;
120 120
121 base::WeakPtrFactory<RegistrationRequest> weak_ptr_factory_; 121 base::WeakPtrFactory<RegistrationRequest> weak_ptr_factory_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(RegistrationRequest); 123 DISALLOW_COPY_AND_ASSIGN(RegistrationRequest);
124 }; 124 };
125 125
126 } // namespace gcm 126 } // namespace gcm
127 127
128 #endif // GOOGLE_APIS_GCM_ENGINE_REGISTRATION_REQUEST_H_ 128 #endif // GOOGLE_APIS_GCM_ENGINE_REGISTRATION_REQUEST_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/mcs_client_unittest.cc ('k') | google_apis/gcm/engine/unregistration_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698