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

Side by Side Diff: ash/common/media_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
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_MEDIA_CONTROLLER_H_ 5 #ifndef ASH_COMMON_MEDIA_CONTROLLER_H_
6 #define ASH_COMMON_MEDIA_CONTROLLER_H_ 6 #define ASH_COMMON_MEDIA_CONTROLLER_H_
7 7
8 #include "ash/public/interfaces/media.mojom.h" 8 #include "ash/public/interfaces/media.mojom.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/observer_list.h"
10 #include "mojo/public/cpp/bindings/associated_binding.h" 11 #include "mojo/public/cpp/bindings/associated_binding.h"
11 #include "mojo/public/cpp/bindings/binding_set.h" 12 #include "mojo/public/cpp/bindings/binding_set.h"
12 13
13 namespace ash { 14 namespace ash {
14 15
15 // Forwards notifications from the MediaController to observers. 16 // Forwards notifications from the MediaController to observers.
16 class MediaCaptureObserver { 17 class MediaCaptureObserver {
17 public: 18 public:
18 // Called when media capture state has changed. 19 // Called when media capture state has changed.
19 virtual void OnMediaCaptureChanged( 20 virtual void OnMediaCaptureChanged(
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 mojom::MediaClientAssociatedPtr client_; 57 mojom::MediaClientAssociatedPtr client_;
57 58
58 base::ObserverList<MediaCaptureObserver> observers_; 59 base::ObserverList<MediaCaptureObserver> observers_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(MediaController); 61 DISALLOW_COPY_AND_ASSIGN(MediaController);
61 }; 62 };
62 63
63 } // namespace ash 64 } // namespace ash
64 65
65 #endif // ASH_COMMON_MEDIA_CONTROLLER_H_ 66 #endif // ASH_COMMON_MEDIA_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/common/cast_config_controller.h ('k') | chrome/browser/media/router/presentation_service_delegate_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698