| OLD | NEW |
| 1 // Copyright (c) 2009 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 "chrome/worker/webworker_stub.h" | 5 #include "content/worker/webworker_stub.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "content/common/child_thread.h" | 8 #include "content/common/child_thread.h" |
| 9 #include "content/common/file_system/file_system_dispatcher.h" | 9 #include "content/common/file_system/file_system_dispatcher.h" |
| 10 #include "content/common/webmessageportchannel_impl.h" | 10 #include "content/common/webmessageportchannel_impl.h" |
| 11 #include "content/common/worker_messages.h" | 11 #include "content/common/worker_messages.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWorker.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWorker.h" |
| 15 | 15 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const std::vector<int>& sent_message_port_ids, | 64 const std::vector<int>& sent_message_port_ids, |
| 65 const std::vector<int>& new_routing_ids) { | 65 const std::vector<int>& new_routing_ids) { |
| 66 WebKit::WebMessagePortChannelArray channels(sent_message_port_ids.size()); | 66 WebKit::WebMessagePortChannelArray channels(sent_message_port_ids.size()); |
| 67 for (size_t i = 0; i < sent_message_port_ids.size(); i++) { | 67 for (size_t i = 0; i < sent_message_port_ids.size(); i++) { |
| 68 channels[i] = new WebMessagePortChannelImpl( | 68 channels[i] = new WebMessagePortChannelImpl( |
| 69 new_routing_ids[i], sent_message_port_ids[i]); | 69 new_routing_ids[i], sent_message_port_ids[i]); |
| 70 } | 70 } |
| 71 | 71 |
| 72 impl_->postMessageToWorkerContext(message, channels); | 72 impl_->postMessageToWorkerContext(message, channels); |
| 73 } | 73 } |
| OLD | NEW |