OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |