OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_COMMON_BLOB_BLOB_DATA_H_ | 5 #ifndef STORAGE_COMMON_BLOB_BLOB_DATA_H_ |
6 #define WEBKIT_COMMON_BLOB_BLOB_DATA_H_ | 6 #define STORAGE_COMMON_BLOB_BLOB_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "storage/common/blob/shareable_file_reference.h" |
| 16 #include "storage/common/data_element.h" |
| 17 #include "storage/common/storage_common_export.h" |
15 #include "url/gurl.h" | 18 #include "url/gurl.h" |
16 #include "webkit/common/blob/shareable_file_reference.h" | |
17 #include "webkit/common/data_element.h" | |
18 #include "webkit/common/storage_common_export.h" | |
19 | 19 |
20 namespace storage { | 20 namespace storage { |
21 | 21 |
22 class STORAGE_COMMON_EXPORT BlobData | 22 class STORAGE_COMMON_EXPORT BlobData |
23 : public base::RefCounted<BlobData> { | 23 : public base::RefCounted<BlobData> { |
24 public: | 24 public: |
25 typedef storage::DataElement Item; | 25 typedef storage::DataElement Item; |
26 | 26 |
27 // TODO(michaeln): remove the empty ctor when we fully transition to uuids. | 27 // TODO(michaeln): remove the empty ctor when we fully transition to uuids. |
28 BlobData(); | 28 BlobData(); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 return true; | 88 return true; |
89 } | 89 } |
90 | 90 |
91 inline bool operator!=(const BlobData& a, const BlobData& b) { | 91 inline bool operator!=(const BlobData& a, const BlobData& b) { |
92 return !(a == b); | 92 return !(a == b); |
93 } | 93 } |
94 #endif // defined(UNIT_TEST) | 94 #endif // defined(UNIT_TEST) |
95 | 95 |
96 } // namespace storage | 96 } // namespace storage |
97 | 97 |
98 #endif // WEBKIT_COMMON_BLOB_BLOB_DATA_H_ | 98 #endif // STORAGE_COMMON_BLOB_BLOB_DATA_H_ |
OLD | NEW |