| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 10 matching lines...) Expand all Loading... |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef DraggedIsolatedFileSystem_h | 31 #ifndef DraggedIsolatedFileSystemImpl_h |
| 32 #define DraggedIsolatedFileSystem_h | 32 #define DraggedIsolatedFileSystemImpl_h |
| 33 | 33 |
| 34 #include "core/clipboard/DataObject.h" | 34 #include "core/clipboard/DataObject.h" |
| 35 #include "core/clipboard/DraggedIsolatedFileSystem.h" |
| 35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 36 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 37 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 | 41 |
| 41 class DOMFileSystem; | 42 class DOMFileSystem; |
| 42 | 43 |
| 43 class DraggedIsolatedFileSystem final : public NoBaseWillBeGarbageCollectedFinal
ized<DraggedIsolatedFileSystem>, public WillBeHeapSupplement<DataObject> { | 44 class DraggedIsolatedFileSystemImpl final : public NoBaseWillBeGarbageCollectedF
inalized<DraggedIsolatedFileSystemImpl>, public DraggedIsolatedFileSystem, publi
c WillBeHeapSupplement<DataObject> { |
| 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystem); | 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystemImpl); |
| 45 public: | 46 public: |
| 46 virtual ~DraggedIsolatedFileSystem(); | 47 virtual ~DraggedIsolatedFileSystemImpl(); |
| 47 | 48 |
| 48 static PassOwnPtrWillBeRawPtr<DraggedIsolatedFileSystem> create(DataObject&
host, const String& filesystemId) | 49 static PassOwnPtrWillBeRawPtr<DraggedIsolatedFileSystemImpl> create(DataObje
ct& host, const String& filesystemId) |
| 49 { | 50 { |
| 50 return adoptPtrWillBeNoop(new DraggedIsolatedFileSystem(host, filesystem
Id)); | 51 return adoptPtrWillBeNoop(new DraggedIsolatedFileSystemImpl(host, filesy
stemId)); |
| 51 } | 52 } |
| 52 | 53 |
| 53 static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*); | 54 static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*); |
| 54 | 55 |
| 55 static const char* supplementName(); | 56 static const char* supplementName(); |
| 56 static DraggedIsolatedFileSystem* from(DataObject*); | 57 static DraggedIsolatedFileSystemImpl* from(DataObject*); |
| 57 | 58 |
| 58 void trace(Visitor*); | 59 void trace(Visitor*); |
| 59 | 60 |
| 61 static void prepareForDataObject(DataObject*, const String& filesystemId); |
| 62 |
| 60 private: | 63 private: |
| 61 DraggedIsolatedFileSystem(DataObject& host, const String& filesystemId); | 64 DraggedIsolatedFileSystemImpl(DataObject& host, const String& filesystemId); |
| 62 PersistentWillBeMember<DOMFileSystem> m_filesystem; | 65 PersistentWillBeMember<DOMFileSystem> m_filesystem; |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 } // namespace blink | 68 } // namespace blink |
| 66 | 69 |
| 67 #endif // DraggedIsolatedFileSystem_h | 70 #endif // DraggedIsolatedFileSystemImpl_h |
| OLD | NEW |