| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class DOMFileSystem; | 41 class DOMFileSystem; |
| 42 | 42 |
| 43 class DraggedIsolatedFileSystem FINAL : public NoBaseWillBeGarbageCollectedFinal
ized<DraggedIsolatedFileSystem>, public WillBeHeapSupplement<DataObject> { | 43 class DraggedIsolatedFileSystem FINAL : public NoBaseWillBeGarbageCollectedFinal
ized<DraggedIsolatedFileSystem>, public WillBeHeapSupplement<DataObject> { |
| 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystem); | 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystem); |
| 45 public: | 45 public: |
| 46 virtual ~DraggedIsolatedFileSystem(); | 46 virtual ~DraggedIsolatedFileSystem(); |
| 47 | 47 |
| 48 static PassOwnPtrWillBeRawPtr<DraggedIsolatedFileSystem> create(const String
& filesystemId) | 48 static PassOwnPtrWillBeRawPtr<DraggedIsolatedFileSystem> create(DataObject&
host, const String& filesystemId) |
| 49 { | 49 { |
| 50 return adoptPtrWillBeNoop(new DraggedIsolatedFileSystem(filesystemId)); | 50 return adoptPtrWillBeNoop(new DraggedIsolatedFileSystem(host, filesystem
Id)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 const String& filesystemId() const { return m_filesystemId; } | 53 static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*); |
| 54 DOMFileSystem* getDOMFileSystem(ExecutionContext*); | |
| 55 | 54 |
| 56 static const char* supplementName(); | 55 static const char* supplementName(); |
| 57 static DraggedIsolatedFileSystem* from(DataObject*); | 56 static DraggedIsolatedFileSystem* from(DataObject*); |
| 58 | 57 |
| 59 void trace(Visitor*); | 58 void trace(Visitor*); |
| 60 | 59 |
| 61 private: | 60 private: |
| 62 DraggedIsolatedFileSystem(const String& filesystemId); | 61 DraggedIsolatedFileSystem(DataObject& host, const String& filesystemId); |
| 63 RefPtrWillBeMember<DOMFileSystem> m_filesystem; | 62 RefPtrWillBeMember<DOMFileSystem> m_filesystem; |
| 64 String m_filesystemId; | |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 } // namespace WebCore | 65 } // namespace WebCore |
| 68 | 66 |
| 69 #endif // DraggedIsolatedFileSystem_h | 67 #endif // DraggedIsolatedFileSystem_h |
| OLD | NEW |