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

Unified Diff: components/gcm_driver/instance_id/instance_id_android_factory.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/instance_id/instance_id_android_factory.h
diff --git a/components/gcm_driver/instance_id/instance_id_android_factory.h b/components/gcm_driver/instance_id/instance_id_android_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..8cbd4ef2bafbeab7e013a2ddc5862deb8e90787d
--- /dev/null
+++ b/components/gcm_driver/instance_id/instance_id_android_factory.h
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_FACTORY_H_
+#define COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_FACTORY_H_
+
+#include "base/macros.h"
+#include "components/gcm_driver/instance_id/instance_id_factory.h"
+
+namespace instance_id {
+
+class InstanceIDAndroidFactory : public InstanceIDFactory {
+ public:
+ InstanceIDAndroidFactory() = default;
+ ~InstanceIDAndroidFactory() override = default;
+
+ std::unique_ptr<InstanceID> Create(const std::string& app_id,
+ gcm::GCMDriver* gcm_driver) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InstanceIDAndroidFactory);
+};
+
+} // namespace instance_id
+
+#endif // COMPONENTS_GCM_DRIVER_INSTANCE_ID_INSTANCE_ID_ANDROID_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698