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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa
llbacks>); | 57 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa
llbacks>); |
58 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa
ssOwnPtr<AsyncFileSystemCallbacks>); | 58 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa
ssOwnPtr<AsyncFileSystemCallbacks>); |
59 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil
eSystemCallbacks>); | 59 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil
eSystemCallbacks>); |
60 | 60 |
61 FileSystemClient* client() { return m_client.get(); } | 61 FileSystemClient* client() { return m_client.get(); } |
62 | 62 |
63 static const char* supplementName(); | 63 static const char* supplementName(); |
64 static LocalFileSystem* from(ExecutionContext&); | 64 static LocalFileSystem* from(ExecutionContext&); |
65 | 65 |
66 virtual void trace(Visitor* visitor) override | 66 DEFINE_INLINE_VIRTUAL_TRACE() |
67 { | 67 { |
68 WillBeHeapSupplement<LocalFrame>::trace(visitor); | 68 WillBeHeapSupplement<LocalFrame>::trace(visitor); |
69 WillBeHeapSupplement<WorkerClients>::trace(visitor); | 69 WillBeHeapSupplement<WorkerClients>::trace(visitor); |
70 } | 70 } |
71 | 71 |
72 protected: | 72 protected: |
73 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); | 73 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); |
74 | 74 |
75 private: | 75 private: |
76 WebFileSystem* fileSystem() const; | 76 WebFileSystem* fileSystem() const; |
77 void requestFileSystemAccessInternal(ExecutionContext*, PassOwnPtr<Closure>
allowed, PassOwnPtr<Closure> denied); | 77 void requestFileSystemAccessInternal(ExecutionContext*, PassOwnPtr<Closure>
allowed, PassOwnPtr<Closure> denied); |
78 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba
ckWrapper*); | 78 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba
ckWrapper*); |
79 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>,
CallbackWrapper*); | 79 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>,
CallbackWrapper*); |
80 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil
eSystemType, CallbackWrapper*); | 80 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil
eSystemType, CallbackWrapper*); |
81 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL
&, CallbackWrapper*); | 81 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL
&, CallbackWrapper*); |
82 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File
SystemType, CallbackWrapper*); | 82 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File
SystemType, CallbackWrapper*); |
83 OwnPtr<FileSystemClient> m_client; | 83 OwnPtr<FileSystemClient> m_client; |
84 }; | 84 }; |
85 | 85 |
86 } // namespace blink | 86 } // namespace blink |
87 | 87 |
88 #endif // LocalFileSystem_h | 88 #endif // LocalFileSystem_h |
OLD | NEW |