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 14 matching lines...) Expand all Loading... |
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 DraggedIsolatedFileSystem_h |
32 #define DraggedIsolatedFileSystem_h | 32 #define DraggedIsolatedFileSystem_h |
33 | 33 |
34 #include "core/clipboard/DataObject.h" | 34 #include "core/clipboard/DataObject.h" |
| 35 #include "heap/Handle.h" |
35 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
36 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
37 | 38 |
38 namespace WebCore { | 39 namespace WebCore { |
39 | 40 |
40 class DOMFileSystem; | 41 class DOMFileSystem; |
41 | 42 |
42 class DraggedIsolatedFileSystem FINAL : public Supplement<DataObject> { | 43 class DraggedIsolatedFileSystem FINAL : public NoBaseWillBeGarbageCollectedFinal
ized<DraggedIsolatedFileSystem>, public WillBeHeapSupplement<DataObject> { |
| 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystem); |
43 public: | 45 public: |
44 virtual ~DraggedIsolatedFileSystem(); | 46 virtual ~DraggedIsolatedFileSystem(); |
45 | 47 |
46 static PassOwnPtr<DraggedIsolatedFileSystem> create(const String& filesystem
Id) | 48 static PassOwnPtrWillBeRawPtr<DraggedIsolatedFileSystem> create(const String
& filesystemId) |
47 { | 49 { |
48 return adoptPtr(new DraggedIsolatedFileSystem(filesystemId)); | 50 return adoptPtrWillBeNoop(new DraggedIsolatedFileSystem(filesystemId)); |
49 } | 51 } |
50 | 52 |
51 const String& filesystemId() const { return m_filesystemId; } | 53 const String& filesystemId() const { return m_filesystemId; } |
52 DOMFileSystem* getDOMFileSystem(ExecutionContext*); | 54 DOMFileSystem* getDOMFileSystem(ExecutionContext*); |
53 | 55 |
54 static const char* supplementName(); | 56 static const char* supplementName(); |
55 static DraggedIsolatedFileSystem* from(DataObject* dataObject) { return stat
ic_cast<DraggedIsolatedFileSystem*>(Supplement<DataObject>::from(dataObject, sup
plementName())); } | 57 static DraggedIsolatedFileSystem* from(DataObject*); |
| 58 |
| 59 void trace(Visitor*); |
56 | 60 |
57 private: | 61 private: |
58 DraggedIsolatedFileSystem(const String& filesystemId); | 62 DraggedIsolatedFileSystem(const String& filesystemId); |
59 RefPtr<DOMFileSystem> m_filesystem; | 63 RefPtrWillBeMember<DOMFileSystem> m_filesystem; |
60 String m_filesystemId; | 64 String m_filesystemId; |
61 }; | 65 }; |
62 | 66 |
63 } // namespace WebCore | 67 } // namespace WebCore |
64 | 68 |
65 #endif // DraggedIsolatedFileSystem_h | 69 #endif // DraggedIsolatedFileSystem_h |
OLD | NEW |