| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Only true for File instances that are backed by platform files. | 86 // Only true for File instances that are backed by platform files. |
| 87 virtual bool hasBackingFile() const { return false; } | 87 virtual bool hasBackingFile() const { return false; } |
| 88 bool hasBeenClosed() const { return m_hasBeenClosed; } | 88 bool hasBeenClosed() const { return m_hasBeenClosed; } |
| 89 | 89 |
| 90 // Used by the JavaScript Blob and File constructors. | 90 // Used by the JavaScript Blob and File constructors. |
| 91 virtual void appendTo(BlobData&) const; | 91 virtual void appendTo(BlobData&) const; |
| 92 | 92 |
| 93 // URLRegistrable to support PublicURLs. | 93 // URLRegistrable to support PublicURLs. |
| 94 virtual URLRegistry& registry() const OVERRIDE FINAL; | 94 virtual URLRegistry& registry() const OVERRIDE FINAL; |
| 95 | 95 |
| 96 void trace(Visitor*) { } | 96 virtual void trace(Visitor*) { } |
| 97 | 97 |
| 98 protected: | 98 protected: |
| 99 explicit Blob(PassRefPtr<BlobDataHandle>); | 99 explicit Blob(PassRefPtr<BlobDataHandle>); |
| 100 | 100 |
| 101 static void clampSliceOffsets(long long size, long long& start, long long& e
nd); | 101 static void clampSliceOffsets(long long size, long long& start, long long& e
nd); |
| 102 private: | 102 private: |
| 103 Blob(); | 103 Blob(); |
| 104 | 104 |
| 105 RefPtr<BlobDataHandle> m_blobDataHandle; | 105 RefPtr<BlobDataHandle> m_blobDataHandle; |
| 106 bool m_hasBeenClosed; | 106 bool m_hasBeenClosed; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace blink | 109 } // namespace blink |
| 110 | 110 |
| 111 #endif // Blob_h | 111 #endif // Blob_h |
| OLD | NEW |