| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class EncodedFormData; | 46 class EncodedFormData; |
| 47 class WebHTTPBodyPrivate; | 47 class WebHTTPBodyPrivate; |
| 48 | 48 |
| 49 class WebHTTPBody { | 49 class WebHTTPBody { |
| 50 public: | 50 public: |
| 51 struct Element { | 51 struct Element { |
| 52 enum Type { TypeData, TypeFile, TypeBlob, TypeFileSystemURL } type; | 52 enum Type { TypeData, |
| 53 TypeFile, |
| 54 TypeBlob, |
| 55 TypeFileSystemURL, |
| 56 Last = TypeFileSystemURL } type; |
| 53 WebData data; | 57 WebData data; |
| 54 WebString filePath; | 58 WebString filePath; |
| 55 long long fileStart; | 59 long long fileStart; |
| 56 long long fileLength; // -1 means to the end of the file. | 60 long long fileLength; // -1 means to the end of the file. |
| 57 double modificationTime; | 61 double modificationTime; |
| 58 WebURL fileSystemURL; | 62 WebURL fileSystemURL; |
| 59 WebString blobUUID; | 63 WebString blobUUID; |
| 60 }; | 64 }; |
| 61 | 65 |
| 62 ~WebHTTPBody() { reset(); } | 66 ~WebHTTPBody() { reset(); } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 private: | 113 private: |
| 110 BLINK_PLATFORM_EXPORT void assign(WebHTTPBodyPrivate*); | 114 BLINK_PLATFORM_EXPORT void assign(WebHTTPBodyPrivate*); |
| 111 BLINK_PLATFORM_EXPORT void ensureMutable(); | 115 BLINK_PLATFORM_EXPORT void ensureMutable(); |
| 112 | 116 |
| 113 WebHTTPBodyPrivate* m_private; | 117 WebHTTPBodyPrivate* m_private; |
| 114 }; | 118 }; |
| 115 | 119 |
| 116 } // namespace blink | 120 } // namespace blink |
| 117 | 121 |
| 118 #endif | 122 #endif |
| OLD | NEW |