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

Side by Side Diff: content/browser/indexed_db/indexed_db_value.h

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fixes [builds, untested] Created 7 years, 3 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
(Empty)
1 // Use of this source code is governed by a BSD-style license that can be
2 // found in the LICENSE file.
3
4 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_VALUE_H_
5 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_VALUE_H_
6
7 #include <vector>
8 #include "content/browser/indexed_db/indexed_db_blob_info.h"
9
10 namespace content {
11
12 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
13 IndexedDBValue() {
14 }
15 IndexedDBValue(const std::string& input_bits,
16 const std::vector<IndexedDBBlobInfo>& input_blob_info)
17 : bits(input_bits),
18 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.
19 }
20
21 void swap(IndexedDBValue& value) {
22 bits.swap(value.bits);
23 blob_info.swap(value.blob_info);
24 }
25
26 bool empty() const { return bits.empty(); }
27 void clear() {
28 bits.clear();
29 blob_info.clear();
30 }
31
32 std::string bits;
33 std::vector<IndexedDBBlobInfo> blob_info;
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_VALUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698