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