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

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: mac win compile fixes 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 dcdbbaff5592fc738cefd2776dc08146dcb4624f..48dc0269387e0085d992c4bdf5d439db0a89b26f 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
@@ -1724,11 +1716,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_)

Powered by Google App Engine
This is Rietveld 408576698