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

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

Issue 202083005: Add activity recording capability to gcm internals page. User can refresh, start/stop recording, an… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 9 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/checkin_request.h
diff --git a/google_apis/gcm/engine/checkin_request.h b/google_apis/gcm/engine/checkin_request.h
index e11089acd1f02282104eb140ca05a5462e6106bd..f5426370e9311bef002c984dea75d76913fb77fc 100644
--- a/google_apis/gcm/engine/checkin_request.h
+++ b/google_apis/gcm/engine/checkin_request.h
@@ -12,6 +12,7 @@
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "google_apis/gcm/base/gcm_export.h"
+#include "google_apis/gcm/gcm_stats_recorder.h"
#include "google_apis/gcm/protocol/android_checkin.pb.h"
#include "net/base/backoff_entry.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -39,7 +40,8 @@ class GCM_EXPORT CheckinRequest : public net::URLFetcherDelegate {
uint64 android_id,
uint64 security_token,
const std::vector<std::string>& account_ids,
- net::URLRequestContextGetter* request_context_getter);
+ net::URLRequestContextGetter* request_context_getter,
+ GCMStatsRecorder* recorder);
virtual ~CheckinRequest();
void Start();
@@ -62,6 +64,9 @@ class GCM_EXPORT CheckinRequest : public net::URLFetcherDelegate {
const uint64 security_token_;
const std::vector<std::string> account_ids_;
+ // GCM internal stats recorder instance. Not owned.
+ GCMStatsRecorder* recorder_;
+
base::WeakPtrFactory<CheckinRequest> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(CheckinRequest);

Powered by Google App Engine
This is Rietveld 408576698