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

Side by Side Diff: chrome/common/dom_storage_messages.h

Issue 6646005: Creates the ipclist utility that chrome security team has wanted to dump... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_DOM_STORAGE_MESSAGES_H_ 5 // Multiply-included file, hence no traditional include guard.
6 #define CHROME_COMMON_DOM_STORAGE_MESSAGES_H_
7 #pragma once
8 6
9 #include "chrome/common/dom_storage_common.h" 7 #include "chrome/common/dom_storage_common.h"
10 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
11 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
12 #include "ipc/ipc_param_traits.h" 10 #include "ipc/ipc_param_traits.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h"
14 12
15 #define IPC_MESSAGE_START DOMStorageMsgStart 13 #define IPC_MESSAGE_START DOMStorageMsgStart
16 14
15 // Singly-included section not yet converted.
16 #ifndef CHROME_COMMON_DOM_STORAGE_MESSAGES_H_
17 #define CHROME_COMMON_DOM_STORAGE_MESSAGES_H_
18
17 // Signals a storage event. 19 // Signals a storage event.
18 struct DOMStorageMsg_Event_Params { 20 struct DOMStorageMsg_Event_Params {
19 DOMStorageMsg_Event_Params(); 21 DOMStorageMsg_Event_Params();
20 ~DOMStorageMsg_Event_Params(); 22 ~DOMStorageMsg_Event_Params();
21 23
22 // The key that generated the storage event. Null if clear() was called. 24 // The key that generated the storage event. Null if clear() was called.
23 NullableString16 key; 25 NullableString16 key;
24 26
25 // The old value of this key. Null on clear() or if it didn't have a value. 27 // The old value of this key. Null on clear() or if it didn't have a value.
26 NullableString16 old_value; 28 NullableString16 old_value;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 template <> 61 template <>
60 struct ParamTraits<WebKit::WebStorageArea::Result> { 62 struct ParamTraits<WebKit::WebStorageArea::Result> {
61 typedef WebKit::WebStorageArea::Result param_type; 63 typedef WebKit::WebStorageArea::Result param_type;
62 static void Write(Message* m, const param_type& p); 64 static void Write(Message* m, const param_type& p);
63 static bool Read(const Message* m, void** iter, param_type* p); 65 static bool Read(const Message* m, void** iter, param_type* p);
64 static void Log(const param_type& p, std::string* l); 66 static void Log(const param_type& p, std::string* l);
65 }; 67 };
66 68
67 } // namespace IPC 69 } // namespace IPC
68 70
71 #endif // CHROME_COMMON_DOM_STORAGE_MESSAGES_H_
72
69 // DOM Storage messages sent from the browser to the renderer. 73 // DOM Storage messages sent from the browser to the renderer.
70 74
71 // Storage events are broadcast to renderer processes. 75 // Storage events are broadcast to renderer processes.
72 IPC_MESSAGE_CONTROL1(DOMStorageMsg_Event, 76 IPC_MESSAGE_CONTROL1(DOMStorageMsg_Event,
73 DOMStorageMsg_Event_Params) 77 DOMStorageMsg_Event_Params)
74 78
75 79
76 // DOM Storage messages sent from the renderer to the browser. 80 // DOM Storage messages sent from the renderer to the browser.
77 81
78 82
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 string16 /* key */, 119 string16 /* key */,
116 GURL /* url */, 120 GURL /* url */,
117 NullableString16 /* old_value */) 121 NullableString16 /* old_value */)
118 122
119 // Clear the storage area. 123 // Clear the storage area.
120 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_Clear, 124 IPC_SYNC_MESSAGE_CONTROL2_1(DOMStorageHostMsg_Clear,
121 int64 /* storage_area_id */, 125 int64 /* storage_area_id */,
122 GURL /* url */, 126 GURL /* url */,
123 bool /* something_cleared */) 127 bool /* something_cleared */)
124 128
125 #endif // CHROME_COMMON_DOM_STORAGE_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698