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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 9609008: Implemented Browser Plugin (NOT FOR REVIEW) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merged with Tip-of-Tree 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
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "content/browser/geolocation/geolocation_dispatcher_host.h" 50 #include "content/browser/geolocation/geolocation_dispatcher_host.h"
51 #include "content/browser/gpu/gpu_data_manager_impl.h" 51 #include "content/browser/gpu/gpu_data_manager_impl.h"
52 #include "content/browser/gpu/gpu_process_host.h" 52 #include "content/browser/gpu/gpu_process_host.h"
53 #include "content/browser/in_process_webkit/dom_storage_context_impl.h" 53 #include "content/browser/in_process_webkit/dom_storage_context_impl.h"
54 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" 54 #include "content/browser/in_process_webkit/dom_storage_message_filter.h"
55 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" 55 #include "content/browser/in_process_webkit/indexed_db_context_impl.h"
56 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" 56 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
57 #include "content/browser/mime_registry_message_filter.h" 57 #include "content/browser/mime_registry_message_filter.h"
58 #include "content/browser/plugin_service_impl.h" 58 #include "content/browser/plugin_service_impl.h"
59 #include "content/browser/profiler_message_filter.h" 59 #include "content/browser/profiler_message_filter.h"
60 #include "content/browser/renderer_host/browser_plugin_message_filter.h"
60 #include "content/browser/renderer_host/clipboard_message_filter.h" 61 #include "content/browser/renderer_host/clipboard_message_filter.h"
61 #include "content/browser/renderer_host/database_message_filter.h" 62 #include "content/browser/renderer_host/database_message_filter.h"
62 #include "content/browser/renderer_host/file_utilities_message_filter.h" 63 #include "content/browser/renderer_host/file_utilities_message_filter.h"
63 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 64 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
64 #include "content/browser/renderer_host/gpu_message_filter.h" 65 #include "content/browser/renderer_host/gpu_message_filter.h"
65 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 66 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
66 #include "content/browser/renderer_host/media/audio_renderer_host.h" 67 #include "content/browser/renderer_host/media/audio_renderer_host.h"
67 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 68 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
68 #include "content/browser/renderer_host/media/video_capture_host.h" 69 #include "content/browser/renderer_host/media/video_capture_host.h"
69 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 70 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 447
447 void RenderProcessHostImpl::CreateMessageFilters() { 448 void RenderProcessHostImpl::CreateMessageFilters() {
448 scoped_refptr<RenderMessageFilter> render_message_filter( 449 scoped_refptr<RenderMessageFilter> render_message_filter(
449 new RenderMessageFilter( 450 new RenderMessageFilter(
450 GetID(), 451 GetID(),
451 PluginServiceImpl::GetInstance(), 452 PluginServiceImpl::GetInstance(),
452 GetBrowserContext(), 453 GetBrowserContext(),
453 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), 454 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()),
454 widget_helper_)); 455 widget_helper_));
455 channel_->AddFilter(render_message_filter); 456 channel_->AddFilter(render_message_filter);
457 scoped_refptr<BrowserPluginMessageFilter> browser_plugin_message_filter(
458 new BrowserPluginMessageFilter(GetID()));
459 channel_->AddFilter(browser_plugin_message_filter);
456 content::BrowserContext* browser_context = GetBrowserContext(); 460 content::BrowserContext* browser_context = GetBrowserContext();
457 content::ResourceContext* resource_context = 461 content::ResourceContext* resource_context =
458 browser_context->GetResourceContext(); 462 browser_context->GetResourceContext();
459 463
460 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 464 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
461 GetID(), content::PROCESS_TYPE_RENDERER, resource_context, 465 GetID(), content::PROCESS_TYPE_RENDERER, resource_context,
462 new RendererURLRequestContextSelector(browser_context, GetID())); 466 new RendererURLRequestContextSelector(browser_context, GetID()));
463 467
464 channel_->AddFilter(resource_message_filter); 468 channel_->AddFilter(resource_message_filter);
465 #if !defined(OS_ANDROID) 469 #if !defined(OS_ANDROID)
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { 1323 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) {
1320 // Only honor the request if appropriate persmissions are granted. 1324 // Only honor the request if appropriate persmissions are granted.
1321 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1325 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1322 path)) 1326 path))
1323 content::GetContentClient()->browser()->OpenItem(path); 1327 content::GetContentClient()->browser()->OpenItem(path);
1324 } 1328 }
1325 1329
1326 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1330 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1327 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); 1331 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size);
1328 } 1332 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698