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

Side by Side Diff: content/renderer/webworker_base.cc

Issue 7477027: Support Transferable objects (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update for interface changes. Created 9 years, 4 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.cc ('k') | content/renderer/webworker_proxy.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/webworker_base.h" 5 #include "content/renderer/webworker_base.h"
6 6
7 #include "content/common/child_thread.h" 7 #include "content/common/child_thread.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/common/webmessageportchannel_impl.h" 9 #include "content/common/webmessageportchannel_impl.h"
10 #include "content/common/worker_messages.h" 10 #include "content/common/worker_messages.h"
11 #include "content/renderer/worker_devtools_agent_proxy.h" 11 #include "content/renderer/worker_devtools_agent_proxy.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWorkerClient.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWorkerClient.h"
14 14
15 using WebKit::WebMessagePortChannel; 15 using WebKit::WebMessagePortChannel;
16 using WebKit::WebMessagePortChannelArray; 16 using WebKit::WebTransferableReceiptArray;
17 using WebKit::WebString; 17 using WebKit::WebString;
18 using WebKit::WebURL; 18 using WebKit::WebURL;
19 using WebKit::WebWorkerClient; 19 using WebKit::WebWorkerClient;
20 20
21 WebWorkerBase::WebWorkerBase( 21 WebWorkerBase::WebWorkerBase(
22 ChildThread* child_thread, 22 ChildThread* child_thread,
23 unsigned long long document_id, 23 unsigned long long document_id,
24 int route_id, 24 int route_id,
25 int render_view_route_id, 25 int render_view_route_id,
26 int parent_appcache_host_id, 26 int parent_appcache_host_id,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 void WebWorkerBase::SendQueuedMessages() { 120 void WebWorkerBase::SendQueuedMessages() {
121 DCHECK(queued_messages_.size()); 121 DCHECK(queued_messages_.size());
122 std::vector<IPC::Message*> queued_messages = queued_messages_; 122 std::vector<IPC::Message*> queued_messages = queued_messages_;
123 queued_messages_.clear(); 123 queued_messages_.clear();
124 for (size_t i = 0; i < queued_messages.size(); ++i) { 124 for (size_t i = 0; i < queued_messages.size(); ++i) {
125 queued_messages[i]->set_routing_id(route_id_); 125 queued_messages[i]->set_routing_id(route_id_);
126 Send(queued_messages[i]); 126 Send(queued_messages[i]);
127 } 127 }
128 } 128 }
OLDNEW
« no previous file with comments | « content/common/webmessageportchannel_impl.cc ('k') | content/renderer/webworker_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698