| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |