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

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

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 DirectoryReaderBase_h 31 #ifndef DirectoryReaderBase_h
32 #define DirectoryReaderBase_h 32 #define DirectoryReaderBase_h
33 33
34 #include "modules/filesystem/DOMFileSystemBase.h" 34 #include "modules/filesystem/DOMFileSystemBase.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace WebCore { 38 namespace blink {
39 39
40 class DirectoryReaderBase : public GarbageCollectedFinalized<DirectoryReaderBase > { 40 class DirectoryReaderBase : public GarbageCollectedFinalized<DirectoryReaderBase > {
41 public: 41 public:
42 DOMFileSystemBase* filesystem() const { return m_fileSystem.get(); } 42 DOMFileSystemBase* filesystem() const { return m_fileSystem.get(); }
43 void setHasMoreEntries(bool hasMoreEntries) { m_hasMoreEntries = hasMoreEntr ies; } 43 void setHasMoreEntries(bool hasMoreEntries) { m_hasMoreEntries = hasMoreEntr ies; }
44 44
45 virtual ~DirectoryReaderBase() { } 45 virtual ~DirectoryReaderBase() { }
46 46
47 virtual void trace(Visitor* visitor) 47 virtual void trace(Visitor* visitor)
48 { 48 {
49 visitor->trace(m_fileSystem); 49 visitor->trace(m_fileSystem);
50 } 50 }
51 51
52 protected: 52 protected:
53 DirectoryReaderBase(DOMFileSystemBase* fileSystem, const String& fullPath) 53 DirectoryReaderBase(DOMFileSystemBase* fileSystem, const String& fullPath)
54 : m_fileSystem(fileSystem) 54 : m_fileSystem(fileSystem)
55 , m_fullPath(fullPath) 55 , m_fullPath(fullPath)
56 , m_hasMoreEntries(true) 56 , m_hasMoreEntries(true)
57 { 57 {
58 } 58 }
59 59
60 Member<DOMFileSystemBase> m_fileSystem; 60 Member<DOMFileSystemBase> m_fileSystem;
61 61
62 // This is a virtual path. 62 // This is a virtual path.
63 String m_fullPath; 63 String m_fullPath;
64 64
65 bool m_hasMoreEntries; 65 bool m_hasMoreEntries;
66 }; 66 };
67 67
68 } // namespace WebCore 68 } // namespace blink
69 69
70 #endif // DirectoryReaderBase_h 70 #endif // DirectoryReaderBase_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DirectoryReader.cpp ('k') | Source/modules/filesystem/DirectoryReaderSync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698