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 #ifndef LocalFileSystem_h | 31 #ifndef LocalFileSystem_h |
32 #define LocalFileSystem_h | 32 #define LocalFileSystem_h |
33 | 33 |
34 #include "core/workers/WorkerClients.h" | 34 #include "core/workers/WorkerClients.h" |
35 #include "platform/FileSystemType.h" | 35 #include "platform/FileSystemType.h" |
36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
37 #include "wtf/Functional.h" | 37 #include "wtf/Functional.h" |
38 #include "wtf/OwnPtr.h" | |
yhirano
2014/11/07 06:05:28
PassOwnPtr instead of OwnPtr?
hiroshige
2014/11/07 07:16:59
Done.
| |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 | 41 |
41 class AsyncFileSystemCallbacks; | 42 class AsyncFileSystemCallbacks; |
42 class CallbackWrapper; | 43 class CallbackWrapper; |
43 class FileSystemClient; | 44 class FileSystemClient; |
44 class ExecutionContext; | 45 class ExecutionContext; |
45 class KURL; | 46 class KURL; |
46 class LocalFrame; | 47 class LocalFrame; |
47 class WebFileSystem; | 48 class WebFileSystem; |
(...skipping 18 matching lines...) Expand all Loading... | |
66 { | 67 { |
67 WillBeHeapSupplement<LocalFrame>::trace(visitor); | 68 WillBeHeapSupplement<LocalFrame>::trace(visitor); |
68 WillBeHeapSupplement<WorkerClients>::trace(visitor); | 69 WillBeHeapSupplement<WorkerClients>::trace(visitor); |
69 } | 70 } |
70 | 71 |
71 protected: | 72 protected: |
72 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); | 73 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); |
73 | 74 |
74 private: | 75 private: |
75 WebFileSystem* fileSystem() const; | 76 WebFileSystem* fileSystem() const; |
76 void requestFileSystemAccessInternal(ExecutionContext*, const Closure& allow ed, const Closure& denied); | 77 void requestFileSystemAccessInternal(ExecutionContext*, PassOwnPtr<Closure> allowed, PassOwnPtr<Closure> denied); |
77 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba ckWrapper*); | 78 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba ckWrapper*); |
78 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*); | 79 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*); |
79 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*); | 80 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*); |
80 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*); | 81 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*); |
81 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*); | 82 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*); |
82 OwnPtr<FileSystemClient> m_client; | 83 OwnPtr<FileSystemClient> m_client; |
83 }; | 84 }; |
84 | 85 |
85 } // namespace blink | 86 } // namespace blink |
86 | 87 |
87 #endif // LocalFileSystem_h | 88 #endif // LocalFileSystem_h |
OLD | NEW |