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

Side by Side Diff: Source/modules/filesystem/DirectoryReaderSync.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 17 matching lines...) Expand all
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 DirectoryReaderSync_h 31 #ifndef DirectoryReaderSync_h
32 #define DirectoryReaderSync_h 32 #define DirectoryReaderSync_h
33 33
34 #include "bindings/v8/ScriptWrappable.h" 34 #include "bindings/v8/ScriptWrappable.h"
35 #include "core/fileapi/FileError.h" 35 #include "core/fileapi/FileError.h"
36 #include "modules/filesystem/DirectoryReaderBase.h" 36 #include "modules/filesystem/DirectoryReaderBase.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "wtf/RefCounted.h"
39 #include "wtf/Vector.h"
40 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
41 39
42 namespace WebCore { 40 namespace WebCore {
43 41
44 class EntrySync; 42 class EntrySync;
45 class ExceptionState; 43 class ExceptionState;
46 44
47 typedef WillBeHeapVector<RefPtrWillBeMember<EntrySync> > EntrySyncHeapVector; 45 typedef HeapVector<Member<EntrySync> > EntrySyncHeapVector;
48 46
49 class DirectoryReaderSync : public DirectoryReaderBase, public ScriptWrappable { 47 class DirectoryReaderSync : public DirectoryReaderBase, public ScriptWrappable {
50 public: 48 public:
51 static PassRefPtrWillBeRawPtr<DirectoryReaderSync> create(PassRefPtrWillBeRa wPtr<DOMFileSystemBase> fileSystem, const String& fullPath) 49 static DirectoryReaderSync* create(DOMFileSystemBase* fileSystem, const Stri ng& fullPath)
52 { 50 {
53 return adoptRefWillBeNoop(new DirectoryReaderSync(fileSystem, fullPath)) ; 51 return new DirectoryReaderSync(fileSystem, fullPath);
54 } 52 }
55 53
56 virtual ~DirectoryReaderSync(); 54 virtual ~DirectoryReaderSync();
57 55
58 EntrySyncHeapVector readEntries(ExceptionState&); 56 EntrySyncHeapVector readEntries(ExceptionState&);
59 57
60 void addEntries(const EntrySyncHeapVector& entries) 58 void addEntries(const EntrySyncHeapVector& entries)
61 { 59 {
62 m_entries.appendVector(entries); 60 m_entries.appendVector(entries);
63 } 61 }
64 62
65 void setError(FileError::ErrorCode code) 63 void setError(FileError::ErrorCode code)
66 { 64 {
67 m_errorCode = code; 65 m_errorCode = code;
68 } 66 }
69 67
70 virtual void trace(Visitor*) OVERRIDE; 68 virtual void trace(Visitor*) OVERRIDE;
71 69
72 private: 70 private:
73 class EntriesCallbackHelper; 71 class EntriesCallbackHelper;
74 class ErrorCallbackHelper; 72 class ErrorCallbackHelper;
75 73
76 DirectoryReaderSync(PassRefPtrWillBeRawPtr<DOMFileSystemBase>, const String& fullPath); 74 DirectoryReaderSync(DOMFileSystemBase*, const String& fullPath);
77 75
78 int m_callbacksId; 76 int m_callbacksId;
79 EntrySyncHeapVector m_entries; 77 EntrySyncHeapVector m_entries;
80 FileError::ErrorCode m_errorCode; 78 FileError::ErrorCode m_errorCode;
81 }; 79 };
82 80
83 } // namespace 81 } // namespace
84 82
85 #endif // DirectoryReaderSync_h 83 #endif // DirectoryReaderSync_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DirectoryReaderBase.h ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698