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

Side by Side Diff: Source/modules/filesystem/DOMWindowFileSystem.cpp

Issue 23704004: Make WebFileSystemCallbacks not self-destruct, deprecate AsyncFileSystem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 met: 5 * modification, are permitted provided that the following conditions are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
23 * DAMAGE. 23 * DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "modules/filesystem/DOMWindowFileSystem.h" 27 #include "modules/filesystem/DOMWindowFileSystem.h"
28 28
29 #include "core/dom/Document.h" 29 #include "core/dom/Document.h"
30 #include "core/fileapi/FileError.h" 30 #include "core/fileapi/FileError.h"
31 #include "core/page/DOMWindow.h" 31 #include "core/page/DOMWindow.h"
32 #include "core/platform/AsyncFileSystem.h"
33 #include "modules/filesystem/DOMFileSystem.h" 32 #include "modules/filesystem/DOMFileSystem.h"
34 #include "modules/filesystem/EntryCallback.h" 33 #include "modules/filesystem/EntryCallback.h"
35 #include "modules/filesystem/ErrorCallback.h" 34 #include "modules/filesystem/ErrorCallback.h"
36 #include "modules/filesystem/FileSystemCallback.h" 35 #include "modules/filesystem/FileSystemCallback.h"
37 #include "modules/filesystem/FileSystemCallbacks.h" 36 #include "modules/filesystem/FileSystemCallbacks.h"
38 #include "modules/filesystem/FileSystemType.h" 37 #include "modules/filesystem/FileSystemType.h"
39 #include "modules/filesystem/LocalFileSystem.h" 38 #include "modules/filesystem/LocalFileSystem.h"
40 #include "weborigin/SecurityOrigin.h" 39 #include "weborigin/SecurityOrigin.h"
41 40
42 namespace WebCore { 41 namespace WebCore {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 return; 94 return;
96 } 95 }
97 96
98 LocalFileSystem::from(document)->readFileSystem(document, type, ResolveURICa llbacks::create(successCallback, errorCallback, document, type, filePath)); 97 LocalFileSystem::from(document)->readFileSystem(document, type, ResolveURICa llbacks::create(successCallback, errorCallback, document, type, filePath));
99 } 98 }
100 99
101 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<i nt>(FileSystemTypeTemporary), enum_mismatch); 100 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<i nt>(FileSystemTypeTemporary), enum_mismatch);
102 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast< int>(FileSystemTypePersistent), enum_mismatch); 101 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast< int>(FileSystemTypePersistent), enum_mismatch);
103 102
104 } // namespace WebCore 103 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DOMFileSystemSync.cpp ('k') | Source/modules/filesystem/DataTransferItemFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698