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

Side by Side Diff: Source/modules/filesystem/DOMFileSystem.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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 rootURL.append('/'); 82 rootURL.append('/');
83 83
84 return DOMFileSystem::create(context, filesystemName.toString(), FileSystemT ypeIsolated, KURL(ParsedURLString, rootURL.toString())); 84 return DOMFileSystem::create(context, filesystemName.toString(), FileSystemT ypeIsolated, KURL(ParsedURLString, rootURL.toString()));
85 } 85 }
86 86
87 DOMFileSystem::DOMFileSystem(ExecutionContext* context, const String& name, File SystemType type, const KURL& rootURL) 87 DOMFileSystem::DOMFileSystem(ExecutionContext* context, const String& name, File SystemType type, const KURL& rootURL)
88 : DOMFileSystemBase(context, name, type, rootURL) 88 : DOMFileSystemBase(context, name, type, rootURL)
89 , ActiveDOMObject(context) 89 , ActiveDOMObject(context)
90 , m_numberOfPendingCallbacks(0) 90 , m_numberOfPendingCallbacks(0)
91 { 91 {
92 ScriptWrappable::init(this);
93 } 92 }
94 93
95 DirectoryEntry* DOMFileSystem::root() 94 DirectoryEntry* DOMFileSystem::root()
96 { 95 {
97 return DirectoryEntry::create(this, DOMFilePath::root); 96 return DirectoryEntry::create(this, DOMFilePath::root);
98 } 97 }
99 98
100 void DOMFileSystem::addPendingCallbacks() 99 void DOMFileSystem::addPendingCallbacks()
101 { 100 {
102 ++m_numberOfPendingCallbacks; 101 ++m_numberOfPendingCallbacks;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 KURL fileSystemURL = createFileSystemURL(fileEntry); 167 KURL fileSystemURL = createFileSystemURL(fileEntry);
169 if (!fileSystem()) { 168 if (!fileSystem()) {
170 reportError(errorCallback, FileError::create(FileError::ABORT_ERR)); 169 reportError(errorCallback, FileError::create(FileError::ABORT_ERR));
171 return; 170 return;
172 } 171 }
173 172
174 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa llback, m_context)); 173 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa llback, m_context));
175 } 174 }
176 175
177 } // namespace blink 176 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeys.cpp ('k') | Source/modules/filesystem/DOMFileSystemSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698