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/child/webmessageportchannel_impl.h" | 5 #include "content/child/webmessageportchannel_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "content/child/child_process.h" | 9 #include "content/child/child_process.h" |
10 #include "content/child/child_thread.h" | 10 #include "content/child/child_thread.h" |
11 #include "content/common/message_port_messages.h" | 11 #include "content/common/message_port_messages.h" |
12 #include "third_party/WebKit/public/platform/WebMessagePortChannelClient.h" | 12 #include "third_party/WebKit/public/platform/WebMessagePortChannelClient.h" |
13 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
14 | 14 |
15 using WebKit::WebMessagePortChannel; | 15 using blink::WebMessagePortChannel; |
16 using WebKit::WebMessagePortChannelArray; | 16 using blink::WebMessagePortChannelArray; |
17 using WebKit::WebMessagePortChannelClient; | 17 using blink::WebMessagePortChannelClient; |
18 using WebKit::WebString; | 18 using blink::WebString; |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 WebMessagePortChannelImpl::WebMessagePortChannelImpl( | 22 WebMessagePortChannelImpl::WebMessagePortChannelImpl( |
23 base::MessageLoopProxy* child_thread_loop) | 23 base::MessageLoopProxy* child_thread_loop) |
24 : client_(NULL), | 24 : client_(NULL), |
25 route_id_(MSG_ROUTING_NONE), | 25 route_id_(MSG_ROUTING_NONE), |
26 message_port_id_(MSG_ROUTING_NONE), | 26 message_port_id_(MSG_ROUTING_NONE), |
27 child_thread_loop_(child_thread_loop) { | 27 child_thread_loop_(child_thread_loop) { |
28 AddRef(); | 28 AddRef(); |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 Release(); | 251 Release(); |
252 ChildProcess::current()->ReleaseProcess(); | 252 ChildProcess::current()->ReleaseProcess(); |
253 } | 253 } |
254 | 254 |
255 WebMessagePortChannelImpl::Message::Message() {} | 255 WebMessagePortChannelImpl::Message::Message() {} |
256 | 256 |
257 WebMessagePortChannelImpl::Message::~Message() {} | 257 WebMessagePortChannelImpl::Message::~Message() {} |
258 | 258 |
259 } // namespace content | 259 } // namespace content |
OLD | NEW |