| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); | 64 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); |
| 65 | 65 |
| 66 virtual WebKit::WebNotificationPresenter* notificationPresenter() { | 66 virtual WebKit::WebNotificationPresenter* notificationPresenter() { |
| 67 // TODO(johnnyg): Notifications are not yet hooked up to workers. | 67 // TODO(johnnyg): Notifications are not yet hooked up to workers. |
| 68 // Coming soon. | 68 // Coming soon. |
| 69 NOTREACHED(); | 69 NOTREACHED(); |
| 70 return NULL; | 70 return NULL; |
| 71 } | 71 } |
| 72 | 72 |
| 73 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( | 73 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( |
| 74 WebKit::WebApplicationCacheHostClient*) { | 74 WebKit::WebApplicationCacheHostClient* client); |
| 75 // TODO(michaeln): Create and initialize an appcache host for our worker. | |
| 76 return NULL; | |
| 77 } | |
| 78 | 75 |
| 79 void EnsureWorkerContextTerminates(); | 76 void EnsureWorkerContextTerminates(); |
| 80 | 77 |
| 81 private: | 78 private: |
| 82 bool Send(IPC::Message* message); | 79 bool Send(IPC::Message* message); |
| 83 | 80 |
| 84 int route_id_; | 81 int route_id_; |
| 82 int appcache_host_id_; |
| 85 WebWorkerStubBase* stub_; | 83 WebWorkerStubBase* stub_; |
| 86 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; | 84 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; |
| 87 | 85 |
| 88 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); | 86 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ | 89 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ |
| OLD | NEW |