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

Unified Diff: components/gcm_driver/gcm_profile_service.h

Issue 2847923002: [Chromecast] Add method to CastCdm for the session expiration updating. (Closed)
Patch Set: Add InstanceIDFactory class to help with testing. Created 3 years, 5 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: components/gcm_driver/gcm_profile_service.h
diff --git a/components/gcm_driver/gcm_profile_service.h b/components/gcm_driver/gcm_profile_service.h
index 4886b4eab86b8f365ea917d8a074200db4d4809b..3a01ca1cef37f25c432ec91aea7352b8ebb0c252 100644
--- a/components/gcm_driver/gcm_profile_service.h
+++ b/components/gcm_driver/gcm_profile_service.h
@@ -25,6 +25,10 @@ namespace base {
class SequencedTaskRunner;
}
+namespace instance_id {
+class InstanceIDFactory;
+}
+
namespace net {
class URLRequestContextGetter;
}
@@ -67,6 +71,10 @@ class GCMProfileService : public KeyedService {
GCMDriver* driver() const { return driver_.get(); }
+ instance_id::InstanceIDFactory* instance_id_factory() const {
+ return instance_id_factory_.get();
+ }
+
protected:
// Used for constructing fake GCMProfileService for testing purpose.
GCMProfileService();
@@ -74,6 +82,7 @@ class GCMProfileService : public KeyedService {
private:
std::unique_ptr<ProfileIdentityProvider> profile_identity_provider_;
std::unique_ptr<GCMDriver> driver_;
+ std::unique_ptr<instance_id::InstanceIDFactory> instance_id_factory_;
#if !BUILDFLAG(USE_GCM_FROM_PLATFORM)
net::URLRequestContextGetter* request_context_ = nullptr;
« no previous file with comments | « chrome/browser/gcm/instance_id/instance_id_profile_service.cc ('k') | components/gcm_driver/gcm_profile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698