| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/common/ipc_channel.h" | 9 #include "chrome/common/ipc_channel.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); | 43 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); |
| 44 | 44 |
| 45 // IPC::Channel::Listener implementation. | 45 // IPC::Channel::Listener implementation. |
| 46 virtual void OnMessageReceived(const IPC::Message& message); | 46 virtual void OnMessageReceived(const IPC::Message& message); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 ~WebWorkerClientProxy (); | 49 ~WebWorkerClientProxy (); |
| 50 | 50 |
| 51 bool Send(IPC::Message* message); | 51 bool Send(IPC::Message* message); |
| 52 | 52 |
| 53 void OnTerminateWorkerContext(); |
| 54 |
| 53 // The source url for this worker. | 55 // The source url for this worker. |
| 54 GURL url_; | 56 GURL url_; |
| 55 | 57 |
| 56 int route_id_; | 58 int route_id_; |
| 57 | 59 |
| 58 WebKit::WebWorker* impl_; | 60 WebKit::WebWorker* impl_; |
| 59 | 61 |
| 60 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); | 62 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ | 65 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ |
| OLD | NEW |