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

Side by Side Diff: content/renderer/media/media_stream_impl.h

Issue 11339014: Move content\browser\renderer_host\media to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
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_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const base::Closure& error_cb, 72 const base::Closure& error_cb,
73 const webkit_media::VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE; 73 const webkit_media::VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE;
74 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( 74 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
75 const GURL& url, 75 const GURL& url,
76 media::MessageLoopFactory* message_loop_factory) OVERRIDE; 76 media::MessageLoopFactory* message_loop_factory) OVERRIDE;
77 77
78 // MediaStreamDispatcherEventHandler implementation. 78 // MediaStreamDispatcherEventHandler implementation.
79 virtual void OnStreamGenerated( 79 virtual void OnStreamGenerated(
80 int request_id, 80 int request_id,
81 const std::string& label, 81 const std::string& label,
82 const media_stream::StreamDeviceInfoArray& audio_array, 82 const StreamDeviceInfoArray& audio_array,
83 const media_stream::StreamDeviceInfoArray& video_array) OVERRIDE; 83 const StreamDeviceInfoArray& video_array) OVERRIDE;
84 virtual void OnStreamGenerationFailed(int request_id) OVERRIDE; 84 virtual void OnStreamGenerationFailed(int request_id) OVERRIDE;
85 virtual void OnDevicesEnumerated( 85 virtual void OnDevicesEnumerated(
86 int request_id, 86 int request_id,
87 const media_stream::StreamDeviceInfoArray& device_array) OVERRIDE; 87 const StreamDeviceInfoArray& device_array) OVERRIDE;
88 virtual void OnDevicesEnumerationFailed(int request_id) OVERRIDE; 88 virtual void OnDevicesEnumerationFailed(int request_id) OVERRIDE;
89 virtual void OnDeviceOpened( 89 virtual void OnDeviceOpened(
90 int request_id, 90 int request_id,
91 const std::string& label, 91 const std::string& label,
92 const media_stream::StreamDeviceInfo& device_info) OVERRIDE; 92 const StreamDeviceInfo& device_info) OVERRIDE;
93 virtual void OnDeviceOpenFailed(int request_id) OVERRIDE; 93 virtual void OnDeviceOpenFailed(int request_id) OVERRIDE;
94 94
95 // RenderViewObserver OVERRIDE 95 // RenderViewObserver OVERRIDE
96 virtual void FrameWillClose(WebKit::WebFrame* frame) OVERRIDE; 96 virtual void FrameWillClose(WebKit::WebFrame* frame) OVERRIDE;
97 97
98 protected: 98 protected:
99 // Stops a local MediaStream by notifying the MediaStreamDispatcher that the 99 // Stops a local MediaStream by notifying the MediaStreamDispatcher that the
100 // stream no longer may be used. 100 // stream no longer may be used.
101 void OnLocalMediaStreamStop(const std::string& label); 101 void OnLocalMediaStreamStop(const std::string& label);
102 102
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 scoped_refptr<VideoCaptureImplManager> vc_manager_; 172 scoped_refptr<VideoCaptureImplManager> vc_manager_;
173 173
174 UserMediaRequests user_media_requests_; 174 UserMediaRequests user_media_requests_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl); 176 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl);
177 }; 177 };
178 178
179 } // namespace content 179 } // namespace content
180 180
181 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ 181 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698