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

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

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) 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(this), 97 ActiveScriptWrappable<DOMFileSystem>(this),
98 SuspendableObject(context), 98 SuspendableObject(context),
99 m_numberOfPendingCallbacks(0), 99 m_numberOfPendingCallbacks(0),
100 m_rootEntry(DirectoryEntry::create(this, DOMFilePath::root)) {} 100 m_rootEntry(DirectoryEntry::create(this, DOMFilePath::root)) {}
101 101
102 DirectoryEntry* DOMFileSystem::root() const { 102 DirectoryEntry* DOMFileSystem::root() const {
103 return m_rootEntry.get(); 103 return m_rootEntry.get();
104 } 104 }
105 105
106 void DOMFileSystem::addPendingCallbacks() { 106 void DOMFileSystem::addPendingCallbacks() {
107 ++m_numberOfPendingCallbacks; 107 ++m_numberOfPendingCallbacks;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 successCallback, errorCallback, m_context)); 192 successCallback, errorCallback, m_context));
193 } 193 }
194 194
195 DEFINE_TRACE(DOMFileSystem) { 195 DEFINE_TRACE(DOMFileSystem) {
196 DOMFileSystemBase::trace(visitor); 196 DOMFileSystemBase::trace(visitor);
197 SuspendableObject::trace(visitor); 197 SuspendableObject::trace(visitor);
198 visitor->trace(m_rootEntry); 198 visitor->trace(m_rootEntry);
199 } 199 }
200 200
201 } // namespace blink 201 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698