OLD | NEW |
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_RENDER_MESSAGES_PARAMS_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "app/surface/transport_dib.h" | 12 #include "app/surface/transport_dib.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/file_util_proxy.h" | 14 #include "base/file_util_proxy.h" |
15 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
16 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
17 #include "base/time.h" | 17 #include "base/time.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/common/dom_storage_common.h" | |
20 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
21 #include "chrome/common/extensions/extension_extent.h" | 20 #include "chrome/common/extensions/extension_extent.h" |
22 #include "chrome/common/extensions/url_pattern.h" | 21 #include "chrome/common/extensions/url_pattern.h" |
23 #include "chrome/common/indexed_db_key.h" | 22 #include "chrome/common/indexed_db_key.h" |
24 #include "chrome/common/navigation_gesture.h" | 23 #include "chrome/common/navigation_gesture.h" |
25 #include "chrome/common/navigation_types.h" | 24 #include "chrome/common/navigation_types.h" |
26 #include "chrome/common/page_transition_types.h" | 25 #include "chrome/common/page_transition_types.h" |
27 #include "chrome/common/renderer_preferences.h" | 26 #include "chrome/common/renderer_preferences.h" |
28 #include "chrome/common/serialized_script_value.h" | 27 #include "chrome/common/serialized_script_value.h" |
29 #include "chrome/common/window_container_type.h" | 28 #include "chrome/common/window_container_type.h" |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 ~ViewHostMsg_ScriptedPrint_Params(); | 627 ~ViewHostMsg_ScriptedPrint_Params(); |
629 | 628 |
630 int routing_id; | 629 int routing_id; |
631 gfx::NativeViewId host_window_id; | 630 gfx::NativeViewId host_window_id; |
632 int cookie; | 631 int cookie; |
633 int expected_pages_count; | 632 int expected_pages_count; |
634 bool has_selection; | 633 bool has_selection; |
635 bool use_overlays; | 634 bool use_overlays; |
636 }; | 635 }; |
637 | 636 |
638 // Signals a storage event. | |
639 struct ViewMsg_DOMStorageEvent_Params { | |
640 ViewMsg_DOMStorageEvent_Params(); | |
641 ~ViewMsg_DOMStorageEvent_Params(); | |
642 | |
643 // The key that generated the storage event. Null if clear() was called. | |
644 NullableString16 key_; | |
645 | |
646 // The old value of this key. Null on clear() or if it didn't have a value. | |
647 NullableString16 old_value_; | |
648 | |
649 // The new value of this key. Null on removeItem() or clear(). | |
650 NullableString16 new_value_; | |
651 | |
652 // The origin this is associated with. | |
653 string16 origin_; | |
654 | |
655 // The URL of the page that caused the storage event. | |
656 GURL url_; | |
657 | |
658 // The storage type of this event. | |
659 DOMStorageType storage_type_; | |
660 }; | |
661 | |
662 // Used to open an indexed database. | 637 // Used to open an indexed database. |
663 struct ViewHostMsg_IDBFactoryOpen_Params { | 638 struct ViewHostMsg_IDBFactoryOpen_Params { |
664 ViewHostMsg_IDBFactoryOpen_Params(); | 639 ViewHostMsg_IDBFactoryOpen_Params(); |
665 ~ViewHostMsg_IDBFactoryOpen_Params(); | 640 ~ViewHostMsg_IDBFactoryOpen_Params(); |
666 | 641 |
667 // The routing ID of the view initiating the open. | 642 // The routing ID of the view initiating the open. |
668 int32 routing_id_; | 643 int32 routing_id_; |
669 | 644 |
670 // The response should have this id. | 645 // The response should have this id. |
671 int32 response_id_; | 646 int32 response_id_; |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 | 1159 |
1185 template <> | 1160 template <> |
1186 struct ParamTraits<ViewHostMsg_ScriptedPrint_Params> { | 1161 struct ParamTraits<ViewHostMsg_ScriptedPrint_Params> { |
1187 typedef ViewHostMsg_ScriptedPrint_Params param_type; | 1162 typedef ViewHostMsg_ScriptedPrint_Params param_type; |
1188 static void Write(Message* m, const param_type& p); | 1163 static void Write(Message* m, const param_type& p); |
1189 static bool Read(const Message* m, void** iter, param_type* p); | 1164 static bool Read(const Message* m, void** iter, param_type* p); |
1190 static void Log(const param_type& p, std::string* l); | 1165 static void Log(const param_type& p, std::string* l); |
1191 }; | 1166 }; |
1192 | 1167 |
1193 template <> | 1168 template <> |
1194 struct ParamTraits<ViewMsg_DOMStorageEvent_Params> { | |
1195 typedef ViewMsg_DOMStorageEvent_Params param_type; | |
1196 static void Write(Message* m, const param_type& p); | |
1197 static bool Read(const Message* m, void** iter, param_type* p); | |
1198 static void Log(const param_type& p, std::string* l); | |
1199 }; | |
1200 | |
1201 template <> | |
1202 struct ParamTraits<ViewHostMsg_IDBFactoryOpen_Params> { | 1169 struct ParamTraits<ViewHostMsg_IDBFactoryOpen_Params> { |
1203 typedef ViewHostMsg_IDBFactoryOpen_Params param_type; | 1170 typedef ViewHostMsg_IDBFactoryOpen_Params param_type; |
1204 static void Write(Message* m, const param_type& p); | 1171 static void Write(Message* m, const param_type& p); |
1205 static bool Read(const Message* m, void** iter, param_type* p); | 1172 static bool Read(const Message* m, void** iter, param_type* p); |
1206 static void Log(const param_type& p, std::string* l); | 1173 static void Log(const param_type& p, std::string* l); |
1207 }; | 1174 }; |
1208 | 1175 |
1209 template <> | 1176 template <> |
1210 struct ParamTraits<ViewHostMsg_IDBDatabaseCreateObjectStore_Params> { | 1177 struct ParamTraits<ViewHostMsg_IDBDatabaseCreateObjectStore_Params> { |
1211 typedef ViewHostMsg_IDBDatabaseCreateObjectStore_Params param_type; | 1178 typedef ViewHostMsg_IDBDatabaseCreateObjectStore_Params param_type; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1305 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
1339 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1306 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
1340 static void Write(Message* m, const param_type& p); | 1307 static void Write(Message* m, const param_type& p); |
1341 static bool Read(const Message* m, void** iter, param_type* p); | 1308 static bool Read(const Message* m, void** iter, param_type* p); |
1342 static void Log(const param_type& p, std::string* l); | 1309 static void Log(const param_type& p, std::string* l); |
1343 }; | 1310 }; |
1344 | 1311 |
1345 } // namespace IPC | 1312 } // namespace IPC |
1346 | 1313 |
1347 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1314 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
OLD | NEW |