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

Side by Side Diff: content/public/browser/media_observer.h

Issue 183743021: Implement MediaCaptureDevices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again Created 6 years, 9 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 | « content/public/browser/media_devices_monitor.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "content/public/browser/media_request_state.h" 9 #include "content/public/browser/media_request_state.h"
10 #include "content/public/common/media_stream_request.h" 10 #include "content/public/common/media_stream_request.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // An embedder may implement MediaObserver and return it from 14 // An embedder may implement MediaObserver and return it from
15 // ContentBrowserClient to receive callbacks as media events occur. 15 // ContentBrowserClient to receive callbacks as media events occur.
16 class MediaObserver { 16 class MediaObserver {
17 public: 17 public:
18 // Called when a audio capture device is plugged in or unplugged. 18 // Called when a audio capture device is plugged in or unplugged.
19 virtual void OnAudioCaptureDevicesChanged( 19 virtual void OnAudioCaptureDevicesChanged() = 0;
20 const MediaStreamDevices& devices) = 0;
21 20
22 // Called when a video capture device is plugged in or unplugged. 21 // Called when a video capture device is plugged in or unplugged.
23 virtual void OnVideoCaptureDevicesChanged( 22 virtual void OnVideoCaptureDevicesChanged() = 0;
24 const MediaStreamDevices& devices) = 0;
25 23
26 // Called when a media request changes state. 24 // Called when a media request changes state.
27 virtual void OnMediaRequestStateChanged( 25 virtual void OnMediaRequestStateChanged(
28 int render_process_id, 26 int render_process_id,
29 int render_view_id, 27 int render_view_id,
30 int page_request_id, 28 int page_request_id,
31 const GURL& security_origin, 29 const GURL& security_origin,
32 const MediaStreamDevice& device, 30 const MediaStreamDevice& device,
33 MediaRequestState state) = 0; 31 MediaRequestState state) = 0;
34 32
(...skipping 22 matching lines...) Expand all
57 int render_frame_id, 55 int render_frame_id,
58 int stream_id) = 0; 56 int stream_id) = 0;
59 57
60 protected: 58 protected:
61 virtual ~MediaObserver() {} 59 virtual ~MediaObserver() {}
62 }; 60 };
63 61
64 } // namespace content 62 } // namespace content
65 63
66 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ 64 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/media_devices_monitor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698