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

Unified Diff: google_apis/gcm/gcm_client_impl.h

Issue 261853012: Componentize GCM Part 1: create GCM component and move some files over (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync 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 side-by-side diff with in-line comments
Download patch
Index: google_apis/gcm/gcm_client_impl.h
diff --git a/google_apis/gcm/gcm_client_impl.h b/google_apis/gcm/gcm_client_impl.h
index 85f206b435798b5f608c2d7745c3086b30fe3dbd..27520a975d7e9231c38fea22186790f7638fe8c5 100644
--- a/google_apis/gcm/gcm_client_impl.h
+++ b/google_apis/gcm/gcm_client_impl.h
@@ -45,6 +45,7 @@ namespace gcm {
class CheckinRequest;
class ConnectionFactory;
+class Encryptor;
class GCMClientImplTest;
// Helper class for building GCM internals. Allows tests to inject fake versions
@@ -75,7 +76,8 @@ class GCM_EXPORT GCMInternalsBuilder {
// applications that send and receive messages.
class GCM_EXPORT GCMClientImpl : public GCMClient {
public:
- explicit GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder);
+ GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder,
+ scoped_ptr<Encryptor> encryptor);
virtual ~GCMClientImpl();
// Overridden from GCMClient:
@@ -229,6 +231,9 @@ class GCM_EXPORT GCMClientImpl : public GCMClient {
// Builder for the GCM internals (mcs client, etc.).
scoped_ptr<GCMInternalsBuilder> internals_builder_;
+ // For encryption purpose.
+ scoped_ptr<Encryptor> encryptor_;
+
// Recorder that logs GCM activities.
GCMStatsRecorder recorder_;

Powered by Google App Engine
This is Rietveld 408576698