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

Side by Side Diff: content/renderer/websharedworker_proxy.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
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/renderer/websharedworker_proxy.h" 5 #include "content/renderer/websharedworker_proxy.h"
6 #include "content/common/child_thread.h" 6 #include "content/common/child_thread.h"
7 #include "content/common/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "content/common/webmessageportchannel_impl.h" 8 #include "content/common/webmessageportchannel_impl.h"
9 #include "content/common/worker_messages.h" 9 #include "content/common/worker_messages.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerClient .h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerClient .h"
12 12
13 namespace content {
14
13 WebSharedWorkerProxy::WebSharedWorkerProxy(ChildThread* child_thread, 15 WebSharedWorkerProxy::WebSharedWorkerProxy(ChildThread* child_thread,
14 unsigned long long document_id, 16 unsigned long long document_id,
15 bool exists, 17 bool exists,
16 int route_id, 18 int route_id,
17 int render_view_route_id) 19 int render_view_route_id)
18 : route_id_(exists ? route_id : MSG_ROUTING_NONE), 20 : route_id_(exists ? route_id : MSG_ROUTING_NONE),
19 render_view_route_id_(render_view_route_id), 21 render_view_route_id_(render_view_route_id),
20 child_thread_(child_thread), 22 child_thread_(child_thread),
21 document_id_(document_id), 23 document_id_(document_id),
22 pending_route_id_(route_id), 24 pending_route_id_(route_id),
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // The worker is created - now send off the CreateWorkerContext message and 175 // The worker is created - now send off the CreateWorkerContext message and
174 // any other queued messages 176 // any other queued messages
175 SendQueuedMessages(); 177 SendQueuedMessages();
176 178
177 // Inform any listener that the pending connect event has been sent 179 // Inform any listener that the pending connect event has been sent
178 // (this can result in this object being freed). 180 // (this can result in this object being freed).
179 if (connect_listener_) { 181 if (connect_listener_) {
180 connect_listener_->connected(); 182 connect_listener_->connected();
181 } 183 }
182 } 184 }
185
186 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/websharedworker_proxy.h ('k') | content/renderer/websharedworkerrepository_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698