OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "platform/weborigin/KURL.h" | 24 #include "platform/weborigin/KURL.h" |
25 #include "wtf/Forward.h" | 25 #include "wtf/Forward.h" |
26 #include "wtf/RefCounted.h" | 26 #include "wtf/RefCounted.h" |
27 #include "wtf/Vector.h" | 27 #include "wtf/Vector.h" |
28 #include "wtf/text/WTFString.h" | 28 #include "wtf/text/WTFString.h" |
29 | 29 |
30 namespace WTF{ | 30 namespace WTF{ |
31 class TextEncoding; | 31 class TextEncoding; |
32 } | 32 } |
33 | 33 |
34 namespace WebCore { | 34 namespace blink { |
35 | 35 |
36 class BlobDataHandle; | 36 class BlobDataHandle; |
37 | 37 |
38 class PLATFORM_EXPORT FormDataElement { | 38 class PLATFORM_EXPORT FormDataElement { |
39 public: | 39 public: |
40 FormDataElement() : m_type(data) { } | 40 FormDataElement() : m_type(data) { } |
41 explicit FormDataElement(const Vector<char>& array) : m_type(data), m_data(a
rray) { } | 41 explicit FormDataElement(const Vector<char>& array) : m_type(data), m_data(a
rray) { } |
42 | 42 |
43 FormDataElement(const String& filename, long long fileStart, long long fileL
ength, double expectedFileModificationTime) : m_type(encodedFile), m_filename(fi
lename), m_fileStart(fileStart), m_fileLength(fileLength), m_expectedFileModific
ationTime(expectedFileModificationTime) { } | 43 FormDataElement(const String& filename, long long fileStart, long long fileL
ength, double expectedFileModificationTime) : m_type(encodedFile), m_filename(fi
lename), m_fileStart(fileStart), m_fileLength(fileLength), m_expectedFileModific
ationTime(expectedFileModificationTime) { } |
44 explicit FormDataElement(const String& blobUUID, PassRefPtr<BlobDataHandle>
optionalHandle) : m_type(encodedBlob), m_blobUUID(blobUUID), m_optionalBlobDataH
andle(optionalHandle) { } | 44 explicit FormDataElement(const String& blobUUID, PassRefPtr<BlobDataHandle>
optionalHandle) : m_type(encodedBlob), m_blobUUID(blobUUID), m_optionalBlobDataH
andle(optionalHandle) { } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 inline bool operator==(const FormData& a, const FormData& b) | 154 inline bool operator==(const FormData& a, const FormData& b) |
155 { | 155 { |
156 return a.elements() == b.elements(); | 156 return a.elements() == b.elements(); |
157 } | 157 } |
158 | 158 |
159 inline bool operator!=(const FormData& a, const FormData& b) | 159 inline bool operator!=(const FormData& a, const FormData& b) |
160 { | 160 { |
161 return !(a == b); | 161 return !(a == b); |
162 } | 162 } |
163 | 163 |
164 } // namespace WebCore | 164 } // namespace blink |
165 | 165 |
166 #endif | 166 #endif |
OLD | NEW |