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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp

Issue 2578193004: Remove ActiveScriptWrappableBase::m_scriptWrappable (Closed)
Patch Set: temp Created 4 years 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 return DOMFileSystem::create(context, filesystemName.toString(), 87 return DOMFileSystem::create(context, filesystemName.toString(),
88 FileSystemTypeIsolated, 88 FileSystemTypeIsolated,
89 KURL(ParsedURLString, rootURL.toString())); 89 KURL(ParsedURLString, rootURL.toString()));
90 } 90 }
91 91
92 DOMFileSystem::DOMFileSystem(ExecutionContext* context, 92 DOMFileSystem::DOMFileSystem(ExecutionContext* context,
93 const String& name, 93 const String& name,
94 FileSystemType type, 94 FileSystemType type,
95 const KURL& rootURL) 95 const KURL& rootURL)
96 : DOMFileSystemBase(context, name, type, rootURL), 96 : DOMFileSystemBase(context, name, type, rootURL),
97 ActiveScriptWrappable<DOMFileSystem>(this),
98 SuspendableObject(context), 97 SuspendableObject(context),
99 m_numberOfPendingCallbacks(0), 98 m_numberOfPendingCallbacks(0),
100 m_rootEntry(DirectoryEntry::create(this, DOMFilePath::root)) {} 99 m_rootEntry(DirectoryEntry::create(this, DOMFilePath::root)) {}
101 100
102 DirectoryEntry* DOMFileSystem::root() const { 101 DirectoryEntry* DOMFileSystem::root() const {
103 return m_rootEntry.get(); 102 return m_rootEntry.get();
104 } 103 }
105 104
106 void DOMFileSystem::addPendingCallbacks() { 105 void DOMFileSystem::addPendingCallbacks() {
107 ++m_numberOfPendingCallbacks; 106 ++m_numberOfPendingCallbacks;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 successCallback, errorCallback, m_context)); 191 successCallback, errorCallback, m_context));
193 } 192 }
194 193
195 DEFINE_TRACE(DOMFileSystem) { 194 DEFINE_TRACE(DOMFileSystem) {
196 DOMFileSystemBase::trace(visitor); 195 DOMFileSystemBase::trace(visitor);
197 SuspendableObject::trace(visitor); 196 SuspendableObject::trace(visitor);
198 visitor->trace(m_rootEntry); 197 visitor->trace(m_rootEntry);
199 } 198 }
200 199
201 } // namespace blink 200 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Body.cpp ('k') | third_party/WebKit/Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698