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

Unified Diff: chrome/renderer/render_view.cc

Issue 545054: Introduce all the plumbing for Session Storage. This mostly consists of crea... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 36257)
+++ chrome/renderer/render_view.cc (working copy)
@@ -244,7 +244,8 @@
int32 RenderView::next_page_id_ = 1;
RenderView::RenderView(RenderThreadBase* render_thread,
- const WebPreferences& webkit_preferences)
+ const WebPreferences& webkit_preferences,
+ int64 session_storage_namespace_id)
: RenderWidget(render_thread, true),
enabled_bindings_(0),
target_url_status_(TARGET_NONE),
@@ -278,7 +279,8 @@
has_document_tag_(false),
#endif
document_tag_(0),
- webkit_preferences_(webkit_preferences) {
+ webkit_preferences_(webkit_preferences),
+ session_storage_namespace_id_(session_storage_namespace_id) {
}
RenderView::~RenderView() {
@@ -335,9 +337,11 @@
const RendererPreferences& renderer_prefs,
const WebPreferences& webkit_prefs,
SharedRenderViewCounter* counter,
- int32 routing_id) {
+ int32 routing_id,
+ int64 session_storage_namespace_id) {
DCHECK(routing_id != MSG_ROUTING_NONE);
- scoped_refptr<RenderView> view = new RenderView(render_thread, webkit_prefs);
+ scoped_refptr<RenderView> view = new RenderView(render_thread, webkit_prefs,
+ session_storage_namespace_id);
view->Init(parent_hwnd,
opener_id,
renderer_prefs,
@@ -1355,9 +1359,13 @@
int32 routing_id = MSG_ROUTING_NONE;
bool user_gesture = creator->isProcessingUserGesture();
bool opener_suppressed = creator->willSuppressOpenerInNewFrame();
+ int64 cloned_session_storage_namespace_id;
render_thread_->Send(
- new ViewHostMsg_CreateWindow(routing_id_, user_gesture, &routing_id));
+ new ViewHostMsg_CreateWindow(routing_id_, user_gesture,
+ session_storage_namespace_id_,
+ &routing_id,
+ &cloned_session_storage_namespace_id));
if (routing_id == MSG_ROUTING_NONE)
return NULL;
@@ -1367,7 +1375,8 @@
renderer_preferences_,
webkit_preferences_,
shared_popup_counter_,
- routing_id);
+ routing_id,
+ cloned_session_storage_namespace_id);
view->opened_by_user_gesture_ = user_gesture;
// Record whether the creator frame is trying to suppress the opener field.
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698