| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DATA_ELEMENT_H_ | 5 #ifndef STORAGE_COMMON_DATA_ELEMENT_H_ |
| 6 #define WEBKIT_COMMON_DATA_ELEMENT_H_ | 6 #define STORAGE_COMMON_DATA_ELEMENT_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/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "storage/common/storage_common_export.h" |
| 15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 16 #include "webkit/common/webkit_common_export.h" | |
| 17 | 17 |
| 18 namespace storage { | 18 namespace storage { |
| 19 | 19 |
| 20 // Represents a base Web data element. This could be either one of | 20 // Represents a base Web data element. This could be either one of |
| 21 // bytes, file or blob data. | 21 // bytes, file or blob data. |
| 22 class WEBKIT_COMMON_EXPORT DataElement { | 22 class STORAGE_COMMON_EXPORT DataElement { |
| 23 public: | 23 public: |
| 24 enum Type { | 24 enum Type { |
| 25 TYPE_UNKNOWN = -1, | 25 TYPE_UNKNOWN = -1, |
| 26 TYPE_BYTES, | 26 TYPE_BYTES, |
| 27 TYPE_FILE, | 27 TYPE_FILE, |
| 28 TYPE_BLOB, | 28 TYPE_BLOB, |
| 29 TYPE_FILE_FILESYSTEM, | 29 TYPE_FILE_FILESYSTEM, |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 DataElement(); | 32 DataElement(); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 return false; | 117 return false; |
| 118 } | 118 } |
| 119 | 119 |
| 120 inline bool operator!=(const DataElement& a, const DataElement& b) { | 120 inline bool operator!=(const DataElement& a, const DataElement& b) { |
| 121 return !(a == b); | 121 return !(a == b); |
| 122 } | 122 } |
| 123 #endif // defined(UNIT_TEST) | 123 #endif // defined(UNIT_TEST) |
| 124 | 124 |
| 125 } // namespace storage | 125 } // namespace storage |
| 126 | 126 |
| 127 #endif // WEBKIT_COMMON_DATA_ELEMENT_H_ | 127 #endif // STORAGE_COMMON_DATA_ELEMENT_H_ |
| OLD | NEW |