| 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/platform/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 namespace content { |
| 20 |
| 19 WebMessagePortChannelImpl::WebMessagePortChannelImpl() | 21 WebMessagePortChannelImpl::WebMessagePortChannelImpl() |
| 20 : client_(NULL), | 22 : client_(NULL), |
| 21 route_id_(MSG_ROUTING_NONE), | 23 route_id_(MSG_ROUTING_NONE), |
| 22 message_port_id_(MSG_ROUTING_NONE) { | 24 message_port_id_(MSG_ROUTING_NONE) { |
| 23 AddRef(); | 25 AddRef(); |
| 24 Init(); | 26 Init(); |
| 25 } | 27 } |
| 26 | 28 |
| 27 WebMessagePortChannelImpl::WebMessagePortChannelImpl( | 29 WebMessagePortChannelImpl::WebMessagePortChannelImpl( |
| 28 int route_id, | 30 int route_id, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 243 |
| 242 message_port_id_ = MSG_ROUTING_NONE; | 244 message_port_id_ = MSG_ROUTING_NONE; |
| 243 | 245 |
| 244 Release(); | 246 Release(); |
| 245 ChildProcess::current()->ReleaseProcess(); | 247 ChildProcess::current()->ReleaseProcess(); |
| 246 } | 248 } |
| 247 | 249 |
| 248 WebMessagePortChannelImpl::Message::Message() {} | 250 WebMessagePortChannelImpl::Message::Message() {} |
| 249 | 251 |
| 250 WebMessagePortChannelImpl::Message::~Message() {} | 252 WebMessagePortChannelImpl::Message::~Message() {} |
| 253 |
| 254 } // namespace content |
| OLD | NEW |