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

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

Issue 22673003: Replace EntryArraySync type by an EntrySync[] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use traits classes to simplify the code Created 7 years, 4 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 | Annotate | Revision Log
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 "modules/filesystem/DirectoryReaderBase.h" 35 #include "modules/filesystem/DirectoryReaderBase.h"
36 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 #include "wtf/Vector.h"
38 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
39 40
40 namespace WebCore { 41 namespace WebCore {
41 42
42 class EntryArraySync; 43 class EntrySync;
43 class ExceptionState; 44 class ExceptionState;
44 45
46 typedef Vector<RefPtr<EntrySync> > EntrySyncVector;
47
45 class DirectoryReaderSync : public DirectoryReaderBase, public ScriptWrappable { 48 class DirectoryReaderSync : public DirectoryReaderBase, public ScriptWrappable {
46 public: 49 public:
47 static PassRefPtr<DirectoryReaderSync> create(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath) 50 static PassRefPtr<DirectoryReaderSync> create(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
48 { 51 {
49 return adoptRef(new DirectoryReaderSync(fileSystem, fullPath)); 52 return adoptRef(new DirectoryReaderSync(fileSystem, fullPath));
50 } 53 }
51 54
52 PassRefPtr<EntryArraySync> readEntries(ExceptionState&); 55 EntrySyncVector readEntries(ExceptionState&);
53 56
54 private: 57 private:
55 DirectoryReaderSync(PassRefPtr<DOMFileSystemBase>, const String& fullPath); 58 DirectoryReaderSync(PassRefPtr<DOMFileSystemBase>, const String& fullPath);
56 }; 59 };
57 60
58 } // namespace 61 } // namespace
59 62
60 #endif // DirectoryReaderSync_h 63 #endif // DirectoryReaderSync_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698