Index: chrome/browser/media/router/media_router_ui_service.h |
diff --git a/chrome/browser/media/router/media_router_ui_service.h b/chrome/browser/media/router/media_router_ui_service.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6fc1b0021a7f51bce7119b42e25e39a9e11890cc |
--- /dev/null |
+++ b/chrome/browser/media/router/media_router_ui_service.h |
@@ -0,0 +1,36 @@ |
+// 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_H_ |
+#define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ |
+ |
+#include <memory> |
+ |
+#include "chrome/browser/ui/toolbar/media_router_action_controller.h" |
+#include "components/keyed_service/core/keyed_service.h" |
+ |
+class Profile; |
+ |
+namespace media_router { |
+ |
+// Service that owns per-profile Media Router UI objects, such as the controller |
+// for the Media Router toolbar action. |
+class MediaRouterUIService : public KeyedService { |
+ public: |
+ explicit MediaRouterUIService(Profile* profile); |
+ ~MediaRouterUIService() override; |
+ |
+ static MediaRouterUIService* Get(Profile* profile); |
+ |
+ MediaRouterActionController* GetActionController() const; |
+ |
+ private: |
+ std::unique_ptr<MediaRouterActionController> action_controller_; |
imcheng
2016/09/13 23:13:09
nit: This doesn't need to be a unique_ptr. If you
takumif
2016/09/14 04:00:52
Done. Removing GetActionController() for now, as M
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(MediaRouterUIService); |
+}; |
+ |
+} // namespace media_router |
+ |
+#endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ |