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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class CallbackWrapper; | 43 class CallbackWrapper; |
44 class FileSystemClient; | 44 class FileSystemClient; |
45 class ExecutionContext; | 45 class ExecutionContext; |
46 class KURL; | 46 class KURL; |
47 class LocalFrame; | 47 class LocalFrame; |
48 class WebFileSystem; | 48 class WebFileSystem; |
49 | 49 |
50 class LocalFileSystem final : public NoBaseWillBeGarbageCollectedFinalized<Local
FileSystem>, public WillBeHeapSupplement<LocalFrame>, public WillBeHeapSupplemen
t<WorkerClients> { | 50 class LocalFileSystem final : public NoBaseWillBeGarbageCollectedFinalized<Local
FileSystem>, public WillBeHeapSupplement<LocalFrame>, public WillBeHeapSupplemen
t<WorkerClients> { |
51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem); | 51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem); |
52 WTF_MAKE_NONCOPYABLE(LocalFileSystem); | 52 WTF_MAKE_NONCOPYABLE(LocalFileSystem); |
| 53 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(LocalFileSystem); |
53 public: | 54 public: |
54 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC
lient>); | 55 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC
lient>); |
55 virtual ~LocalFileSystem(); | 56 virtual ~LocalFileSystem(); |
56 | 57 |
57 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa
llbacks>); | 58 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa
llbacks>); |
58 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa
ssOwnPtr<AsyncFileSystemCallbacks>); | 59 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa
ssOwnPtr<AsyncFileSystemCallbacks>); |
59 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil
eSystemCallbacks>); | 60 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil
eSystemCallbacks>); |
60 | 61 |
61 FileSystemClient* client() { return m_client.get(); } | 62 FileSystemClient* client() { return m_client.get(); } |
62 | 63 |
(...skipping 16 matching lines...) Expand all Loading... |
79 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>,
CallbackWrapper*); | 80 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>,
CallbackWrapper*); |
80 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil
eSystemType, CallbackWrapper*); | 81 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil
eSystemType, CallbackWrapper*); |
81 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL
&, CallbackWrapper*); | 82 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL
&, CallbackWrapper*); |
82 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File
SystemType, CallbackWrapper*); | 83 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File
SystemType, CallbackWrapper*); |
83 OwnPtr<FileSystemClient> m_client; | 84 OwnPtr<FileSystemClient> m_client; |
84 }; | 85 }; |
85 | 86 |
86 } // namespace blink | 87 } // namespace blink |
87 | 88 |
88 #endif // LocalFileSystem_h | 89 #endif // LocalFileSystem_h |
OLD | NEW |