Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: chrome/worker/webworkerclient_proxy.h

Issue 3394003: Add Worker support for FileSystem API. (Closed)
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/worker/webworker_stub_base.h ('k') | chrome/worker/webworkerclient_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ 5 #ifndef CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_
6 #define CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ 6 #define CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "ipc/ipc_channel.h" 11 #include "ipc/ipc_channel.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebWorkerClient.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebWorkerClient.h"
13 14
14 namespace WebKit { 15 namespace WebKit {
15 class WebApplicationCacheHost; 16 class WebApplicationCacheHost;
16 class WebApplicationCacheHostClient; 17 class WebApplicationCacheHostClient;
17 class WebFrame; 18 class WebFrame;
18 class WebWorker; 19 class WebWorker;
19 } 20 }
20 21
21 class WebWorkerStubBase; 22 class WebWorkerStubBase;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 76
76 virtual bool allowDatabase(WebKit::WebFrame* frame, 77 virtual bool allowDatabase(WebKit::WebFrame* frame,
77 const WebKit::WebString& name, 78 const WebKit::WebString& name,
78 const WebKit::WebString& display_name, 79 const WebKit::WebString& display_name,
79 unsigned long estimated_size) { 80 unsigned long estimated_size) {
80 // TODO(jochen): Check content settings whether access to web databases is 81 // TODO(jochen): Check content settings whether access to web databases is
81 // allowed. 82 // allowed.
82 return true; 83 return true;
83 } 84 }
84 85
86 virtual void openFileSystem(WebKit::WebFileSystem::Type type,
87 long long size,
88 WebKit::WebFileSystemCallbacks* callbacks);
89
85 void EnsureWorkerContextTerminates(); 90 void EnsureWorkerContextTerminates();
86 91
87 private: 92 private:
88 bool Send(IPC::Message* message); 93 bool Send(IPC::Message* message);
89 94
90 int route_id_; 95 int route_id_;
91 int appcache_host_id_; 96 int appcache_host_id_;
92 WebWorkerStubBase* stub_; 97 WebWorkerStubBase* stub_;
93 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; 98 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_;
94 99
95 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); 100 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy);
96 }; 101 };
97 102
98 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ 103 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/worker/webworker_stub_base.h ('k') | chrome/worker/webworkerclient_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698