| 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" |
| 11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "ipc/ipc_channel.h" | 12 #include "ipc/ipc_channel.h" |
| 13 #include "webkit/api/public/WebWorkerClient.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebWorkerClient.h" |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 class WebWorker; | 16 class WebWorker; |
| 17 } | 17 } |
| 18 | 18 |
| 19 class WebWorkerStubBase; | 19 class WebWorkerStubBase; |
| 20 | 20 |
| 21 // This class receives IPCs from the renderer and calls the WebCore::Worker | 21 // This class receives IPCs from the renderer and calls the WebCore::Worker |
| 22 // implementation (after the data types have been converted by glue code). It | 22 // implementation (after the data types have been converted by glue code). It |
| 23 // is also called by the worker code and converts these function calls into | 23 // is also called by the worker code and converts these function calls into |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 bool Send(IPC::Message* message); | 63 bool Send(IPC::Message* message); |
| 64 | 64 |
| 65 int route_id_; | 65 int route_id_; |
| 66 WebWorkerStubBase* stub_; | 66 WebWorkerStubBase* stub_; |
| 67 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; | 67 ScopedRunnableMethodFactory<WebWorkerClientProxy> kill_process_factory_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); | 69 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ | 72 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ |
| OLD | NEW |