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

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

Issue 9968097: Browser Plugin: Renderer-side changes (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make RefCounted<GuestToEmbedderChannel> a friend Created 8 years, 7 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 namespace base { 47 namespace base {
48 class MessageLoopProxy; 48 class MessageLoopProxy;
49 class Thread; 49 class Thread;
50 namespace win { 50 namespace win {
51 class ScopedCOMInitializer; 51 class ScopedCOMInitializer;
52 } 52 }
53 } 53 }
54 54
55 namespace content { 55 namespace content {
56 class BrowserPluginChannelManager;
57 class BrowserPluginRegistry;
56 class MediaStreamCenter; 58 class MediaStreamCenter;
57 class RenderProcessObserver; 59 class RenderProcessObserver;
58 } 60 }
59 61
60 namespace v8 { 62 namespace v8 {
61 class Extension; 63 class Extension;
62 } 64 }
63 65
64 // The RenderThreadImpl class represents a background thread where RenderView 66 // The RenderThreadImpl class represents a background thread where RenderView
65 // instances live. The RenderThread supports an API that is used by its 67 // instances live. The RenderThread supports an API that is used by its
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // resource loads. However, there are exceptions when we need to customize 160 // resource loads. However, there are exceptions when we need to customize
159 // the behavior. 161 // the behavior.
160 void DoNotSuspendWebKitSharedTimer(); 162 void DoNotSuspendWebKitSharedTimer();
161 void DoNotNotifyWebKitOfModalLoop(); 163 void DoNotNotifyWebKitOfModalLoop();
162 164
163 // Will be NULL if threaded compositing has not been enabled. 165 // Will be NULL if threaded compositing has not been enabled.
164 CompositorThread* compositor_thread() const { 166 CompositorThread* compositor_thread() const {
165 return compositor_thread_.get(); 167 return compositor_thread_.get();
166 } 168 }
167 169
170 content::BrowserPluginRegistry* browser_plugin_registry() const {
171 return browser_plugin_registry_.get();
172 }
173
174 content::BrowserPluginChannelManager* browser_plugin_channel_manager() const {
175 return browser_plugin_channel_manager_.get();
176 }
177
168 AppCacheDispatcher* appcache_dispatcher() const { 178 AppCacheDispatcher* appcache_dispatcher() const {
169 return appcache_dispatcher_.get(); 179 return appcache_dispatcher_.get();
170 } 180 }
171 181
172 AudioInputMessageFilter* audio_input_message_filter() { 182 AudioInputMessageFilter* audio_input_message_filter() {
173 return audio_input_message_filter_.get(); 183 return audio_input_message_filter_.get();
174 } 184 }
175 185
176 AudioMessageFilter* audio_message_filter() { 186 AudioMessageFilter* audio_message_filter() {
177 return audio_message_filter_.get(); 187 return audio_message_filter_.get();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void OnGetAccessibilityTree(); 226 void OnGetAccessibilityTree();
217 void OnTempCrashWithData(const GURL& data); 227 void OnTempCrashWithData(const GURL& data);
218 228
219 void IdleHandlerInForegroundTab(); 229 void IdleHandlerInForegroundTab();
220 230
221 // These objects live solely on the render thread. 231 // These objects live solely on the render thread.
222 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 232 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
223 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 233 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
224 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 234 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
225 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; 235 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_;
236 scoped_ptr<content::BrowserPluginChannelManager>
237 browser_plugin_channel_manager_;
226 238
227 // Used on the render thread and deleted by WebKit at shutdown. 239 // Used on the render thread and deleted by WebKit at shutdown.
228 content::MediaStreamCenter* media_stream_center_; 240 content::MediaStreamCenter* media_stream_center_;
229 241
230 // Used on the renderer and IPC threads. 242 // Used on the renderer and IPC threads.
231 scoped_refptr<DBMessageFilter> db_message_filter_; 243 scoped_refptr<DBMessageFilter> db_message_filter_;
232 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 244 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
233 scoped_refptr<AudioMessageFilter> audio_message_filter_; 245 scoped_refptr<AudioMessageFilter> audio_message_filter_;
234 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; 246 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_;
235 247
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 scoped_refptr<GpuChannelHost> gpu_channel_; 279 scoped_refptr<GpuChannelHost> gpu_channel_;
268 280
269 // A lazily initiated thread on which file operations are run. 281 // A lazily initiated thread on which file operations are run.
270 scoped_ptr<base::Thread> file_thread_; 282 scoped_ptr<base::Thread> file_thread_;
271 283
272 // Map of registered v8 extensions. The key is the extension name. 284 // Map of registered v8 extensions. The key is the extension name.
273 std::set<std::string> v8_extensions_; 285 std::set<std::string> v8_extensions_;
274 286
275 bool compositor_initialized_; 287 bool compositor_initialized_;
276 scoped_ptr<CompositorThread> compositor_thread_; 288 scoped_ptr<CompositorThread> compositor_thread_;
289 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_;
277 290
278 ObserverList<content::RenderProcessObserver> observers_; 291 ObserverList<content::RenderProcessObserver> observers_;
279 292
280 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 293 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
281 }; 294 };
282 295
283 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 296 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698