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

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

Issue 23615009: Stub out initial NavigationController browser implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments, s/peer/registry/ now that blink side is settled Created 7 years, 3 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 #include <algorithm> 10 #include <algorithm>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "content/browser/gpu/gpu_data_manager_impl.h" 56 #include "content/browser/gpu/gpu_data_manager_impl.h"
57 #include "content/browser/gpu/gpu_process_host.h" 57 #include "content/browser/gpu/gpu_process_host.h"
58 #include "content/browser/gpu/shader_disk_cache.h" 58 #include "content/browser/gpu/shader_disk_cache.h"
59 #include "content/browser/histogram_message_filter.h" 59 #include "content/browser/histogram_message_filter.h"
60 #include "content/browser/indexed_db/indexed_db_context_impl.h" 60 #include "content/browser/indexed_db/indexed_db_context_impl.h"
61 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 61 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
62 #include "content/browser/loader/resource_message_filter.h" 62 #include "content/browser/loader/resource_message_filter.h"
63 #include "content/browser/loader/resource_scheduler_filter.h" 63 #include "content/browser/loader/resource_scheduler_filter.h"
64 #include "content/browser/media/media_internals.h" 64 #include "content/browser/media/media_internals.h"
65 #include "content/browser/mime_registry_message_filter.h" 65 #include "content/browser/mime_registry_message_filter.h"
66 #include "content/browser/nav_controller/nav_controller_context.h"
67 #include "content/browser/nav_controller/nav_controller_dispatcher_host.h"
66 #include "content/browser/plugin_service_impl.h" 68 #include "content/browser/plugin_service_impl.h"
67 #include "content/browser/profiler_message_filter.h" 69 #include "content/browser/profiler_message_filter.h"
68 #include "content/browser/quota_dispatcher_host.h" 70 #include "content/browser/quota_dispatcher_host.h"
69 #include "content/browser/renderer_host/clipboard_message_filter.h" 71 #include "content/browser/renderer_host/clipboard_message_filter.h"
70 #include "content/browser/renderer_host/database_message_filter.h" 72 #include "content/browser/renderer_host/database_message_filter.h"
71 #include "content/browser/renderer_host/file_utilities_message_filter.h" 73 #include "content/browser/renderer_host/file_utilities_message_filter.h"
72 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 74 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
73 #include "content/browser/renderer_host/gpu_message_filter.h" 75 #include "content/browser/renderer_host/gpu_message_filter.h"
74 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 76 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
75 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" 77 #include "content/browser/renderer_host/media/audio_mirroring_manager.h"
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 channel_->AddFilter(new AppCacheDispatcherHost( 597 channel_->AddFilter(new AppCacheDispatcherHost(
596 storage_partition_impl_->GetAppCacheService(), 598 storage_partition_impl_->GetAppCacheService(),
597 GetID())); 599 GetID()));
598 channel_->AddFilter(new ClipboardMessageFilter); 600 channel_->AddFilter(new ClipboardMessageFilter);
599 channel_->AddFilter(new DOMStorageMessageFilter( 601 channel_->AddFilter(new DOMStorageMessageFilter(
600 GetID(), 602 GetID(),
601 storage_partition_impl_->GetDOMStorageContext())); 603 storage_partition_impl_->GetDOMStorageContext()));
602 channel_->AddFilter(new IndexedDBDispatcherHost( 604 channel_->AddFilter(new IndexedDBDispatcherHost(
603 GetID(), 605 GetID(),
604 storage_partition_impl_->GetIndexedDBContext())); 606 storage_partition_impl_->GetIndexedDBContext()));
607 channel_->AddFilter(new NavControllerDispatcherHost(
608 storage_partition_impl_->GetNavControllerContext()));
605 if (IsGuest()) { 609 if (IsGuest()) {
606 if (!g_browser_plugin_geolocation_context.Get().get()) { 610 if (!g_browser_plugin_geolocation_context.Get().get()) {
607 g_browser_plugin_geolocation_context.Get() = 611 g_browser_plugin_geolocation_context.Get() =
608 new BrowserPluginGeolocationPermissionContext(); 612 new BrowserPluginGeolocationPermissionContext();
609 } 613 }
610 channel_->AddFilter(GeolocationDispatcherHost::New( 614 channel_->AddFilter(GeolocationDispatcherHost::New(
611 GetID(), g_browser_plugin_geolocation_context.Get().get())); 615 GetID(), g_browser_plugin_geolocation_context.Get().get()));
612 } else { 616 } else {
613 channel_->AddFilter(GeolocationDispatcherHost::New( 617 channel_->AddFilter(GeolocationDispatcherHost::New(
614 GetID(), browser_context->GetGeolocationPermissionContext())); 618 GetID(), browser_context->GetGeolocationPermissionContext()));
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 // Skip widgets in other processes. 1791 // Skip widgets in other processes.
1788 if (widget->GetProcess()->GetID() != GetID()) 1792 if (widget->GetProcess()->GetID() != GetID())
1789 continue; 1793 continue;
1790 1794
1791 RenderViewHost* rvh = RenderViewHost::From(widget); 1795 RenderViewHost* rvh = RenderViewHost::From(widget);
1792 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1796 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1793 } 1797 }
1794 } 1798 }
1795 1799
1796 } // namespace content 1800 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698