Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "chrome/browser/ui/toolbar/media_router_action_controller.h" | |
| 11 #include "components/keyed_service/core/keyed_service.h" | |
| 12 | |
| 13 class Profile; | |
| 14 | |
| 15 namespace media_router { | |
| 16 | |
| 17 // Service that owns per-profile Media Router UI objects, such as the controller | |
| 18 // for the Media Router toolbar action. | |
| 19 class MediaRouterUIService : public KeyedService { | |
| 20 public: | |
| 21 explicit MediaRouterUIService(Profile* profile); | |
| 22 ~MediaRouterUIService() override; | |
| 23 | |
| 24 static MediaRouterUIService* Get(Profile* profile); | |
| 25 | |
| 26 private: | |
| 27 MediaRouterActionController action_controller_; | |
|
Devlin
2016/09/15 21:08:41
I'm a bit confused about why we have a service tha
takumif
2016/09/16 21:04:05
Yes, the plan is to be able to add other MR UI rel
| |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(MediaRouterUIService); | |
| 30 }; | |
| 31 | |
| 32 } // namespace media_router | |
| 33 | |
| 34 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ | |
| OLD | NEW |