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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 private: 82 private:
83 PersistentWillBeMember<DirectoryReader> m_reader; 83 PersistentWillBeMember<DirectoryReader> m_reader;
84 }; 84 };
85 85
86 DirectoryReader::DirectoryReader(DOMFileSystemBase* fileSystem, const String& fu llPath) 86 DirectoryReader::DirectoryReader(DOMFileSystemBase* fileSystem, const String& fu llPath)
87 : DirectoryReaderBase(fileSystem, fullPath) 87 : DirectoryReaderBase(fileSystem, fullPath)
88 , m_isReading(false) 88 , m_isReading(false)
89 { 89 {
90 ScriptWrappable::init(this);
91 } 90 }
92 91
93 DirectoryReader::~DirectoryReader() 92 DirectoryReader::~DirectoryReader()
94 { 93 {
95 } 94 }
96 95
97 void DirectoryReader::readEntries(PassOwnPtrWillBeRawPtr<EntriesCallback> entrie sCallback, PassOwnPtrWillBeRawPtr<ErrorCallback> errorCallback) 96 void DirectoryReader::readEntries(PassOwnPtrWillBeRawPtr<EntriesCallback> entrie sCallback, PassOwnPtrWillBeRawPtr<ErrorCallback> errorCallback)
98 { 97 {
99 if (!m_isReading) { 98 if (!m_isReading) {
100 m_isReading = true; 99 m_isReading = true;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void DirectoryReader::trace(Visitor* visitor) 146 void DirectoryReader::trace(Visitor* visitor)
148 { 147 {
149 visitor->trace(m_entries); 148 visitor->trace(m_entries);
150 visitor->trace(m_error); 149 visitor->trace(m_error);
151 visitor->trace(m_entriesCallback); 150 visitor->trace(m_entriesCallback);
152 visitor->trace(m_errorCallback); 151 visitor->trace(m_errorCallback);
153 DirectoryReaderBase::trace(visitor); 152 DirectoryReaderBase::trace(visitor);
154 } 153 }
155 154
156 } 155 }
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DirectoryEntrySync.cpp ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698