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

Side by Side Diff: google_apis/gcm/engine/gcm_unregistration_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
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_UNREGISTRATION_REQUEST_HANDLER_H_ 5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_HANDLER_H_
6 #define GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_HANDLER_H_ 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_HANDLER_H_
7 7
8 #include "google_apis/gcm/engine/unregistration_request.h" 8 #include "google_apis/gcm/engine/unregistration_request.h"
9 9
10 namespace gcm { 10 namespace gcm {
11 11
12 // Used to revoke the registration ID when unregister is called or the 12 // Used to revoke the registration ID when unregister is called or the
13 // application has been uninstalled. 13 // application has been uninstalled.
14 class GCM_EXPORT GCMUnregistrationRequestHandler : 14 class GCM_EXPORT GCMUnregistrationRequestHandler :
15 public UnregistrationRequest::CustomRequestHandler { 15 public UnregistrationRequest::CustomRequestHandler {
16 public: 16 public:
17 GCMUnregistrationRequestHandler(const std::string& app_id); 17 GCMUnregistrationRequestHandler(const std::string& app_id);
18 ~GCMUnregistrationRequestHandler() override; 18 ~GCMUnregistrationRequestHandler() override;
19 19
20 // UnregistrationRequest::CustomRequestHandler overrides: 20 // UnregistrationRequest::CustomRequestHandler overrides:
21 void BuildRequestBody(std::string* body) override; 21 void BuildRequestBody(std::string* body) override;
22 UnregistrationRequest::Status ParseResponse( 22 UnregistrationRequest::Status ParseResponse(
23 const net::URLFetcher* source) override; 23 const net::URLFetcher* source) override;
24 void ReportUMAs(UnregistrationRequest::Status status,
25 int retry_count,
26 base::TimeDelta complete_time) override;
24 27
25 private: 28 private:
26 std::string app_id_; 29 std::string app_id_;
27 30
28 DISALLOW_COPY_AND_ASSIGN(GCMUnregistrationRequestHandler); 31 DISALLOW_COPY_AND_ASSIGN(GCMUnregistrationRequestHandler);
29 }; 32 };
30 33
31 } // namespace gcm 34 } // namespace gcm
32 35
33 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_HANDLER_H_ 36 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_HANDLER_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/gcm_store_impl.cc ('k') | google_apis/gcm/engine/gcm_unregistration_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698