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

Side by Side Diff: content/browser/renderer_host/media/media_stream_dispatcher_host.h

Issue 11146008: remove VideoDeviceError and AudioDeviceError for media stream. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « no previous file | content/browser/renderer_host/media/media_stream_dispatcher_host.cc » ('j') | 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_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 14 matching lines...) Expand all
25 public MediaStreamRequester { 25 public MediaStreamRequester {
26 public: 26 public:
27 explicit MediaStreamDispatcherHost(int render_process_id); 27 explicit MediaStreamDispatcherHost(int render_process_id);
28 28
29 // MediaStreamRequester implementation. 29 // MediaStreamRequester implementation.
30 virtual void StreamGenerated( 30 virtual void StreamGenerated(
31 const std::string& label, 31 const std::string& label,
32 const StreamDeviceInfoArray& audio_devices, 32 const StreamDeviceInfoArray& audio_devices,
33 const StreamDeviceInfoArray& video_devices) OVERRIDE; 33 const StreamDeviceInfoArray& video_devices) OVERRIDE;
34 virtual void StreamGenerationFailed(const std::string& label) OVERRIDE; 34 virtual void StreamGenerationFailed(const std::string& label) OVERRIDE;
35 virtual void AudioDeviceFailed(const std::string& label, int index) OVERRIDE;
36 virtual void VideoDeviceFailed(const std::string& label, int index) OVERRIDE;
37 virtual void DevicesEnumerated(const std::string& label, 35 virtual void DevicesEnumerated(const std::string& label,
38 const StreamDeviceInfoArray& devices) OVERRIDE; 36 const StreamDeviceInfoArray& devices) OVERRIDE;
39 virtual void DeviceOpened(const std::string& label, 37 virtual void DeviceOpened(const std::string& label,
40 const StreamDeviceInfo& video_device) OVERRIDE; 38 const StreamDeviceInfo& video_device) OVERRIDE;
41 39
42 // content::BrowserMessageFilter implementation. 40 // content::BrowserMessageFilter implementation.
43 virtual bool OnMessageReceived(const IPC::Message& message, 41 virtual bool OnMessageReceived(const IPC::Message& message,
44 bool* message_was_ok) OVERRIDE; 42 bool* message_was_ok) OVERRIDE;
45 virtual void OnChannelClosing() OVERRIDE; 43 virtual void OnChannelClosing() OVERRIDE;
46 44
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 typedef std::map<std::string, StreamRequest> StreamMap; 83 typedef std::map<std::string, StreamRequest> StreamMap;
86 // Streams generated for this host. 84 // Streams generated for this host.
87 StreamMap streams_; 85 StreamMap streams_;
88 86
89 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); 87 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost);
90 }; 88 };
91 89
92 } // namespace media_stream 90 } // namespace media_stream
93 91
94 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ 92 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698