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

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

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class DirectoryReader : public DirectoryReaderBase, public ScriptWrappable { 45 class DirectoryReader : public DirectoryReaderBase, public ScriptWrappable {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 public: 47 public:
48 static DirectoryReader* create(DOMFileSystemBase* fileSystem, const String& fullPath) 48 static DirectoryReader* create(DOMFileSystemBase* fileSystem, const String& fullPath)
49 { 49 {
50 return new DirectoryReader(fileSystem, fullPath); 50 return new DirectoryReader(fileSystem, fullPath);
51 } 51 }
52 52
53 virtual ~DirectoryReader(); 53 virtual ~DirectoryReader();
54 54
55 void readEntries(PassOwnPtrWillBeRawPtr<EntriesCallback>, PassOwnPtrWillBeRa wPtr<ErrorCallback> = nullptr); 55 void readEntries(EntriesCallback*, ErrorCallback* = nullptr);
56 56
57 DOMFileSystem* filesystem() const { return static_cast<DOMFileSystem*>(m_fil eSystem.get()); } 57 DOMFileSystem* filesystem() const { return static_cast<DOMFileSystem*>(m_fil eSystem.get()); }
58 58
59 virtual void trace(Visitor*) OVERRIDE; 59 virtual void trace(Visitor*) OVERRIDE;
60 60
61 private: 61 private:
62 class EntriesCallbackHelper; 62 class EntriesCallbackHelper;
63 class ErrorCallbackHelper; 63 class ErrorCallbackHelper;
64 64
65 DirectoryReader(DOMFileSystemBase*, const String& fullPath); 65 DirectoryReader(DOMFileSystemBase*, const String& fullPath);
66 66
67 void addEntries(const EntryHeapVector& entries); 67 void addEntries(const EntryHeapVector& entries);
68 68
69 void onError(FileError*); 69 void onError(FileError*);
70 70
71 bool m_isReading; 71 bool m_isReading;
72 EntryHeapVector m_entries; 72 EntryHeapVector m_entries;
73 RefPtrWillBeMember<FileError> m_error; 73 RefPtrWillBeMember<FileError> m_error;
74 OwnPtrWillBeMember<EntriesCallback> m_entriesCallback; 74 Member<EntriesCallback> m_entriesCallback;
75 OwnPtrWillBeMember<ErrorCallback> m_errorCallback; 75 Member<ErrorCallback> m_errorCallback;
76 }; 76 };
77 77
78 } // namespace blink 78 } // namespace blink
79 79
80 #endif // DirectoryReader_h 80 #endif // DirectoryReader_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DirectoryEntry.cpp ('k') | Source/modules/filesystem/DirectoryReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698