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

Unified Diff: google_apis/gcm/engine/registration_request.h

Issue 248213004: Record connection, registration, and receiving activities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: google_apis/gcm/engine/registration_request.h
diff --git a/google_apis/gcm/engine/registration_request.h b/google_apis/gcm/engine/registration_request.h
index 7b7acbbf08b757ca9c03f91bbf5a7750be0aae56..95ec4d9b476d5cb321fc00e274bf3e2ce84e0735 100644
--- a/google_apis/gcm/engine/registration_request.h
+++ b/google_apis/gcm/engine/registration_request.h
@@ -23,6 +23,8 @@ class URLRequestContextGetter;
namespace gcm {
+class GCMStatsRecorder;
+
// Registration request is used to obtain registration IDs for applications that
// want to use GCM. It requires a set of parameters to be specified to identify
// the Chrome instance, the user, the application and a set of senders that will
@@ -82,7 +84,8 @@ class GCM_EXPORT RegistrationRequest : public net::URLFetcherDelegate {
const net::BackoffEntry::Policy& backoff_policy,
const RegistrationCallback& callback,
int max_retry_count,
- scoped_refptr<net::URLRequestContextGetter> request_context_getter);
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
+ GCMStatsRecorder* recorder);
virtual ~RegistrationRequest();
void Start();
@@ -107,6 +110,9 @@ class GCM_EXPORT RegistrationRequest : public net::URLFetcherDelegate {
scoped_ptr<net::URLFetcher> url_fetcher_;
int retries_left_;
+ // Recorder that records GCM activities for debugging purpose. Not owned.
+ GCMStatsRecorder* recorder_;
+
base::WeakPtrFactory<RegistrationRequest> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(RegistrationRequest);
« no previous file with comments | « google_apis/gcm/engine/connection_factory_impl_unittest.cc ('k') | google_apis/gcm/engine/registration_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698