| 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_BASE_DATA_ELEMENT_H_ | 5 #ifndef WEBKIT_BASE_DATA_ELEMENT_H_ |
| 6 #define WEBKIT_BASE_DATA_ELEMENT_H_ | 6 #define WEBKIT_BASE_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 "googleurl/src/gurl.h" | 15 #include "url/gurl.h" |
| 16 #include "webkit/base/webkit_base_export.h" | 16 #include "webkit/base/webkit_base_export.h" |
| 17 | 17 |
| 18 namespace webkit_base { | 18 namespace webkit_base { |
| 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_BASE_EXPORT DataElement { | 22 class WEBKIT_BASE_EXPORT DataElement { |
| 23 public: | 23 public: |
| 24 enum Type { | 24 enum Type { |
| 25 TYPE_UNKNOWN = -1, | 25 TYPE_UNKNOWN = -1, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 | 138 |
| 139 inline bool operator!=(const DataElement& a, const DataElement& b) { | 139 inline bool operator!=(const DataElement& a, const DataElement& b) { |
| 140 return !(a == b); | 140 return !(a == b); |
| 141 } | 141 } |
| 142 #endif // defined(UNIT_TEST) | 142 #endif // defined(UNIT_TEST) |
| 143 | 143 |
| 144 } // namespace webkit_base | 144 } // namespace webkit_base |
| 145 | 145 |
| 146 #endif // WEBKIT_BASE_DATA_ELEMENT_H_ | 146 #endif // WEBKIT_BASE_DATA_ELEMENT_H_ |
| OLD | NEW |