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

Side by Side Diff: chrome/browser/ui/toolbar/media_router_action_controller.h

Issue 2176613003: [Media Router] Clean up issues related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years 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_UI_TOOLBAR_MEDIA_ROUTER_ACTION_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/extensions/component_migration_helper.h" 10 #include "chrome/browser/extensions/component_migration_helper.h"
(...skipping 14 matching lines...) Expand all
25 // Constructor for injecting dependencies in tests. 25 // Constructor for injecting dependencies in tests.
26 MediaRouterActionController( 26 MediaRouterActionController(
27 Profile* profile, 27 Profile* profile,
28 media_router::MediaRouter* router, 28 media_router::MediaRouter* router,
29 ComponentMigrationHelper::ComponentActionDelegate* 29 ComponentMigrationHelper::ComponentActionDelegate*
30 component_action_delegate, 30 component_action_delegate,
31 ComponentMigrationHelper* component_migration_helper); 31 ComponentMigrationHelper* component_migration_helper);
32 ~MediaRouterActionController() override; 32 ~MediaRouterActionController() override;
33 33
34 // media_router::IssuesObserver: 34 // media_router::IssuesObserver:
35 void OnIssueUpdated(const media_router::Issue* issue) override; 35 void OnIssue(const media_router::Issue& issue) override;
36 void OnIssuesCleared() override;
36 37
37 // media_router::MediaRoutesObserver: 38 // media_router::MediaRoutesObserver:
38 void OnRoutesUpdated(const std::vector<media_router::MediaRoute>& routes, 39 void OnRoutesUpdated(const std::vector<media_router::MediaRoute>& routes,
39 const std::vector<media_router::MediaRoute::Id>& 40 const std::vector<media_router::MediaRoute::Id>&
40 joinable_route_ids) override; 41 joinable_route_ids) override;
41 42
42 // Called when a Media Router dialog is shown or hidden, and updates the 43 // Called when a Media Router dialog is shown or hidden, and updates the
43 // visibility of the action icon. Overridden in tests. 44 // visibility of the action icon. Overridden in tests.
44 virtual void OnDialogShown(); 45 virtual void OnDialogShown();
45 virtual void OnDialogHidden(); 46 virtual void OnDialogHidden();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 79
79 // The number of dialogs that are currently open. 80 // The number of dialogs that are currently open.
80 size_t dialog_count_ = 0; 81 size_t dialog_count_ = 0;
81 82
82 PrefChangeRegistrar pref_change_registrar_; 83 PrefChangeRegistrar pref_change_registrar_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(MediaRouterActionController); 85 DISALLOW_COPY_AND_ASSIGN(MediaRouterActionController);
85 }; 86 };
86 87
87 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_CONTROLLER_H_ 88 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/media_router_action.cc ('k') | chrome/browser/ui/toolbar/media_router_action_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698