OLD | NEW |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 return; | 88 return; |
89 } | 89 } |
90 | 90 |
91 FileSystemType type; | 91 FileSystemType type; |
92 String filePath; | 92 String filePath; |
93 if (!completedURL.isValid() || !DOMFileSystemBase::crackFileSystemURL(comple
tedURL, type, filePath)) { | 93 if (!completedURL.isValid() || !DOMFileSystemBase::crackFileSystemURL(comple
tedURL, type, filePath)) { |
94 DOMFileSystem::scheduleCallback(document, errorCallback, FileError::crea
te(FileError::ENCODING_ERR)); | 94 DOMFileSystem::scheduleCallback(document, errorCallback, FileError::crea
te(FileError::ENCODING_ERR)); |
95 return; | 95 return; |
96 } | 96 } |
97 | 97 |
98 LocalFileSystem::from(document)->readFileSystem(document, type, ResolveURICa
llbacks::create(successCallback, errorCallback, document, type, filePath)); | 98 LocalFileSystem::from(document)->readFileSystem(document, completedURL, Reso
lveURICallbacks::create(successCallback, errorCallback, document, type, filePath
)); |
99 } | 99 } |
100 | 100 |
101 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<i
nt>(FileSystemTypeTemporary), enum_mismatch); | 101 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); | 102 COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::PERSISTENT) == static_cast<
int>(FileSystemTypePersistent), enum_mismatch); |
103 | 103 |
104 } // namespace WebCore | 104 } // namespace WebCore |
OLD | NEW |