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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 9639017: Revert 125629 - Adding a skeleton MediaStreamCenter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/renderer/media/media_stream_center.cc ('k') | content/renderer/render_thread_impl.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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 struct DOMStorageMsg_Event_Params; 33 struct DOMStorageMsg_Event_Params;
34 class GpuChannelHost; 34 class GpuChannelHost;
35 class IndexedDBDispatcher; 35 class IndexedDBDispatcher;
36 class RendererWebKitPlatformSupportImpl; 36 class RendererWebKitPlatformSupportImpl;
37 class SkBitmap; 37 class SkBitmap;
38 class VideoCaptureImplManager; 38 class VideoCaptureImplManager;
39 struct ViewMsg_New_Params; 39 struct ViewMsg_New_Params;
40 class WebDatabaseObserverImpl; 40 class WebDatabaseObserverImpl;
41 41
42 namespace WebKit { 42 namespace WebKit {
43 class WebMediaStreamCenter;
44 class WebMediaStreamCenterClient;
45 class WebStorageEventDispatcher; 43 class WebStorageEventDispatcher;
46 } 44 }
47 45
48 namespace base { 46 namespace base {
49 class MessageLoopProxy; 47 class MessageLoopProxy;
50 class Thread; 48 class Thread;
51 namespace win { 49 namespace win {
52 class ScopedCOMInitializer; 50 class ScopedCOMInitializer;
53 } 51 }
54 } 52 }
55 53
56 namespace content { 54 namespace content {
57 class MediaStreamCenter;
58 class RenderProcessObserver; 55 class RenderProcessObserver;
59 } 56 }
60 57
61 namespace v8 { 58 namespace v8 {
62 class Extension; 59 class Extension;
63 } 60 }
64 61
65 // The RenderThreadImpl class represents a background thread where RenderView 62 // The RenderThreadImpl class represents a background thread where RenderView
66 // instances live. The RenderThread supports an API that is used by its 63 // instances live. The RenderThread supports an API that is used by its
67 // consumer to talk indirectly to the RenderViews and supporting objects. 64 // consumer to talk indirectly to the RenderViews and supporting objects.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 162 }
166 163
167 AudioInputMessageFilter* audio_input_message_filter() { 164 AudioInputMessageFilter* audio_input_message_filter() {
168 return audio_input_message_filter_.get(); 165 return audio_input_message_filter_.get();
169 } 166 }
170 167
171 AudioMessageFilter* audio_message_filter() { 168 AudioMessageFilter* audio_message_filter() {
172 return audio_message_filter_.get(); 169 return audio_message_filter_.get();
173 } 170 }
174 171
175 // Creates the embedder implementation of WebMediaStreamCenter.
176 // The resulting object is owned by WebKit and deleted by WebKit at tear-down.
177 WebKit::WebMediaStreamCenter* CreateMediaStreamCenter(
178 WebKit::WebMediaStreamCenterClient* client);
179
180 VideoCaptureImplManager* video_capture_impl_manager() const { 172 VideoCaptureImplManager* video_capture_impl_manager() const {
181 return vc_manager_.get(); 173 return vc_manager_.get();
182 } 174 }
183 175
184 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } 176 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; }
185 177
186 // Get the GPU channel. Returns NULL if the channel is not established or 178 // Get the GPU channel. Returns NULL if the channel is not established or
187 // has been lost. 179 // has been lost.
188 GpuChannelHost* GetGpuChannel(); 180 GpuChannelHost* GetGpuChannel();
189 181
(...skipping 23 matching lines...) Expand all
213 void OnTempCrashWithData(const GURL& data); 205 void OnTempCrashWithData(const GURL& data);
214 206
215 void IdleHandlerInForegroundTab(); 207 void IdleHandlerInForegroundTab();
216 208
217 // These objects live solely on the render thread. 209 // These objects live solely on the render thread.
218 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 210 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
219 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 211 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
220 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; 212 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_;
221 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; 213 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_;
222 214
223 // Used on the render thread and deleted by WebKit at shutdown.
224 content::MediaStreamCenter* media_stream_center_;
225
226 // Used on the renderer and IPC threads. 215 // Used on the renderer and IPC threads.
227 scoped_refptr<DBMessageFilter> db_message_filter_; 216 scoped_refptr<DBMessageFilter> db_message_filter_;
228 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 217 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
229 scoped_refptr<AudioMessageFilter> audio_message_filter_; 218 scoped_refptr<AudioMessageFilter> audio_message_filter_;
230 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; 219 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_;
231 220
232 // Used on multiple threads. 221 // Used on multiple threads.
233 scoped_refptr<VideoCaptureImplManager> vc_manager_; 222 scoped_refptr<VideoCaptureImplManager> vc_manager_;
234 223
235 // Used on multiple script execution context threads. 224 // Used on multiple script execution context threads.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 259
271 bool compositor_initialized_; 260 bool compositor_initialized_;
272 scoped_ptr<CompositorThread> compositor_thread_; 261 scoped_ptr<CompositorThread> compositor_thread_;
273 262
274 ObserverList<content::RenderProcessObserver> observers_; 263 ObserverList<content::RenderProcessObserver> observers_;
275 264
276 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 265 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
277 }; 266 };
278 267
279 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 268 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_center.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698