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

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

Issue 11573066: Add a method to tab_utils.h to find out whether a tab is playing audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 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 | 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 7
8 #include "content/public/browser/media_request_state.h" 8 #include "content/public/browser/media_request_state.h"
9 #include "content/public/common/media_stream_request.h" 9 #include "content/public/common/media_stream_request.h"
10 10
(...skipping 23 matching lines...) Expand all
34 virtual void OnVideoCaptureDevicesChanged( 34 virtual void OnVideoCaptureDevicesChanged(
35 const MediaStreamDevices& devices) = 0; 35 const MediaStreamDevices& devices) = 0;
36 36
37 // Called when a media request changes state. 37 // Called when a media request changes state.
38 virtual void OnMediaRequestStateChanged( 38 virtual void OnMediaRequestStateChanged(
39 int render_process_id, 39 int render_process_id,
40 int render_view_id, 40 int render_view_id,
41 const MediaStreamDevice& device, 41 const MediaStreamDevice& device,
42 MediaRequestState state) = 0; 42 MediaRequestState state) = 0;
43 43
44 // Called when an audio stream is played or paused.
45 virtual void OnAudioStreamPlayingChanged(
46 int render_process_id,
47 int render_view_id,
48 int stream_id,
49 bool playing) = 0;
50
44 protected: 51 protected:
45 virtual ~MediaObserver() {} 52 virtual ~MediaObserver() {}
46 }; 53 };
47 54
48 } // namespace content 55 } // namespace content
49 56
50 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_OBSERVER_H_ 57 #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