Index: content/browser/indexed_db/indexed_db_value.h |
diff --git a/content/browser/indexed_db/indexed_db_value.h b/content/browser/indexed_db/indexed_db_value.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cc490e9304b59d9f286390cda508ac6460f9d4e8 |
--- /dev/null |
+++ b/content/browser/indexed_db/indexed_db_value.h |
@@ -0,0 +1,38 @@ |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_VALUE_H_ |
+#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_VALUE_H_ |
+ |
+#include <vector> |
+#include "content/browser/indexed_db/indexed_db_blob_info.h" |
+ |
+namespace content { |
+ |
+struct IndexedDBValue { |
jsbell
2013/09/13 00:12:21
I was wondering if we wanted to introduce somethin
ericu
2013/11/20 23:05:39
Hmm...could be. Not sure if it'll be worth it yet
|
+ IndexedDBValue() { |
+ } |
+ IndexedDBValue(const std::string& input_bits, |
+ const std::vector<IndexedDBBlobInfo>& input_blob_info) |
+ : bits(input_bits), |
+ blob_info(input_blob_info) { |
jsbell
2013/09/13 00:12:21
DCHECK that empty bits -> empty blob_info ?
ericu
2013/11/20 23:05:39
Done.
|
+ } |
+ |
+ void swap(IndexedDBValue& value) { |
+ bits.swap(value.bits); |
+ blob_info.swap(value.blob_info); |
+ } |
+ |
+ bool empty() const { return bits.empty(); } |
+ void clear() { |
+ bits.clear(); |
+ blob_info.clear(); |
+ } |
+ |
+ std::string bits; |
+ std::vector<IndexedDBBlobInfo> blob_info; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_VALUE_H_ |