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

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

Issue 10168008: Show camera and microphone status indicators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated the media_stream_dispatcher_unittest Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/media/mock_media_observer.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 #pragma once 7 #pragma once
8 8
9 #include "content/public/common/media_stream_request.h"
10
9 namespace media { 11 namespace media {
10 struct MediaLogEvent; 12 struct MediaLogEvent;
11 } 13 }
12 14
13 namespace content { 15 namespace content {
14 16
15 // An embedder may implement MediaObserver and return it from 17 // An embedder may implement MediaObserver and return it from
16 // ContentBrowserClient to receive callbacks as media events occur. 18 // ContentBrowserClient to receive callbacks as media events occur.
17 class MediaObserver { 19 class MediaObserver {
18 public: 20 public:
(...skipping 10 matching lines...) Expand all
29 const std::string& status) = 0; 31 const std::string& status) = 0;
30 32
31 // Called when the volume of an audio stream is set. 33 // Called when the volume of an audio stream is set.
32 virtual void OnSetAudioStreamVolume(void* host, int stream_id, 34 virtual void OnSetAudioStreamVolume(void* host, int stream_id,
33 double volume) = 0; 35 double volume) = 0;
34 36
35 // Called when a MediaEvent occurs. 37 // Called when a MediaEvent occurs.
36 virtual void OnMediaEvent(int render_process_id, 38 virtual void OnMediaEvent(int render_process_id,
37 const media::MediaLogEvent& event) = 0; 39 const media::MediaLogEvent& event) = 0;
38 40
41 // Called when capture devices are opened.
42 virtual void OnCaptureDevicesOpened(
43 int render_process_id,
44 int render_view_id,
45 const content::MediaStreamDevices& devices) = 0;
46
47 // Called when the opened capture devices are closed.
48 virtual void OnCaptureDevicesClosed(
49 int render_process_id,
50 int render_view_id,
51 const content::MediaStreamDevices& devices) = 0;
52
39 protected: 53 protected:
40 virtual ~MediaObserver() {} 54 virtual ~MediaObserver() {}
41 }; 55 };
42 56
43 } // namespace content 57 } // namespace content
44 58
45 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ 59 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/mock_media_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698