Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1080)

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DraggedIsolatedFileSystemImpl.h

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 GarbageCollectedFinalized<Dra ggedIsolatedFileSystemImpl>, public DraggedIsolatedFileSystem, public HeapSupple ment<DataObject> { 44 class DraggedIsolatedFileSystemImpl final : public GarbageCollectedFinalized<Dra ggedIsolatedFileSystemImpl>, public DraggedIsolatedFileSystem, public Supplement <DataObject> {
45 USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystemImpl); 45 USING_GARBAGE_COLLECTED_MIXIN(DraggedIsolatedFileSystemImpl);
46 public: 46 public:
47 static DraggedIsolatedFileSystemImpl* create(DataObject& host, const String& filesystemId) 47 static DraggedIsolatedFileSystemImpl* create(DataObject& host, const String& filesystemId)
48 { 48 {
49 return new DraggedIsolatedFileSystemImpl(host, filesystemId); 49 return new DraggedIsolatedFileSystemImpl(host, filesystemId);
50 } 50 }
51 51
52 static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*); 52 static DOMFileSystem* getDOMFileSystem(DataObject* host, ExecutionContext*);
53 53
54 static const char* supplementName(); 54 static const char* supplementName();
55 static DraggedIsolatedFileSystemImpl* from(DataObject*); 55 static DraggedIsolatedFileSystemImpl* from(DataObject*);
56 56
57 DECLARE_TRACE(); 57 DECLARE_TRACE();
58 58
59 static void prepareForDataObject(DataObject*, const String& filesystemId); 59 static void prepareForDataObject(DataObject*, const String& filesystemId);
60 60
61 private: 61 private:
62 DraggedIsolatedFileSystemImpl(DataObject& host, const String& filesystemId); 62 DraggedIsolatedFileSystemImpl(DataObject& host, const String& filesystemId);
63 63
64 Member<DOMFileSystem> m_filesystem; 64 Member<DOMFileSystem> m_filesystem;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // DraggedIsolatedFileSystemImpl_h 69 #endif // DraggedIsolatedFileSystemImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698