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 "chrome/common/webmessageportchannel_impl.h" | 5 #include "chrome/common/webmessageportchannel_impl.h" |
6 | 6 |
7 #include "chrome/common/child_process.h" | 7 #include "chrome/common/child_process.h" |
8 #include "chrome/common/child_thread.h" | 8 #include "chrome/common/child_thread.h" |
9 #include "chrome/common/worker_messages.h" | 9 #include "chrome/common/worker_messages.h" |
10 #include "webkit/api/public/WebString.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
11 #include "webkit/api/public/WebMessagePortChannelClient.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebMessagePortChannelClient.
h" |
12 | 12 |
13 using WebKit::WebMessagePortChannel; | 13 using WebKit::WebMessagePortChannel; |
14 using WebKit::WebMessagePortChannelArray; | 14 using WebKit::WebMessagePortChannelArray; |
15 using WebKit::WebMessagePortChannelClient; | 15 using WebKit::WebMessagePortChannelClient; |
16 using WebKit::WebString; | 16 using WebKit::WebString; |
17 | 17 |
18 WebMessagePortChannelImpl::WebMessagePortChannelImpl() | 18 WebMessagePortChannelImpl::WebMessagePortChannelImpl() |
19 : client_(NULL), | 19 : client_(NULL), |
20 route_id_(MSG_ROUTING_NONE), | 20 route_id_(MSG_ROUTING_NONE), |
21 message_port_id_(MSG_ROUTING_NONE) { | 21 message_port_id_(MSG_ROUTING_NONE) { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 } | 221 } |
222 | 222 |
223 Send(new WorkerProcessHostMsg_SendQueuedMessages( | 223 Send(new WorkerProcessHostMsg_SendQueuedMessages( |
224 message_port_id_, queued_messages)); | 224 message_port_id_, queued_messages)); |
225 | 225 |
226 message_port_id_ = MSG_ROUTING_NONE; | 226 message_port_id_ = MSG_ROUTING_NONE; |
227 | 227 |
228 Release(); | 228 Release(); |
229 ChildProcess::current()->ReleaseProcess(); | 229 ChildProcess::current()->ReleaseProcess(); |
230 } | 230 } |
OLD | NEW |