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

Side by Side Diff: content/worker/webworker_stub.cc

Issue 8336007: Move content_client.h into content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add back a needed include. Created 9 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/test/test_content_client.h ('k') | no next file » | 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/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/content_client.h"
10 #include "content/common/file_system/file_system_dispatcher.h" 9 #include "content/common/file_system/file_system_dispatcher.h"
11 #include "content/common/webmessageportchannel_impl.h" 10 #include "content/common/webmessageportchannel_impl.h"
12 #include "content/common/worker_messages.h" 11 #include "content/common/worker_messages.h"
12 #include "content/public/common/content_client.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWorker.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWorker.h"
16 16
17 using WebKit::WebWorker; 17 using WebKit::WebWorker;
18 18
19 WebWorkerStub::WebWorkerStub(const GURL& url, int route_id, 19 WebWorkerStub::WebWorkerStub(const GURL& url, int route_id,
20 const WorkerAppCacheInitInfo& appcache_init_info) 20 const WorkerAppCacheInitInfo& appcache_init_info)
21 : WebWorkerStubBase(route_id, appcache_init_info), 21 : WebWorkerStubBase(route_id, appcache_init_info),
22 ALLOW_THIS_IN_INITIALIZER_LIST(impl_(WebWorker::create(client()))), 22 ALLOW_THIS_IN_INITIALIZER_LIST(impl_(WebWorker::create(client()))),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const std::vector<int>& sent_message_port_ids, 65 const std::vector<int>& sent_message_port_ids,
66 const std::vector<int>& new_routing_ids) { 66 const std::vector<int>& new_routing_ids) {
67 WebKit::WebMessagePortChannelArray channels(sent_message_port_ids.size()); 67 WebKit::WebMessagePortChannelArray channels(sent_message_port_ids.size());
68 for (size_t i = 0; i < sent_message_port_ids.size(); i++) { 68 for (size_t i = 0; i < sent_message_port_ids.size(); i++) {
69 channels[i] = new WebMessagePortChannelImpl( 69 channels[i] = new WebMessagePortChannelImpl(
70 new_routing_ids[i], sent_message_port_ids[i]); 70 new_routing_ids[i], sent_message_port_ids[i]);
71 } 71 }
72 72
73 impl_->postMessageToWorkerContext(message, channels); 73 impl_->postMessageToWorkerContext(message, channels);
74 } 74 }
OLDNEW
« no previous file with comments | « content/test/test_content_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698