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 MediaRouterActionController* GetActionController() const; | |
27 | |
28 private: | |
29 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
| |
30 | |
31 DISALLOW_COPY_AND_ASSIGN(MediaRouterUIService); | |
32 }; | |
33 | |
34 } // namespace media_router | |
35 | |
36 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ | |
OLD | NEW |