| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 bool parseBlobPropertyBag(v8::Local<v8::Value> propertyBag, const char* blob
ClassName, ExceptionState&, v8::Isolate*); | 69 bool parseBlobPropertyBag(v8::Local<v8::Value> propertyBag, const char* blob
ClassName, ExceptionState&, v8::Isolate*); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 String m_contentType; | 72 String m_contentType; |
| 73 bool m_normalizeLineEndingsToNative; | 73 bool m_normalizeLineEndingsToNative; |
| 74 | 74 |
| 75 // False if this contains the properties of a BlobPropertyBag. | 75 // False if this contains the properties of a BlobPropertyBag. |
| 76 bool m_hasFileProperties; | 76 bool m_hasFileProperties; |
| 77 | 77 |
| 78 double m_lastModified; | 78 double m_lastModified; |
| 79 #ifndef NDEBUG | 79 #if ENABLE(ASSERT) |
| 80 bool m_hasLastModified; | 80 bool m_hasLastModified; |
| 81 #endif // NDEBUG | 81 #endif // ENABLE(ASSERT) |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 // Appends the blobParts passed to a Blob or File constructor into a BlobData. | 84 // Appends the blobParts passed to a Blob or File constructor into a BlobData. |
| 85 // http://www.w3.org/TR/FileAPI/#constructorParams | 85 // http://www.w3.org/TR/FileAPI/#constructorParams |
| 86 // Returns true if everything went well, false if a JS exception was thrown. | 86 // Returns true if everything went well, false if a JS exception was thrown. |
| 87 bool processBlobParts(v8::Local<v8::Object> blobParts, bool normalizeLineEndings
ToNative, BlobData&, v8::Isolate*); | 87 bool processBlobParts(v8::Local<v8::Object> blobParts, bool normalizeLineEndings
ToNative, BlobData&, v8::Isolate*); |
| 88 | 88 |
| 89 } // namespace V8BlobCustomHelpers | 89 } // namespace V8BlobCustomHelpers |
| 90 | 90 |
| 91 } // namespace WebCore | 91 } // namespace WebCore |
| 92 | 92 |
| 93 #endif // V8BlobCustomHelpers_h | 93 #endif // V8BlobCustomHelpers_h |
| OLD | NEW |