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