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 #include "content/renderer/webworker_proxy.h" | 5 #include "content/renderer/webworker_proxy.h" |
6 | 6 |
7 #include "content/common/child_thread.h" | 7 #include "content/common/child_thread.h" |
8 #include "content/common/content_client.h" | |
9 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
10 #include "content/common/webmessageportchannel_impl.h" | 9 #include "content/common/webmessageportchannel_impl.h" |
11 #include "content/common/worker_messages.h" | 10 #include "content/common/worker_messages.h" |
| 11 #include "content/public/common/content_client.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWorkerClient.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWorkerClient.h" |
14 | 14 |
15 using WebKit::WebCommonWorkerClient; | 15 using WebKit::WebCommonWorkerClient; |
16 using WebKit::WebMessagePortChannel; | 16 using WebKit::WebMessagePortChannel; |
17 using WebKit::WebMessagePortChannelArray; | 17 using WebKit::WebMessagePortChannelArray; |
18 using WebKit::WebString; | 18 using WebKit::WebString; |
19 using WebKit::WebURL; | 19 using WebKit::WebURL; |
20 using WebKit::WebWorkerClient; | 20 using WebKit::WebWorkerClient; |
21 | 21 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 client_->postMessageToWorkerObject(message, channels); | 136 client_->postMessageToWorkerObject(message, channels); |
137 } | 137 } |
138 | 138 |
139 void WebWorkerProxy::OnPostConsoleMessageToWorkerObject( | 139 void WebWorkerProxy::OnPostConsoleMessageToWorkerObject( |
140 const WorkerHostMsg_PostConsoleMessageToWorkerObject_Params& params) { | 140 const WorkerHostMsg_PostConsoleMessageToWorkerObject_Params& params) { |
141 client_->postConsoleMessageToWorkerObject(params.source_identifier, | 141 client_->postConsoleMessageToWorkerObject(params.source_identifier, |
142 params.message_type, params.message_level, | 142 params.message_type, params.message_level, |
143 params.message, params.line_number, params.source_url); | 143 params.message, params.line_number, params.source_url); |
144 } | 144 } |
145 | 145 |
OLD | NEW |