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 ASH_COMMON_CAST_CONFIG_CONTROLLER_H_ | 5 #ifndef ASH_COMMON_CAST_CONFIG_CONTROLLER_H_ |
6 #define ASH_COMMON_CAST_CONFIG_CONTROLLER_H_ | 6 #define ASH_COMMON_CAST_CONFIG_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/public/interfaces/cast_config.mojom.h" | 10 #include "ash/public/interfaces/cast_config.mojom.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/observer_list.h" |
12 #include "mojo/public/cpp/bindings/associated_binding.h" | 13 #include "mojo/public/cpp/bindings/associated_binding.h" |
13 #include "mojo/public/cpp/bindings/binding_set.h" | 14 #include "mojo/public/cpp/bindings/binding_set.h" |
14 | 15 |
15 namespace ash { | 16 namespace ash { |
16 | 17 |
17 // There is a single CastConfigController which receives device | 18 // There is a single CastConfigController which receives device |
18 // information. This observer interface sends that information to all the | 19 // information. This observer interface sends that information to all the |
19 // TrayCast items--there is one per display. | 20 // TrayCast items--there is one per display. |
20 class CastConfigControllerObserver { | 21 class CastConfigControllerObserver { |
21 public: | 22 public: |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 mojom::CastConfigClientAssociatedPtr client_; | 60 mojom::CastConfigClientAssociatedPtr client_; |
60 | 61 |
61 base::ObserverList<CastConfigControllerObserver> observers_; | 62 base::ObserverList<CastConfigControllerObserver> observers_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(CastConfigController); | 64 DISALLOW_COPY_AND_ASSIGN(CastConfigController); |
64 }; | 65 }; |
65 | 66 |
66 } // namespace ash | 67 } // namespace ash |
67 | 68 |
68 #endif // ASH_COMMON_CAST_CONFIG_CONTROLLER_H_ | 69 #endif // ASH_COMMON_CAST_CONFIG_CONTROLLER_H_ |
OLD | NEW |