| Index: Source/web/WorkerPermissionClient.h
|
| diff --git a/Source/modules/filesystem/WorkerLocalFileSystem.h b/Source/web/WorkerPermissionClient.h
|
| similarity index 61%
|
| copy from Source/modules/filesystem/WorkerLocalFileSystem.h
|
| copy to Source/web/WorkerPermissionClient.h
|
| index 72242b5f06cc068bfd5e2f734e1a90338fe641f3..95f743d57f9cb1912800f46acc50cbee208756f2 100644
|
| --- a/Source/modules/filesystem/WorkerLocalFileSystem.h
|
| +++ b/Source/web/WorkerPermissionClient.h
|
| @@ -28,26 +28,46 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WorkerLocalFileSystem_h
|
| -#define WorkerLocalFileSystem_h
|
| +#ifndef WorkerPermissionClient_h
|
| +#define WorkerPermissionClient_h
|
|
|
| #include "core/workers/WorkerClients.h"
|
| -#include "modules/filesystem/LocalFileSystem.h"
|
| #include "wtf/Forward.h"
|
|
|
| namespace WebCore {
|
| +class ExecutionContext;
|
| +}
|
|
|
| -class WorkerLocalFileSystem : public LocalFileSystemBase, public Supplement<WorkerClients> {
|
| +namespace WebKit {
|
| +
|
| +class WebFrame;
|
| +class WebString;
|
| +class WebWorkerPermissionClientProxy;
|
| +
|
| +class WorkerPermissionClient : public WebCore::Supplement<WebCore::WorkerClients> {
|
| public:
|
| - static PassOwnPtr<WorkerLocalFileSystem> create(PassOwnPtr<FileSystemClient>);
|
| + static PassOwnPtr<WorkerPermissionClient> create(PassOwnPtr<WebWorkerPermissionClientProxy>);
|
| +
|
| + virtual ~WorkerPermissionClient();
|
| +
|
| + bool allowDatabase(const WebString& name, const WebString& displayName, unsigned long estimatedSize);
|
| + bool allowFileSystem();
|
| + bool allowIndexedDB(const WebString& name);
|
| +
|
| + // FIXME: Remove this after embedder implement this.
|
| + WebWorkerPermissionClientProxy* proxy() { return m_proxy.get(); }
|
| +
|
| static const char* supplementName();
|
| - static WorkerLocalFileSystem* from(ExecutionContext*);
|
| - virtual ~WorkerLocalFileSystem();
|
| + static WorkerPermissionClient* from(WebCore::ExecutionContext*);
|
|
|
| private:
|
| - explicit WorkerLocalFileSystem(PassOwnPtr<FileSystemClient>);
|
| + explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>);
|
| +
|
| + OwnPtr<WebWorkerPermissionClientProxy> m_proxy;
|
| };
|
|
|
| -} // namespace WebCore
|
| +void providePermissionClientToWorker(WebCore::WorkerClients*, PassOwnPtr<WebWorkerPermissionClientProxy>);
|
| +
|
| +} // namespace WebKit
|
|
|
| -#endif // WorkerLocalFileSystem_h
|
| +#endif // WorkerPermissionClient_h
|
|
|