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 23 matching lines...) Expand all Loading... |
34 #include "core/clipboard/DataObject.h" | 34 #include "core/clipboard/DataObject.h" |
35 #include "core/clipboard/DraggedIsolatedFileSystem.h" | 35 #include "core/clipboard/DraggedIsolatedFileSystem.h" |
36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class DOMFileSystem; | 42 class DOMFileSystem; |
43 | 43 |
44 class DraggedIsolatedFileSystemImpl final : public NoBaseWillBeGarbageCollectedF
inalized<DraggedIsolatedFileSystemImpl>, public DraggedIsolatedFileSystem, publi
c WillBeHeapSupplement<DataObject> { | 44 class DraggedIsolatedFileSystemImpl final : public GarbageCollectedFinalized<Dra
ggedIsolatedFileSystemImpl>, public DraggedIsolatedFileSystem, public HeapSupple
ment<DataObject> { |
45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystemImpl); | 45 USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystemImpl); |
46 public: | 46 public: |
47 virtual ~DraggedIsolatedFileSystemImpl(); | 47 static DraggedIsolatedFileSystemImpl* create(DataObject& host, const String&
filesystemId) |
48 | |
49 static PassOwnPtrWillBeRawPtr<DraggedIsolatedFileSystemImpl> create(DataObje
ct& host, const String& filesystemId) | |
50 { | 48 { |
51 return adoptPtrWillBeNoop(new DraggedIsolatedFileSystemImpl(host, filesy
stemId)); | 49 return new DraggedIsolatedFileSystemImpl(host, filesystemId); |
52 } | 50 } |
53 | 51 |
54 static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*); | 52 static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*); |
55 | 53 |
56 static const char* supplementName(); | 54 static const char* supplementName(); |
57 static DraggedIsolatedFileSystemImpl* from(DataObject*); | 55 static DraggedIsolatedFileSystemImpl* from(DataObject*); |
58 | 56 |
59 DECLARE_TRACE(); | 57 DECLARE_TRACE(); |
60 | 58 |
61 static void prepareForDataObject(DataObject*, const String& filesystemId); | 59 static void prepareForDataObject(DataObject*, const String& filesystemId); |
62 | 60 |
63 private: | 61 private: |
64 DraggedIsolatedFileSystemImpl(DataObject& host, const String& filesystemId); | 62 DraggedIsolatedFileSystemImpl(DataObject& host, const String& filesystemId); |
65 PersistentWillBeMember<DOMFileSystem> m_filesystem; | 63 |
| 64 Member<DOMFileSystem> m_filesystem; |
66 }; | 65 }; |
67 | 66 |
68 } // namespace blink | 67 } // namespace blink |
69 | 68 |
70 #endif // DraggedIsolatedFileSystemImpl_h | 69 #endif // DraggedIsolatedFileSystemImpl_h |
OLD | NEW |