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

Side by Side Diff: ash/common/cast_config_controller.h

Issue 2633053002: Remove the MessageLoop::DestructionObserver from mojo bindings. (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « android_webview/native/aw_contents_client_bridge.cc ('k') | ash/common/media_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents_client_bridge.cc ('k') | ash/common/media_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698