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

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

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix race condition Created 8 years, 10 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 21 matching lines...) Expand all
32 #include "base/platform_file.h" 32 #include "base/platform_file.h"
33 #include "base/process_util.h" 33 #include "base/process_util.h"
34 #include "base/rand_util.h" 34 #include "base/rand_util.h"
35 #include "base/stl_util.h" 35 #include "base/stl_util.h"
36 #include "base/string_util.h" 36 #include "base/string_util.h"
37 #include "base/sys_info.h" 37 #include "base/sys_info.h"
38 #include "base/threading/thread.h" 38 #include "base/threading/thread.h"
39 #include "base/threading/thread_restrictions.h" 39 #include "base/threading/thread_restrictions.h"
40 #include "base/tracked_objects.h" 40 #include "base/tracked_objects.h"
41 #include "content/browser/appcache/appcache_dispatcher_host.h" 41 #include "content/browser/appcache/appcache_dispatcher_host.h"
42 #include "content/browser/appcache/chrome_appcache_service.h"
42 #include "content/browser/browser_main.h" 43 #include "content/browser/browser_main.h"
43 #include "content/browser/child_process_security_policy_impl.h" 44 #include "content/browser/child_process_security_policy_impl.h"
45 #include "content/browser/chrome_blob_storage_context.h"
44 #include "content/browser/device_orientation/message_filter.h" 46 #include "content/browser/device_orientation/message_filter.h"
45 #include "content/browser/download/mhtml_generation_manager.h" 47 #include "content/browser/download/mhtml_generation_manager.h"
46 #include "content/browser/file_system/file_system_dispatcher_host.h" 48 #include "content/browser/file_system/file_system_dispatcher_host.h"
47 #include "content/browser/geolocation/geolocation_dispatcher_host.h" 49 #include "content/browser/geolocation/geolocation_dispatcher_host.h"
48 #include "content/browser/gpu/gpu_data_manager_impl.h" 50 #include "content/browser/gpu/gpu_data_manager_impl.h"
49 #include "content/browser/gpu/gpu_process_host.h" 51 #include "content/browser/gpu/gpu_process_host.h"
50 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" 52 #include "content/browser/in_process_webkit/dom_storage_message_filter.h"
51 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" 53 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
52 #include "content/browser/mime_registry_message_filter.h" 54 #include "content/browser/mime_registry_message_filter.h"
53 #include "content/browser/plugin_service_impl.h" 55 #include "content/browser/plugin_service_impl.h"
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 456
455 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 457 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
456 GetID(), content::PROCESS_TYPE_RENDERER, resource_context, 458 GetID(), content::PROCESS_TYPE_RENDERER, resource_context,
457 new RendererURLRequestContextSelector(browser_context, GetID())); 459 new RendererURLRequestContextSelector(browser_context, GetID()));
458 460
459 channel_->AddFilter(resource_message_filter); 461 channel_->AddFilter(resource_message_filter);
460 channel_->AddFilter(new AudioInputRendererHost(resource_context)); 462 channel_->AddFilter(new AudioInputRendererHost(resource_context));
461 channel_->AddFilter(new AudioRendererHost(resource_context)); 463 channel_->AddFilter(new AudioRendererHost(resource_context));
462 channel_->AddFilter(new VideoCaptureHost(resource_context)); 464 channel_->AddFilter(new VideoCaptureHost(resource_context));
463 channel_->AddFilter(new AppCacheDispatcherHost( 465 channel_->AddFilter(new AppCacheDispatcherHost(
464 BrowserContext::GetAppCacheService(browser_context), GetID())); 466 static_cast<ChromeAppCacheService*>(
467 BrowserContext::GetAppCacheService(browser_context)),
468 GetID()));
465 channel_->AddFilter(new ClipboardMessageFilter()); 469 channel_->AddFilter(new ClipboardMessageFilter());
466 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), 470 channel_->AddFilter(new DOMStorageMessageFilter(GetID(),
467 BrowserContext::GetWebKitContext(browser_context))); 471 BrowserContext::GetWebKitContext(browser_context)));
468 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), 472 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(),
469 BrowserContext::GetWebKitContext(browser_context))); 473 BrowserContext::GetWebKitContext(browser_context)));
470 channel_->AddFilter(GeolocationDispatcherHost::New( 474 channel_->AddFilter(GeolocationDispatcherHost::New(
471 GetID(), browser_context->GetGeolocationPermissionContext())); 475 GetID(), browser_context->GetGeolocationPermissionContext()));
472 channel_->AddFilter(new GpuMessageFilter(GetID(), widget_helper_.get())); 476 channel_->AddFilter(new GpuMessageFilter(GetID(), widget_helper_.get()));
473 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( 477 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(
474 resource_context, GetID())); 478 resource_context, GetID()));
475 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); 479 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context));
476 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, 480 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER,
477 GetID(), resource_context)); 481 GetID(), resource_context));
478 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost( 482 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(
479 GetID(), browser_context->GetRequestContext(), 483 GetID(), browser_context->GetRequestContext(),
480 browser_context->GetSpeechInputPreferences(), resource_context)); 484 browser_context->GetSpeechInputPreferences(), resource_context));
481 channel_->AddFilter(new FileSystemDispatcherHost( 485 channel_->AddFilter(new FileSystemDispatcherHost(
482 browser_context->GetRequestContext(), 486 browser_context->GetRequestContext(),
483 BrowserContext::GetFileSystemContext(browser_context))); 487 BrowserContext::GetFileSystemContext(browser_context)));
484 channel_->AddFilter(new device_orientation::MessageFilter()); 488 channel_->AddFilter(new device_orientation::MessageFilter());
485 channel_->AddFilter(new BlobMessageFilter(GetID(), 489 channel_->AddFilter(new BlobMessageFilter(GetID(),
486 BrowserContext::GetBlobStorageContext(browser_context))); 490 ChromeBlobStorageContext::GetFor(browser_context)));
487 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 491 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
488 channel_->AddFilter(new MimeRegistryMessageFilter()); 492 channel_->AddFilter(new MimeRegistryMessageFilter());
489 channel_->AddFilter(new DatabaseMessageFilter( 493 channel_->AddFilter(new DatabaseMessageFilter(
490 BrowserContext::GetDatabaseTracker(browser_context))); 494 BrowserContext::GetDatabaseTracker(browser_context)));
491 #if defined(OS_MACOSX) 495 #if defined(OS_MACOSX)
492 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); 496 channel_->AddFilter(new TextInputClientMessageFilter(GetID()));
493 #elif defined(OS_WIN) 497 #elif defined(OS_WIN)
494 channel_->AddFilter(new FontCacheDispatcher()); 498 channel_->AddFilter(new FontCacheDispatcher());
495 #endif 499 #endif
496 500
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 // Only honor the request if appropriate persmissions are granted. 1298 // Only honor the request if appropriate persmissions are granted.
1295 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1299 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1296 path)) 1300 path))
1297 content::GetContentClient()->browser()->OpenItem(path); 1301 content::GetContentClient()->browser()->OpenItem(path);
1298 } 1302 }
1299 1303
1300 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1304 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1301 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1305 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1302 MHTMLGenerated(job_id, data_size); 1306 MHTMLGenerated(job_id, data_size);
1303 } 1307 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698