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

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: 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/navigation_controller/navigation_controller_context.h"
michaeln 2013/09/05 21:15:39 For the naming convention in chromium code, nav_co
alecflett 2013/09/05 22:24:57 I agree with shortening it - I struggled with this
67 #include "content/browser/navigation_controller/navigation_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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 channel_->AddFilter(new AppCacheDispatcherHost( 593 channel_->AddFilter(new AppCacheDispatcherHost(
592 storage_partition_impl_->GetAppCacheService(), 594 storage_partition_impl_->GetAppCacheService(),
593 GetID())); 595 GetID()));
594 channel_->AddFilter(new ClipboardMessageFilter); 596 channel_->AddFilter(new ClipboardMessageFilter);
595 channel_->AddFilter(new DOMStorageMessageFilter( 597 channel_->AddFilter(new DOMStorageMessageFilter(
596 GetID(), 598 GetID(),
597 storage_partition_impl_->GetDOMStorageContext())); 599 storage_partition_impl_->GetDOMStorageContext()));
598 channel_->AddFilter(new IndexedDBDispatcherHost( 600 channel_->AddFilter(new IndexedDBDispatcherHost(
599 GetID(), 601 GetID(),
600 storage_partition_impl_->GetIndexedDBContext())); 602 storage_partition_impl_->GetIndexedDBContext()));
603 channel_->AddFilter(new NavigationControllerDispatcherHost(
604 storage_partition_impl_->GetNavigationControllerContext()));
601 if (IsGuest()) { 605 if (IsGuest()) {
602 if (!g_browser_plugin_geolocation_context.Get().get()) { 606 if (!g_browser_plugin_geolocation_context.Get().get()) {
603 g_browser_plugin_geolocation_context.Get() = 607 g_browser_plugin_geolocation_context.Get() =
604 new BrowserPluginGeolocationPermissionContext(); 608 new BrowserPluginGeolocationPermissionContext();
605 } 609 }
606 channel_->AddFilter(GeolocationDispatcherHost::New( 610 channel_->AddFilter(GeolocationDispatcherHost::New(
607 GetID(), g_browser_plugin_geolocation_context.Get().get())); 611 GetID(), g_browser_plugin_geolocation_context.Get().get()));
608 } else { 612 } else {
609 channel_->AddFilter(GeolocationDispatcherHost::New( 613 channel_->AddFilter(GeolocationDispatcherHost::New(
610 GetID(), browser_context->GetGeolocationPermissionContext())); 614 GetID(), browser_context->GetGeolocationPermissionContext()));
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1773 // Skip widgets in other processes. 1777 // Skip widgets in other processes.
1774 if (widgets[i]->GetProcess()->GetID() != GetID()) 1778 if (widgets[i]->GetProcess()->GetID() != GetID())
1775 continue; 1779 continue;
1776 1780
1777 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1781 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1778 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1782 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1779 } 1783 }
1780 } 1784 }
1781 1785
1782 } // namespace content 1786 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698