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

Side by Side Diff: chrome/browser/media/media_capture_devices_dispatcher.h

Issue 569713002: Revert of Gardening: Revert "Use AudioStreamMonitor to control power save blocking." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 (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 CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 virtual void OnVideoCaptureDevicesChanged() OVERRIDE; 122 virtual void OnVideoCaptureDevicesChanged() OVERRIDE;
123 virtual void OnMediaRequestStateChanged( 123 virtual void OnMediaRequestStateChanged(
124 int render_process_id, 124 int render_process_id,
125 int render_frame_id, 125 int render_frame_id,
126 int page_request_id, 126 int page_request_id,
127 const GURL& security_origin, 127 const GURL& security_origin,
128 content::MediaStreamType stream_type, 128 content::MediaStreamType stream_type,
129 content::MediaRequestState state) OVERRIDE; 129 content::MediaRequestState state) OVERRIDE;
130 virtual void OnCreatingAudioStream(int render_process_id, 130 virtual void OnCreatingAudioStream(int render_process_id,
131 int render_frame_id) OVERRIDE; 131 int render_frame_id) OVERRIDE;
132 virtual void OnAudioStreamPlaying(
133 int render_process_id,
134 int render_frame_id,
135 int stream_id,
136 const ReadPowerAndClipCallback& power_read_callback) OVERRIDE;
137 virtual void OnAudioStreamStopped(
138 int render_process_id,
139 int render_frame_id,
140 int stream_id) OVERRIDE;
141 132
142 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); 133 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator();
143 134
144 DesktopStreamsRegistry* GetDesktopStreamsRegistry(); 135 DesktopStreamsRegistry* GetDesktopStreamsRegistry();
145 136
146 bool IsDesktopCaptureInProgress(); 137 bool IsDesktopCaptureInProgress();
147 138
148 // Only for testing. 139 // Only for testing.
149 void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices); 140 void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices);
150 void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices); 141 void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 int render_frame_id; 236 int render_frame_id;
246 int page_request_id; 237 int page_request_id;
247 }; 238 };
248 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; 239 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions;
249 DesktopCaptureSessions desktop_capture_sessions_; 240 DesktopCaptureSessions desktop_capture_sessions_;
250 241
251 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); 242 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher);
252 }; 243 };
253 244
254 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ 245 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/audio_stream_monitor_unittest.cc ('k') | chrome/browser/media/media_capture_devices_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698