Index: chrome/browser/media/router/one_ua_presentation_router_factory.h |
diff --git a/chrome/browser/media/router/one_ua_presentation_router_factory.h b/chrome/browser/media/router/one_ua_presentation_router_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..58da433552e41ee226adadd37299ac208dbf5d61 |
--- /dev/null |
+++ b/chrome/browser/media/router/one_ua_presentation_router_factory.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2015 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_ONE_UA_PRESENTATION_ROUTER_FACTORY_H_ |
+#define CHROME_BROWSER_MEDIA_ROUTER_ONE_UA_PRESENTATION_ROUTER_FACTORY_H_ |
+ |
+#include "base/lazy_instance.h" |
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
+ |
+namespace content { |
+class BrowserContext; |
+} |
+ |
+namespace media_router { |
+ |
+class OneUAPresentationRouter; |
+ |
+class OneUAPresentationRouterFactory |
+ : public BrowserContextKeyedServiceFactory { |
+ public: |
+ static OneUAPresentationRouter* GetOrCreateForBrowserContext( |
+ content::BrowserContext* context); |
+ |
+ private: |
+ friend struct base::DefaultLazyInstanceTraits<OneUAPresentationRouterFactory>; |
+ |
+ OneUAPresentationRouterFactory(); |
+ ~OneUAPresentationRouterFactory() override; |
+ |
+ // BrowserContextKeyedServiceFactory interface. |
+ KeyedService* BuildServiceInstanceFor( |
+ content::BrowserContext* context) const override; |
+ content::BrowserContext* GetBrowserContextToUse( |
+ content::BrowserContext* context) const override; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(OneUAPresentationRouterFactory); |
+}; |
+ |
+} // namespace media_router |
+ |
+#endif // CHROME_BROWSER_MEDIA_ROUTER_ONE_UA_PRESENTATION_ROUTER_FACTORY_H_ |