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

Unified Diff: chrome/common/render_messages.h

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/common/dom_storage_type.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 36257)
+++ chrome/common/render_messages.h (working copy)
@@ -19,7 +19,7 @@
#include "chrome/browser/renderer_host/resource_handler.h"
#include "chrome/common/common_param_traits.h"
#include "chrome/common/css_colors.h"
-#include "chrome/common/dom_storage_type.h"
+#include "chrome/common/dom_storage_common.h"
#include "chrome/common/edit_command.h"
#include "chrome/common/extensions/url_pattern.h"
#include "chrome/common/filter_policy.h"
@@ -534,6 +534,24 @@
bool all_frames;
};
+// Creates a new view.
+struct ViewMsg_New_Params {
+ // The parent window's id.
+ gfx::NativeViewId parent_window;
+
+ // Renderer-wide preferences.
+ RendererPreferences renderer_preferences;
+
+ // Preferences for this view.
+ WebPreferences web_preferences;
+
+ // This view's ID.
+ int32 view_id;
+
+ // The session storage namespace ID this view shoudl use.
+ int64 session_storage_namespace_id;
+};
+
namespace IPC {
template <>
@@ -2292,7 +2310,6 @@
WriteParam(m, p.code);
WriteParam(m, p.all_frames);
}
-
static bool Read(const Message* m, void** iter, param_type* p) {
return
ReadParam(m, iter, &p->request_id) &&
@@ -2307,6 +2324,40 @@
}
};
+template<>
+struct ParamTraits<ViewMsg_New_Params> {
+ typedef ViewMsg_New_Params param_type;
+ static void Write(Message* m, const param_type& p) {
+ WriteParam(m, p.parent_window);
+ WriteParam(m, p.renderer_preferences);
+ WriteParam(m, p.web_preferences);
+ WriteParam(m, p.view_id);
+ WriteParam(m, p.session_storage_namespace_id);
+ }
+
+ static bool Read(const Message* m, void** iter, param_type* p) {
+ return
+ ReadParam(m, iter, &p->parent_window) &&
+ ReadParam(m, iter, &p->renderer_preferences) &&
+ ReadParam(m, iter, &p->web_preferences) &&
+ ReadParam(m, iter, &p->view_id) &&
+ ReadParam(m, iter, &p->session_storage_namespace_id);
+ }
+ static void Log(const param_type& p, std::wstring* l) {
+ l->append(L"(");
+ LogParam(p.parent_window, l);
+ l->append(L", ");
+ LogParam(p.renderer_preferences, l);
+ l->append(L", ");
+ LogParam(p.web_preferences, l);
+ l->append(L", ");
+ LogParam(p.view_id, l);
+ l->append(L", ");
+ LogParam(p.session_storage_namespace_id, l);
+ l->append(L")");
+ }
+};
+
} // namespace IPC
« no previous file with comments | « chrome/common/dom_storage_type.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698