| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 void resolveURL(ExecutionContext*, const KURL&, std::unique_ptr<AsyncFileSys
temCallbacks>); | 59 void resolveURL(ExecutionContext*, const KURL&, std::unique_ptr<AsyncFileSys
temCallbacks>); |
| 60 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, st
d::unique_ptr<AsyncFileSystemCallbacks>); | 60 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, st
d::unique_ptr<AsyncFileSystemCallbacks>); |
| 61 void deleteFileSystem(ExecutionContext*, FileSystemType, std::unique_ptr<Asy
ncFileSystemCallbacks>); | 61 void deleteFileSystem(ExecutionContext*, FileSystemType, std::unique_ptr<Asy
ncFileSystemCallbacks>); |
| 62 | 62 |
| 63 FileSystemClient* client() const { return m_client.get(); } | 63 FileSystemClient* client() const { return m_client.get(); } |
| 64 | 64 |
| 65 static const char* supplementName(); | 65 static const char* supplementName(); |
| 66 static LocalFileSystem* from(ExecutionContext&); | 66 static LocalFileSystem* from(ExecutionContext&); |
| 67 | 67 |
| 68 DEFINE_INLINE_VIRTUAL_TRACE() | 68 DECLARE_VIRTUAL_TRACE(); |
| 69 { | |
| 70 Supplement<LocalFrame>::trace(visitor); | |
| 71 Supplement<WorkerClients>::trace(visitor); | |
| 72 } | |
| 73 | 69 |
| 74 private: | 70 private: |
| 75 explicit LocalFileSystem(std::unique_ptr<FileSystemClient>); | 71 explicit LocalFileSystem(std::unique_ptr<FileSystemClient>); |
| 76 | 72 |
| 77 WebFileSystem* getFileSystem() const; | 73 WebFileSystem* getFileSystem() const; |
| 78 void fileSystemNotAvailable(ExecutionContext*, CallbackWrapper*); | 74 void fileSystemNotAvailable(ExecutionContext*, CallbackWrapper*); |
| 79 | 75 |
| 80 void requestFileSystemAccessInternal(ExecutionContext*, std::unique_ptr<WTF:
:Closure> allowed, std::unique_ptr<WTF::Closure> denied); | 76 void requestFileSystemAccessInternal(ExecutionContext*, std::unique_ptr<WTF:
:Closure> allowed, std::unique_ptr<WTF::Closure> denied); |
| 81 void fileSystemNotAllowedInternal(ExecutionContext*, CallbackWrapper*); | 77 void fileSystemNotAllowedInternal(ExecutionContext*, CallbackWrapper*); |
| 82 void fileSystemAllowedInternal(ExecutionContext*, FileSystemType, CallbackWr
apper*); | 78 void fileSystemAllowedInternal(ExecutionContext*, FileSystemType, CallbackWr
apper*); |
| 83 void resolveURLInternal(ExecutionContext*, const KURL&, CallbackWrapper*); | 79 void resolveURLInternal(ExecutionContext*, const KURL&, CallbackWrapper*); |
| 84 void deleteFileSystemInternal(ExecutionContext*, FileSystemType, CallbackWra
pper*); | 80 void deleteFileSystemInternal(ExecutionContext*, FileSystemType, CallbackWra
pper*); |
| 85 | 81 |
| 86 std::unique_ptr<FileSystemClient> m_client; | 82 std::unique_ptr<FileSystemClient> m_client; |
| 87 }; | 83 }; |
| 88 | 84 |
| 89 } // namespace blink | 85 } // namespace blink |
| 90 | 86 |
| 91 #endif // LocalFileSystem_h | 87 #endif // LocalFileSystem_h |
| OLD | NEW |