OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/webmessageportchannel_impl.h" | 5 #include "content/common/webmessageportchannel_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/common/child_process.h" | 8 #include "content/common/child_process.h" |
9 #include "content/common/child_thread.h" | 9 #include "content/common/child_thread.h" |
10 #include "content/common/worker_messages.h" | 10 #include "content/common/worker_messages.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel
Client.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel
Client.h" |
13 | 13 |
14 using WebKit::WebMessagePortChannel; | 14 using WebKit::WebMessagePortChannel; |
15 using WebKit::WebMessagePortChannelArray; | 15 using WebKit::WebMessagePortChannelArray; |
16 using WebKit::WebMessagePortChannelClient; | 16 using WebKit::WebMessagePortChannelClient; |
17 using WebKit::WebString; | 17 using WebKit::WebString; |
18 | 18 |
19 WebMessagePortChannelImpl::WebMessagePortChannelImpl() | 19 WebMessagePortChannelImpl::WebMessagePortChannelImpl() |
20 : client_(NULL), | 20 : client_(NULL), |
21 route_id_(MSG_ROUTING_NONE), | 21 route_id_(MSG_ROUTING_NONE), |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 message_port_id_ = MSG_ROUTING_NONE; | 242 message_port_id_ = MSG_ROUTING_NONE; |
243 | 243 |
244 Release(); | 244 Release(); |
245 ChildProcess::current()->ReleaseProcess(); | 245 ChildProcess::current()->ReleaseProcess(); |
246 } | 246 } |
247 | 247 |
248 WebMessagePortChannelImpl::Message::Message() {} | 248 WebMessagePortChannelImpl::Message::Message() {} |
249 | 249 |
250 WebMessagePortChannelImpl::Message::~Message() {} | 250 WebMessagePortChannelImpl::Message::~Message() {} |
OLD | NEW |