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

Unified Diff: content/common/indexed_db/indexed_db_param_traits.h

Issue 10533057: IPC plumbing for IndexedDB to snapshot metadata to the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't CamelCase "metadata" Created 8 years, 6 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
Index: content/common/indexed_db/indexed_db_param_traits.h
diff --git a/content/common/indexed_db/indexed_db_param_traits.h b/content/common/indexed_db/indexed_db_param_traits.h
index 0e151b25fd780ad3200b6d753d9b4d2714ad9b57..913070c07713fbb156a5ac3f9d52f29f4e303b8f 100644
--- a/content/common/indexed_db/indexed_db_param_traits.h
+++ b/content/common/indexed_db/indexed_db_param_traits.h
@@ -10,9 +10,12 @@
#include "ipc/ipc_param_traits.h"
namespace content {
+class IndexedDBDatabaseMetadata;
+class IndexedDBIndexMetadata;
class IndexedDBKey;
class IndexedDBKeyPath;
class IndexedDBKeyRange;
+class IndexedDBObjectStoreMetadata;
class SerializedScriptValue;
}
@@ -55,6 +58,30 @@ struct ParamTraits<content::IndexedDBKeyPath> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<content::IndexedDBDatabaseMetadata> {
+ typedef content::IndexedDBDatabaseMetadata param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
+struct ParamTraits<content::IndexedDBObjectStoreMetadata> {
+ typedef content::IndexedDBObjectStoreMetadata param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
+struct ParamTraits<content::IndexedDBIndexMetadata> {
+ typedef content::IndexedDBIndexMetadata param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_PARAM_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698