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

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

Issue 270783002: [GCM] Add more UMA to GCM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 6 years, 7 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 | Annotate | Revision Log
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_UNREGISTRATION_REQUEST_H_ 5 #ifndef GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_
6 #define GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_ 6 #define GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/time/time.h"
13 #include "google_apis/gcm/base/gcm_export.h" 14 #include "google_apis/gcm/base/gcm_export.h"
14 #include "net/base/backoff_entry.h" 15 #include "net/base/backoff_entry.h"
15 #include "net/url_request/url_fetcher_delegate.h" 16 #include "net/url_request/url_fetcher_delegate.h"
16 #include "url/gurl.h" 17 #include "url/gurl.h"
17 18
18 namespace net { 19 namespace net {
19 class URLRequestContextGetter; 20 class URLRequestContextGetter;
20 } 21 }
21 22
22 namespace gcm { 23 namespace gcm {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // failure, when |update_backoff| is true. 93 // failure, when |update_backoff| is true.
93 void RetryWithBackoff(bool update_backoff); 94 void RetryWithBackoff(bool update_backoff);
94 95
95 UnregistrationCallback callback_; 96 UnregistrationCallback callback_;
96 RequestInfo request_info_; 97 RequestInfo request_info_;
97 GURL registration_url_; 98 GURL registration_url_;
98 99
99 net::BackoffEntry backoff_entry_; 100 net::BackoffEntry backoff_entry_;
100 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 101 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
101 scoped_ptr<net::URLFetcher> url_fetcher_; 102 scoped_ptr<net::URLFetcher> url_fetcher_;
103 base::TimeTicks request_start_time_;
102 104
103 // Recorder that records GCM activities for debugging purpose. Not owned. 105 // Recorder that records GCM activities for debugging purpose. Not owned.
104 GCMStatsRecorder* recorder_; 106 GCMStatsRecorder* recorder_;
105 107
106 base::WeakPtrFactory<UnregistrationRequest> weak_ptr_factory_; 108 base::WeakPtrFactory<UnregistrationRequest> weak_ptr_factory_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(UnregistrationRequest); 110 DISALLOW_COPY_AND_ASSIGN(UnregistrationRequest);
109 }; 111 };
110 112
111 } // namespace gcm 113 } // namespace gcm
112 114
113 #endif // GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_ 115 #endif // GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/registration_request.cc ('k') | google_apis/gcm/engine/unregistration_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698