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

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

Issue 2332693003: Show media router toolbar icon ephemerally for active local routes and issues (Closed)
Patch Set: Modify ToolbarActionsModel 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "chrome/browser/ui/toolbar/media_router_action_controller.h" 10 #include "chrome/browser/ui/toolbar/media_router_action_controller.h"
11 #include "components/keyed_service/core/keyed_service.h" 11 #include "components/keyed_service/core/keyed_service.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 namespace media_router { 15 namespace media_router {
16 16
17 // Service that owns per-profile Media Router UI objects, such as the controller 17 // Service that owns per-profile Media Router UI objects, such as the controller
18 // for the Media Router toolbar action. 18 // for the Media Router toolbar action.
19 class MediaRouterUIService : public KeyedService { 19 class MediaRouterUIService : public KeyedService {
20 public: 20 public:
21 explicit MediaRouterUIService(Profile* profile); 21 explicit MediaRouterUIService(Profile* profile);
22 ~MediaRouterUIService() override; 22 ~MediaRouterUIService() override;
23 23
24 static MediaRouterUIService* Get(Profile* profile); 24 static MediaRouterUIService* Get(Profile* profile);
25 25
26 private: 26 private:
27 friend class MediaRouterUIBrowserTest;
28
27 MediaRouterActionController action_controller_; 29 MediaRouterActionController action_controller_;
28 30
29 DISALLOW_COPY_AND_ASSIGN(MediaRouterUIService); 31 DISALLOW_COPY_AND_ASSIGN(MediaRouterUIService);
30 }; 32 };
31 33
32 } // namespace media_router 34 } // namespace media_router
33 35
34 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_ 36 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_UI_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698