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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged ToT Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 17b18853165ca8ad7a26514154798a4d0bbc35f3..95e3e9280fcc35a1a836f0a5c5f5ac581bce4693 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -20,7 +20,6 @@
#include "base/values.h"
#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/cross_site_request_manager.h"
-#include "content/browser/dom_storage/dom_storage_context_impl.h"
#include "content/browser/dom_storage/session_storage_namespace_impl.h"
#include "content/browser/gpu/gpu_surface_tracker.h"
#include "content/browser/host_zoom_map_impl.h"
@@ -172,14 +171,7 @@ RenderViewHostImpl::RenderViewHostImpl(
save_accessibility_tree_for_testing_(false),
send_accessibility_updated_notifications_(false),
render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING) {
- if (!session_storage_namespace_) {
- DOMStorageContext* dom_storage_context =
- BrowserContext::GetDOMStorageContext(GetProcess()->GetBrowserContext(),
- instance->GetProcess()->GetID());
- session_storage_namespace_ = new SessionStorageNamespaceImpl(
- static_cast<DOMStorageContextImpl*>(dom_storage_context));
- }
-
+ DCHECK(session_storage_namespace_);
DCHECK(instance_);
CHECK(delegate_); // http://crbug.com/82827
@@ -1728,11 +1720,6 @@ void RenderViewHostImpl::StopFinding(content::StopFindAction action) {
Send(new ViewMsg_StopFinding(GetRoutingID(), action));
}
-content::SessionStorageNamespace*
-RenderViewHostImpl::GetSessionStorageNamespace() {
- return session_storage_namespace_.get();
-}
-
void RenderViewHostImpl::OnAccessibilityNotifications(
const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
if (view_ && !is_swapped_out_)
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/renderer_host/render_view_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698