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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 LocalFileSystem(WorkerClients&, std::unique_ptr<FileSystemClient>); | 60 LocalFileSystem(WorkerClients&, std::unique_ptr<FileSystemClient>); |
61 ~LocalFileSystem(); | 61 ~LocalFileSystem(); |
62 | 62 |
63 void resolveURL(ExecutionContext*, | 63 void resolveURL(ExecutionContext*, |
64 const KURL&, | 64 const KURL&, |
65 std::unique_ptr<AsyncFileSystemCallbacks>); | 65 std::unique_ptr<AsyncFileSystemCallbacks>); |
66 void requestFileSystem(ExecutionContext*, | 66 void requestFileSystem(ExecutionContext*, |
67 FileSystemType, | 67 FileSystemType, |
68 long long size, | 68 long long size, |
69 std::unique_ptr<AsyncFileSystemCallbacks>); | 69 std::unique_ptr<AsyncFileSystemCallbacks>); |
70 void deleteFileSystem(ExecutionContext*, | |
71 FileSystemType, | |
72 std::unique_ptr<AsyncFileSystemCallbacks>); | |
73 | 70 |
74 FileSystemClient* client() const { return m_client.get(); } | 71 FileSystemClient* client() const { return m_client.get(); } |
75 | 72 |
76 static const char* supplementName(); | 73 static const char* supplementName(); |
77 static LocalFileSystem* from(ExecutionContext&); | 74 static LocalFileSystem* from(ExecutionContext&); |
78 | 75 |
79 DECLARE_VIRTUAL_TRACE(); | 76 DECLARE_VIRTUAL_TRACE(); |
80 | 77 |
81 private: | 78 private: |
82 WebFileSystem* getFileSystem() const; | 79 WebFileSystem* getFileSystem() const; |
83 void fileSystemNotAvailable(ExecutionContext*, CallbackWrapper*); | 80 void fileSystemNotAvailable(ExecutionContext*, CallbackWrapper*); |
84 | 81 |
85 void requestFileSystemAccessInternal(ExecutionContext*, | 82 void requestFileSystemAccessInternal(ExecutionContext*, |
86 std::unique_ptr<WTF::Closure> allowed, | 83 std::unique_ptr<WTF::Closure> allowed, |
87 std::unique_ptr<WTF::Closure> denied); | 84 std::unique_ptr<WTF::Closure> denied); |
88 void fileSystemNotAllowedInternal(ExecutionContext*, CallbackWrapper*); | 85 void fileSystemNotAllowedInternal(ExecutionContext*, CallbackWrapper*); |
89 void fileSystemAllowedInternal(ExecutionContext*, | 86 void fileSystemAllowedInternal(ExecutionContext*, |
90 FileSystemType, | 87 FileSystemType, |
91 CallbackWrapper*); | 88 CallbackWrapper*); |
92 void resolveURLInternal(ExecutionContext*, const KURL&, CallbackWrapper*); | 89 void resolveURLInternal(ExecutionContext*, const KURL&, CallbackWrapper*); |
93 void deleteFileSystemInternal(ExecutionContext*, | |
94 FileSystemType, | |
95 CallbackWrapper*); | |
96 | 90 |
97 std::unique_ptr<FileSystemClient> m_client; | 91 std::unique_ptr<FileSystemClient> m_client; |
98 }; | 92 }; |
99 | 93 |
100 } // namespace blink | 94 } // namespace blink |
101 | 95 |
102 #endif // LocalFileSystem_h | 96 #endif // LocalFileSystem_h |
OLD | NEW |