| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // WebWorkerClient implementation. | 27 // WebWorkerClient implementation. |
| 28 virtual void postMessageToWorkerObject(const WebKit::WebString& message); | 28 virtual void postMessageToWorkerObject(const WebKit::WebString& message); |
| 29 virtual void postExceptionToWorkerObject( | 29 virtual void postExceptionToWorkerObject( |
| 30 const WebKit::WebString& error_message, | 30 const WebKit::WebString& error_message, |
| 31 int line_number, | 31 int line_number, |
| 32 const WebKit::WebString& source_url); | 32 const WebKit::WebString& source_url); |
| 33 virtual void postConsoleMessageToWorkerObject( | 33 virtual void postConsoleMessageToWorkerObject( |
| 34 int destination, | 34 int destination, |
| 35 int source, | 35 int source, |
| 36 int type, |
| 36 int level, | 37 int level, |
| 37 const WebKit::WebString& message, | 38 const WebKit::WebString& message, |
| 38 int line_number, | 39 int line_number, |
| 39 const WebKit::WebString& source_url); | 40 const WebKit::WebString& source_url); |
| 40 virtual void confirmMessageFromWorkerObject(bool has_pending_activity); | 41 virtual void confirmMessageFromWorkerObject(bool has_pending_activity); |
| 41 virtual void reportPendingActivity(bool has_pending_activity); | 42 virtual void reportPendingActivity(bool has_pending_activity); |
| 42 virtual void workerContextDestroyed(); | 43 virtual void workerContextDestroyed(); |
| 43 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); | 44 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); |
| 44 | 45 |
| 45 // IPC::Channel::Listener implementation. | 46 // IPC::Channel::Listener implementation. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 56 GURL url_; | 57 GURL url_; |
| 57 | 58 |
| 58 int route_id_; | 59 int route_id_; |
| 59 | 60 |
| 60 WebKit::WebWorker* impl_; | 61 WebKit::WebWorker* impl_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); | 63 DISALLOW_COPY_AND_ASSIGN(WebWorkerClientProxy); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ | 66 #endif // CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ |
| OLD | NEW |