| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 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 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 * | 24 * |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef WorkerGlobalScopeFileSystem_h | 27 #ifndef WorkerGlobalScopeFileSystem_h |
| 28 #define WorkerGlobalScopeFileSystem_h | 28 #define WorkerGlobalScopeFileSystem_h |
| 29 | 29 |
| 30 #include "modules/filesystem/DOMFileSystemSync.h" | 30 #include "modules/filesystem/DOMFileSystemSync.h" |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace blink { |
| 34 | 34 |
| 35 class EntryCallback; | 35 class EntryCallback; |
| 36 class EntrySync; | 36 class EntrySync; |
| 37 class ErrorCallback; | 37 class ErrorCallback; |
| 38 class ExceptionState; | 38 class ExceptionState; |
| 39 class FileSystemCallback; | 39 class FileSystemCallback; |
| 40 class WorkerGlobalScope; | 40 class WorkerGlobalScope; |
| 41 | 41 |
| 42 class WorkerGlobalScopeFileSystem { | 42 class WorkerGlobalScopeFileSystem { |
| 43 public: | 43 public: |
| 44 enum { | 44 enum { |
| 45 TEMPORARY, | 45 TEMPORARY, |
| 46 PERSISTENT, | 46 PERSISTENT, |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 static void webkitRequestFileSystem(WorkerGlobalScope&, int type, long long
size, PassOwnPtr<FileSystemCallback> successCallback, PassOwnPtr<ErrorCallback>)
; | 49 static void webkitRequestFileSystem(WorkerGlobalScope&, int type, long long
size, PassOwnPtr<FileSystemCallback> successCallback, PassOwnPtr<ErrorCallback>)
; |
| 50 static DOMFileSystemSync* webkitRequestFileSystemSync(WorkerGlobalScope&, in
t type, long long size, ExceptionState&); | 50 static DOMFileSystemSync* webkitRequestFileSystemSync(WorkerGlobalScope&, in
t type, long long size, ExceptionState&); |
| 51 static void webkitResolveLocalFileSystemURL(WorkerGlobalScope&, const String
& url, PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback>); | 51 static void webkitResolveLocalFileSystemURL(WorkerGlobalScope&, const String
& url, PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback>); |
| 52 static EntrySync* webkitResolveLocalFileSystemSyncURL(WorkerGlobalScope&, co
nst String& url, ExceptionState&); | 52 static EntrySync* webkitResolveLocalFileSystemSyncURL(WorkerGlobalScope&, co
nst String& url, ExceptionState&); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 WorkerGlobalScopeFileSystem(); | 55 WorkerGlobalScopeFileSystem(); |
| 56 ~WorkerGlobalScopeFileSystem(); | 56 ~WorkerGlobalScopeFileSystem(); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace WebCore | 59 } // namespace blink |
| 60 | 60 |
| 61 #endif // WorkerGlobalScopeFileSystem_h | 61 #endif // WorkerGlobalScopeFileSystem_h |
| OLD | NEW |