Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: content/common/webmessageportchannel_impl.cc

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/webmessageportchannel_impl.h ('k') | content/gpu/gpu_child_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/webmessageportchannel_impl.h ('k') | content/gpu/gpu_child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698