| OLD | NEW |
| 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" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 int level, | 57 int level, |
| 58 const WebKit::WebString& message, | 58 const WebKit::WebString& message, |
| 59 int line_number, | 59 int line_number, |
| 60 const WebKit::WebString& source_url); | 60 const WebKit::WebString& source_url); |
| 61 virtual void confirmMessageFromWorkerObject(bool has_pending_activity); | 61 virtual void confirmMessageFromWorkerObject(bool has_pending_activity); |
| 62 virtual void reportPendingActivity(bool has_pending_activity); | 62 virtual void reportPendingActivity(bool has_pending_activity); |
| 63 virtual void workerContextClosed(); | 63 virtual void workerContextClosed(); |
| 64 virtual void workerContextDestroyed(); | 64 virtual void workerContextDestroyed(); |
| 65 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); | 65 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); |
| 66 | 66 |
| 67 virtual WebKit::WebNotificationPresenter* notificationPresenter() { | 67 virtual WebKit::WebNotificationPresenter* notificationPresenter(); |
| 68 // TODO(johnnyg): Notifications are not yet hooked up to workers. | |
| 69 // Coming soon. | |
| 70 NOTREACHED(); | |
| 71 return NULL; | |
| 72 } | |
| 73 | 68 |
| 74 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( | 69 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( |
| 75 WebKit::WebApplicationCacheHostClient* client); | 70 WebKit::WebApplicationCacheHostClient* client); |
| 76 | 71 |
| 77 virtual bool allowDatabase(WebKit::WebFrame* frame, | 72 virtual bool allowDatabase(WebKit::WebFrame* frame, |
| 78 const WebKit::WebString& name, | 73 const WebKit::WebString& name, |
| 79 const WebKit::WebString& display_name, | 74 const WebKit::WebString& display_name, |
| 80 unsigned long estimated_size); | 75 unsigned long estimated_size); |
| 81 | 76 |
| 82 virtual void openFileSystem(WebKit::WebFileSystem::Type type, | 77 virtual void openFileSystem(WebKit::WebFileSystem::Type type, |
| 83 long long size, | 78 long long size, |
| 84 WebKit::WebFileSystemCallbacks* callbacks); | 79 WebKit::WebFileSystemCallbacks* callbacks); |
| 85 | 80 |
| 86 void EnsureWorkerContextTerminates(); | 81 void EnsureWorkerContextTerminates(); |
| 87 | 82 |
| 88 private: | 83 private: |
| 89 bool Send(IPC::Message* message); | 84 bool Send(IPC::Message* message); |
| 90 | 85 |
| 91 int route_id_; | 86 int route_id_; |
| 92 int appcache_host_id_; | 87 int appcache_host_id_; |
| 93 WebWorkerStubBase* stub_; | 88 WebWorkerStubBase* stub_; |
| 94 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; | 89 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; |
| 95 | 90 |
| 96 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); | 91 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); |
| 97 }; | 92 }; |
| 98 | 93 |
| 99 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ | 94 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ |
| OLD | NEW |