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

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

Issue 1167753002: Add more UMAs for Instance ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address more feedback Created 5 years, 6 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 | « no previous file | google_apis/gcm/engine/gcm_registration_request_handler.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_GCM_REGISTRATION_REQUEST_HANDLER_H_ 5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_REGISTRATION_REQUEST_HANDLER_H_
6 #define GOOGLE_APIS_GCM_ENGINE_GCM_REGISTRATION_REQUEST_HANDLER_H_ 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_REGISTRATION_REQUEST_HANDLER_H_
7 7
8 #include "google_apis/gcm/engine/registration_request.h" 8 #include "google_apis/gcm/engine/registration_request.h"
9 9
10 namespace gcm { 10 namespace gcm {
11 11
12 // Used to obtain the registration ID for applications that want to use GCM. 12 // Used to obtain the registration ID for applications that want to use GCM.
13 class GCM_EXPORT GCMRegistrationRequestHandler : 13 class GCM_EXPORT GCMRegistrationRequestHandler :
14 public RegistrationRequest::CustomRequestHandler { 14 public RegistrationRequest::CustomRequestHandler {
15 public: 15 public:
16 GCMRegistrationRequestHandler(const std::string& senders); 16 GCMRegistrationRequestHandler(const std::string& senders);
17 ~GCMRegistrationRequestHandler() override; 17 ~GCMRegistrationRequestHandler() override;
18 18
19 // RegistrationRequest::RequestHandler overrides: 19 // RegistrationRequest::RequestHandler overrides:
20 void BuildRequestBody(std::string* body) override; 20 void BuildRequestBody(std::string* body) override;
21 void ReportUMAs(RegistrationRequest::Status status,
22 int retry_count,
23 base::TimeDelta complete_time) override;
21 24
22 private: 25 private:
23 std::string senders_; 26 std::string senders_;
24 27
25 DISALLOW_COPY_AND_ASSIGN(GCMRegistrationRequestHandler); 28 DISALLOW_COPY_AND_ASSIGN(GCMRegistrationRequestHandler);
26 }; 29 };
27 30
28 } // namespace gcm 31 } // namespace gcm
29 32
30 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_REGISTRATION_REQUEST_HANDLER_H_ 33 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_REGISTRATION_REQUEST_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | google_apis/gcm/engine/gcm_registration_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698