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

Side by Side Diff: Source/modules/filesystem/DirectoryEntrySync.h

Issue 314333002: Enable Oilpan by default in modules/filesystem/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove consts from conversion ctor + copy assignment op Created 6 years, 6 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 15 matching lines...) Expand all
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 DirectoryEntrySync_h 31 #ifndef DirectoryEntrySync_h
32 #define DirectoryEntrySync_h 32 #define DirectoryEntrySync_h
33 33
34 #include "modules/filesystem/EntrySync.h" 34 #include "modules/filesystem/EntrySync.h"
35 #include "modules/filesystem/FileSystemFlags.h" 35 #include "modules/filesystem/FileSystemFlags.h"
36 #include "wtf/RefCounted.h"
37 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
38 37
39 namespace WebCore { 38 namespace WebCore {
40 39
41 class DirectoryReaderSync; 40 class DirectoryReaderSync;
42 class ExceptionState; 41 class ExceptionState;
43 class FileEntrySync; 42 class FileEntrySync;
44 43
45 class DirectoryEntrySync FINAL : public EntrySync { 44 class DirectoryEntrySync FINAL : public EntrySync {
46 public: 45 public:
47 static PassRefPtrWillBeRawPtr<DirectoryEntrySync> create(PassRefPtrWillBeRaw Ptr<DOMFileSystemBase> fileSystem, const String& fullPath) 46 static DirectoryEntrySync* create(DOMFileSystemBase* fileSystem, const Strin g& fullPath)
48 { 47 {
49 return adoptRefWillBeNoop(new DirectoryEntrySync(fileSystem, fullPath)); 48 return new DirectoryEntrySync(fileSystem, fullPath);
50 } 49 }
51 virtual bool isDirectory() const OVERRIDE { return true; } 50 virtual bool isDirectory() const OVERRIDE { return true; }
52 51
53 PassRefPtrWillBeRawPtr<DirectoryReaderSync> createReader(); 52 DirectoryReaderSync* createReader();
54 PassRefPtrWillBeRawPtr<FileEntrySync> getFile(const String& path, const Dict ionary&, ExceptionState&); 53 FileEntrySync* getFile(const String& path, const Dictionary&, ExceptionState &);
55 PassRefPtrWillBeRawPtr<DirectoryEntrySync> getDirectory(const String& path, const Dictionary&, ExceptionState&); 54 DirectoryEntrySync* getDirectory(const String& path, const Dictionary&, Exce ptionState&);
56 void removeRecursively(ExceptionState&); 55 void removeRecursively(ExceptionState&);
57 56
58 virtual void trace(Visitor*) OVERRIDE; 57 virtual void trace(Visitor*) OVERRIDE;
59 58
60 private: 59 private:
61 DirectoryEntrySync(PassRefPtrWillBeRawPtr<DOMFileSystemBase>, const String& fullPath); 60 DirectoryEntrySync(DOMFileSystemBase*, const String& fullPath);
62 }; 61 };
63 62
64 DEFINE_TYPE_CASTS(DirectoryEntrySync, EntrySync, entry, entry->isDirectory(), en try.isDirectory()); 63 DEFINE_TYPE_CASTS(DirectoryEntrySync, EntrySync, entry, entry->isDirectory(), en try.isDirectory());
65 64
66 } 65 }
67 66
68 #endif // DirectoryEntrySync_h 67 #endif // DirectoryEntrySync_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DirectoryEntry.cpp ('k') | Source/modules/filesystem/DirectoryEntrySync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698