diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-13 21:05:37 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-13 21:05:37 +0000 |
commit | 56879f932544d7752b9a9b5f8e0f3be24d3dcda3 (patch) | |
tree | 06c6a8d4a03a6b1e882fa50195d7c6fdacd97688 /chrome/common/render_messages.h | |
parent | 947e3bef0848003abd87afb93a90f4f6637549d3 (diff) | |
download | chromium_src-56879f932544d7752b9a9b5f8e0f3be24d3dcda3.zip chromium_src-56879f932544d7752b9a9b5f8e0f3be24d3dcda3.tar.gz chromium_src-56879f932544d7752b9a9b5f8e0f3be24d3dcda3.tar.bz2 |
Make DOMStorageDispatcherHost be a message filter (and rename it accordingly). It now derives from BrowserMessageFilter and hence gets message dispatching to different threads for free.
Review URL: http://codereview.chromium.org/5722003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69049 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r-- | chrome/common/render_messages.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 0d3eb80..b7de06d 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -17,7 +17,6 @@ #include "base/string16.h" #include "chrome/common/common_param_traits.h" #include "chrome/common/css_colors.h" -#include "chrome/common/dom_storage_common.h" #include "chrome/common/indexed_db_param_traits.h" #include "chrome/common/page_transition_types.h" #include "chrome/common/translate_errors.h" @@ -25,7 +24,6 @@ #include "chrome/common/webkit_param_traits.h" #include "ipc/ipc_message_utils.h" #include "ipc/ipc_platform_file.h" // ifdefed typedef. -#include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h" #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status #include "webkit/fileapi/file_system_types.h" // enum fileapi::FileSystemType #include "webkit/glue/plugins/pepper_dir_contents.h" @@ -103,7 +101,6 @@ struct ViewHostMsg_DidPrintPage_Params; struct ViewHostMsg_Audio_CreateStream_Params; struct ViewHostMsg_ShowPopup_Params; struct ViewHostMsg_ScriptedPrint_Params; -struct ViewMsg_DOMStorageEvent_Params; struct ViewHostMsg_IDBFactoryOpen_Params; struct ViewHostMsg_IDBDatabaseCreateObjectStore_Params; struct ViewHostMsg_IDBIndexOpenCursor_Params; @@ -480,73 +477,6 @@ struct ParamTraits<EditCommand> { static void Log(const param_type& p, std::string* l); }; -// Traits for DOMStorageType enum. -template <> -struct ParamTraits<DOMStorageType> { - typedef DOMStorageType param_type; - static void Write(Message* m, const param_type& p) { - m->WriteInt(p); - } - static bool Read(const Message* m, void** iter, param_type* p) { - int type; - if (!m->ReadInt(iter, &type)) - return false; - *p = static_cast<param_type>(type); - return true; - } - static void Log(const param_type& p, std::string* l) { - std::string control; - switch (p) { - case DOM_STORAGE_LOCAL: - control = "DOM_STORAGE_LOCAL"; - break; - case DOM_STORAGE_SESSION: - control = "DOM_STORAGE_SESSION"; - break; - default: - NOTIMPLEMENTED(); - control = "UNKNOWN"; - break; - } - LogParam(control, l); - } -}; - -// Traits for WebKit::WebStorageArea::Result enum. -template <> -struct ParamTraits<WebKit::WebStorageArea::Result> { - typedef WebKit::WebStorageArea::Result param_type; - static void Write(Message* m, const param_type& p) { - m->WriteInt(p); - } - static bool Read(const Message* m, void** iter, param_type* p) { - int type; - if (!m->ReadInt(iter, &type)) - return false; - *p = static_cast<param_type>(type); - return true; - } - static void Log(const param_type& p, std::string* l) { - std::string control; - switch (p) { - case WebKit::WebStorageArea::ResultOK: - control = "WebKit::WebStorageArea::ResultOK"; - break; - case WebKit::WebStorageArea::ResultBlockedByQuota: - control = "WebKit::WebStorageArea::ResultBlockedByQuota"; - break; - case WebKit::WebStorageArea::ResultBlockedByPolicy: - control = "WebKit::WebStorageArea::ResultBlockedByPolicy"; - break; - default: - NOTIMPLEMENTED(); - control = "UNKNOWN"; - break; - } - LogParam(control, l); - } -}; - // Traits for WebCookie template <> struct ParamTraits<webkit_glue::WebCookie> { |