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

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

Issue 9609008: Implemented Browser Plugin (NOT FOR REVIEW) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated according to creis@'s comments 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // resource loads. However, there are exceptions when we need to customize 158 // resource loads. However, there are exceptions when we need to customize
157 // the behavior. 159 // the behavior.
158 void DoNotSuspendWebKitSharedTimer(); 160 void DoNotSuspendWebKitSharedTimer();
159 void DoNotNotifyWebKitOfModalLoop(); 161 void DoNotNotifyWebKitOfModalLoop();
160 162
161 // Will be NULL if threaded compositing has not been enabled. 163 // Will be NULL if threaded compositing has not been enabled.
162 CompositorThread* compositor_thread() const { 164 CompositorThread* compositor_thread() const {
163 return compositor_thread_.get(); 165 return compositor_thread_.get();
164 } 166 }
165 167
168 content::BrowserPluginRegistry* browser_plugin_registry() const {
169 return browser_plugin_registry_.get();
170 }
171
172 content::BrowserPluginChannelManager* browser_plugin_channel_manager() const {
173 return browser_plugin_channel_manager_.get();
174 }
175
166 AppCacheDispatcher* appcache_dispatcher() const { 176 AppCacheDispatcher* appcache_dispatcher() const {
167 return appcache_dispatcher_.get(); 177 return appcache_dispatcher_.get();
168 } 178 }
169 179
170 AudioInputMessageFilter* audio_input_message_filter() { 180 AudioInputMessageFilter* audio_input_message_filter() {
171 return audio_input_message_filter_.get(); 181 return audio_input_message_filter_.get();
172 } 182 }
173 183
174 AudioMessageFilter* audio_message_filter() { 184 AudioMessageFilter* audio_message_filter() {
175 return audio_message_filter_.get(); 185 return audio_message_filter_.get();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 void OnGetAccessibilityTree(); 224 void OnGetAccessibilityTree();
215 void OnTempCrashWithData(const GURL& data); 225 void OnTempCrashWithData(const GURL& data);
216 226
217 void IdleHandlerInForegroundTab(); 227 void IdleHandlerInForegroundTab();
218 228
219 // These objects live solely on the render thread. 229 // These objects live solely on the render thread.
220 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 230 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
221 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 231 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
222 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 232 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
223 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_; 233 scoped_ptr<RendererWebKitPlatformSupportImpl> webkit_platform_support_;
234 scoped_ptr<content::BrowserPluginChannelManager>
235 browser_plugin_channel_manager_;
224 236
225 // Used on the render thread and deleted by WebKit at shutdown. 237 // Used on the render thread and deleted by WebKit at shutdown.
226 content::MediaStreamCenter* media_stream_center_; 238 content::MediaStreamCenter* media_stream_center_;
227 239
228 // Used on the renderer and IPC threads. 240 // Used on the renderer and IPC threads.
229 scoped_refptr<DBMessageFilter> db_message_filter_; 241 scoped_refptr<DBMessageFilter> db_message_filter_;
230 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_; 242 scoped_refptr<AudioInputMessageFilter> audio_input_message_filter_;
231 scoped_refptr<AudioMessageFilter> audio_message_filter_; 243 scoped_refptr<AudioMessageFilter> audio_message_filter_;
232 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_; 244 scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_;
233 245
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 scoped_refptr<GpuChannelHost> gpu_channel_; 277 scoped_refptr<GpuChannelHost> gpu_channel_;
266 278
267 // A lazily initiated thread on which file operations are run. 279 // A lazily initiated thread on which file operations are run.
268 scoped_ptr<base::Thread> file_thread_; 280 scoped_ptr<base::Thread> file_thread_;
269 281
270 // Map of registered v8 extensions. The key is the extension name. 282 // Map of registered v8 extensions. The key is the extension name.
271 std::set<std::string> v8_extensions_; 283 std::set<std::string> v8_extensions_;
272 284
273 bool compositor_initialized_; 285 bool compositor_initialized_;
274 scoped_ptr<CompositorThread> compositor_thread_; 286 scoped_ptr<CompositorThread> compositor_thread_;
287 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_;
275 288
276 ObserverList<content::RenderProcessObserver> observers_; 289 ObserverList<content::RenderProcessObserver> observers_;
277 290
278 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 291 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
279 }; 292 };
280 293
281 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 294 #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