| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle;
} | 65 PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle;
} |
| 66 // True for all File instances, including the user-built ones. | 66 // True for all File instances, including the user-built ones. |
| 67 virtual bool isFile() const { return false; } | 67 virtual bool isFile() const { return false; } |
| 68 // Only true for File instances that are backed by platform files. | 68 // Only true for File instances that are backed by platform files. |
| 69 virtual bool hasBackingFile() const { return false; } | 69 virtual bool hasBackingFile() const { return false; } |
| 70 | 70 |
| 71 // Used by the JavaScript Blob and File constructors. | 71 // Used by the JavaScript Blob and File constructors. |
| 72 virtual void appendTo(BlobData&) const; | 72 virtual void appendTo(BlobData&) const; |
| 73 | 73 |
| 74 // URLRegistrable to support PublicURLs. | 74 // URLRegistrable to support PublicURLs. |
| 75 virtual URLRegistry& registry() const OVERRIDE; | 75 virtual URLRegistry& registry() const OVERRIDE FINAL; |
| 76 | 76 |
| 77 static void clampSliceOffsets(long long size, long long& start, long long& e
nd); | 77 static void clampSliceOffsets(long long size, long long& start, long long& e
nd); |
| 78 protected: | 78 protected: |
| 79 explicit Blob(PassRefPtr<BlobDataHandle>); | 79 explicit Blob(PassRefPtr<BlobDataHandle>); |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 Blob(); | 82 Blob(); |
| 83 RefPtr<BlobDataHandle> m_blobDataHandle; | 83 RefPtr<BlobDataHandle> m_blobDataHandle; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace WebCore | 86 } // namespace WebCore |
| 87 | 87 |
| 88 #endif // Blob_h | 88 #endif // Blob_h |
| OLD | NEW |