OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ | 5 #ifndef CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ |
6 #define CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ | 6 #define CONTENT_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" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual bool allowDatabase(WebKit::WebFrame* frame, | 72 virtual bool allowDatabase(WebKit::WebFrame* frame, |
73 const WebKit::WebString& name, | 73 const WebKit::WebString& name, |
74 const WebKit::WebString& display_name, | 74 const WebKit::WebString& display_name, |
75 unsigned long estimated_size); | 75 unsigned long estimated_size); |
76 | 76 |
77 virtual void openFileSystem(WebKit::WebFileSystem::Type type, | 77 virtual void openFileSystem(WebKit::WebFileSystem::Type type, |
78 long long size, | 78 long long size, |
79 bool create, | 79 bool create, |
80 WebKit::WebFileSystemCallbacks* callbacks); | 80 WebKit::WebFileSystemCallbacks* callbacks); |
81 | 81 |
82 // TODO(adamk): Remove this method once it's gone from WebKit. | |
83 virtual void openFileSystem(WebKit::WebFileSystem::Type type, | |
84 long long size, | |
85 WebKit::WebFileSystemCallbacks* callbacks); | |
86 | |
87 void EnsureWorkerContextTerminates(); | 82 void EnsureWorkerContextTerminates(); |
88 | 83 |
89 private: | 84 private: |
90 bool Send(IPC::Message* message); | 85 bool Send(IPC::Message* message); |
91 | 86 |
92 int route_id_; | 87 int route_id_; |
93 int appcache_host_id_; | 88 int appcache_host_id_; |
94 WebWorkerStubBase* stub_; | 89 WebWorkerStubBase* stub_; |
95 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; | 90 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; |
96 | 91 |
97 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); | 92 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); |
98 }; | 93 }; |
99 | 94 |
100 #endif // CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ | 95 #endif // CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ |
OLD | NEW |