| 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 17 matching lines...) Expand all  Loading... | 
|   28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |   28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
|   29  */ |   29  */ | 
|   30  |   30  | 
|   31 #include "config.h" |   31 #include "config.h" | 
|   32 #include "LocalFileSystem.h" |   32 #include "LocalFileSystem.h" | 
|   33  |   33  | 
|   34 #if PLATFORM(CHROMIUM) |   34 #if PLATFORM(CHROMIUM) | 
|   35 #error "Chromium should not compile this file and instead define its own version
      of these factories." |   35 #error "Chromium should not compile this file and instead define its own version
      of these factories." | 
|   36 #endif |   36 #endif | 
|   37  |   37  | 
|   38 #if ENABLE(FILE_SYSTEM) |  | 
|   39  |  | 
|   40 #include "CrossThreadTask.h" |   38 #include "CrossThreadTask.h" | 
|   41 #include "DOMFileSystem.h" |   39 #include "DOMFileSystem.h" | 
|   42 #include "ErrorCallback.h" |   40 #include "ErrorCallback.h" | 
|   43 #include "ExceptionCode.h" |   41 #include "ExceptionCode.h" | 
|   44 #include "FileError.h" |   42 #include "FileError.h" | 
|   45 #include "FileSystemCallback.h" |   43 #include "FileSystemCallback.h" | 
|   46 #include "FileSystemCallbacks.h" |   44 #include "FileSystemCallbacks.h" | 
|   47 #include "ScriptExecutionContext.h" |   45 #include "ScriptExecutionContext.h" | 
|   48 #include "SecurityOrigin.h" |   46 #include "SecurityOrigin.h" | 
|   49 #include <wtf/MainThread.h> |   47 #include <wtf/MainThread.h> | 
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   99     context->postTask(createCallbackTask(&openFileSystem, fileSystemBasePath(), 
     context->securityOrigin()->databaseIdentifier(), type, true, callbacks)); |   97     context->postTask(createCallbackTask(&openFileSystem, fileSystemBasePath(), 
     context->securityOrigin()->databaseIdentifier(), type, true, callbacks)); | 
|  100 } |   98 } | 
|  101  |   99  | 
|  102 void LocalFileSystem::deleteFileSystem(ScriptExecutionContext* context, FileSyst
     emType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) |  100 void LocalFileSystem::deleteFileSystem(ScriptExecutionContext* context, FileSyst
     emType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) | 
|  103 { |  101 { | 
|  104     // AsyncFileSystem::deleteFileSystem calls callbacks synchronously, so the m
     ethod needs to be called asynchronously. |  102     // AsyncFileSystem::deleteFileSystem calls callbacks synchronously, so the m
     ethod needs to be called asynchronously. | 
|  105     context->postTask(createCallbackTask(&performDeleteFileSystem, fileSystemBas
     ePath(), context->securityOrigin()->databaseIdentifier(), type, callbacks)); |  103     context->postTask(createCallbackTask(&performDeleteFileSystem, fileSystemBas
     ePath(), context->securityOrigin()->databaseIdentifier(), type, callbacks)); | 
|  106 } |  104 } | 
|  107  |  105  | 
|  108 } // namespace |  106 } // namespace | 
|  109  |  | 
|  110 #endif // ENABLE(FILE_SYSTEM) |  | 
| OLD | NEW |