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

Side by Side Diff: Source/modules/filesystem/DirectoryReaderSync.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
« no previous file with comments | « Source/modules/filesystem/DirectoryReader.cpp ('k') | Source/modules/filesystem/Entry.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 private: 89 private:
90 PersistentWillBeMember<DirectoryReaderSync> m_reader; 90 PersistentWillBeMember<DirectoryReaderSync> m_reader;
91 }; 91 };
92 92
93 DirectoryReaderSync::DirectoryReaderSync(DOMFileSystemBase* fileSystem, const St ring& fullPath) 93 DirectoryReaderSync::DirectoryReaderSync(DOMFileSystemBase* fileSystem, const St ring& fullPath)
94 : DirectoryReaderBase(fileSystem, fullPath) 94 : DirectoryReaderBase(fileSystem, fullPath)
95 , m_callbacksId(0) 95 , m_callbacksId(0)
96 , m_errorCode(FileError::OK) 96 , m_errorCode(FileError::OK)
97 { 97 {
98 ScriptWrappable::init(this);
99 } 98 }
100 99
101 DirectoryReaderSync::~DirectoryReaderSync() 100 DirectoryReaderSync::~DirectoryReaderSync()
102 { 101 {
103 } 102 }
104 103
105 EntrySyncHeapVector DirectoryReaderSync::readEntries(ExceptionState& exceptionSt ate) 104 EntrySyncHeapVector DirectoryReaderSync::readEntries(ExceptionState& exceptionSt ate)
106 { 105 {
107 if (!m_callbacksId) { 106 if (!m_callbacksId) {
108 m_callbacksId = filesystem()->readDirectory(this, m_fullPath, adoptPtrWi llBeNoop(new EntriesCallbackHelper(this)), adoptPtrWillBeNoop(new ErrorCallbackH elper(this)), DOMFileSystemBase::Synchronous); 107 m_callbacksId = filesystem()->readDirectory(this, m_fullPath, adoptPtrWi llBeNoop(new EntriesCallbackHelper(this)), adoptPtrWillBeNoop(new ErrorCallbackH elper(this)), DOMFileSystemBase::Synchronous);
(...skipping 12 matching lines...) Expand all
121 return result; 120 return result;
122 } 121 }
123 122
124 void DirectoryReaderSync::trace(Visitor* visitor) 123 void DirectoryReaderSync::trace(Visitor* visitor)
125 { 124 {
126 visitor->trace(m_entries); 125 visitor->trace(m_entries);
127 DirectoryReaderBase::trace(visitor); 126 DirectoryReaderBase::trace(visitor);
128 } 127 }
129 128
130 } // namespace 129 } // namespace
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DirectoryReader.cpp ('k') | Source/modules/filesystem/Entry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698