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

Side by Side Diff: chrome/browser/media/router/media_router_ui_service.h

Issue 2294973002: Create MediaRouterActionController and MediaRouterUIService (Closed)
Patch Set: Address Derek and Mark'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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698