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

Unified Diff: chrome/browser/media/router/media_router_ui_service_factory.h

Issue 2294973002: Create MediaRouterActionController and MediaRouterUIService (Closed)
Patch Set: Address Devlin's comments Created 4 years, 3 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: chrome/browser/media/router/media_router_ui_service_factory.h
diff --git a/chrome/browser/media/router/media_router_ui_service_factory.h b/chrome/browser/media/router/media_router_ui_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..f4d54b4386904650c2f1f996f275600c519561d9
--- /dev/null
+++ b/chrome/browser/media/router/media_router_ui_service_factory.h
@@ -0,0 +1,43 @@
+// Copyright 2016 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 CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_FACTORY_H_
+
+#include "base/memory/singleton.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace media_router {
+
+class MediaRouterUIService;
+
+class MediaRouterUIServiceFactory : public BrowserContextKeyedServiceFactory {
+ public:
+ static MediaRouterUIService* GetForBrowserContext(
+ content::BrowserContext* context);
+
+ static MediaRouterUIServiceFactory* GetInstance();
+
+ private:
+ friend struct base::DefaultSingletonTraits<MediaRouterUIServiceFactory>;
+
+ MediaRouterUIServiceFactory();
+ ~MediaRouterUIServiceFactory() override;
+
+ // BrowserContextKeyedServiceFactory interface.
+ content::BrowserContext* GetBrowserContextToUse(
+ content::BrowserContext* context) const override;
+ KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* context) const override;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaRouterUIServiceFactory);
+};
+
+} // namespace media_router
+
+#endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698