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

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

Issue 16328003: Move a bunch of child-only code from content/common to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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/utility/utility_thread_impl.cc ('k') | content/worker/websharedworkerclient_proxy.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/websharedworker_stub.h" 5 #include "content/worker/websharedworker_stub.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "content/common/child_process.h" 8 #include "content/child/child_process.h"
9 #include "content/common/child_thread.h" 9 #include "content/child/child_thread.h"
10 #include "content/common/fileapi/file_system_dispatcher.h" 10 #include "content/child/fileapi/file_system_dispatcher.h"
11 #include "content/common/webmessageportchannel_impl.h" 11 #include "content/child/webmessageportchannel_impl.h"
12 #include "content/common/worker_messages.h" 12 #include "content/common/worker_messages.h"
13 #include "content/worker/shared_worker_devtools_agent.h" 13 #include "content/worker/shared_worker_devtools_agent.h"
14 #include "content/worker/worker_thread.h" 14 #include "content/worker/worker_thread.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h"
15 #include "third_party/WebKit/public/platform/WebString.h" 16 #include "third_party/WebKit/public/platform/WebString.h"
16 #include "third_party/WebKit/public/platform/WebURL.h" 17 #include "third_party/WebKit/public/platform/WebURL.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 WebSharedWorkerStub::WebSharedWorkerStub( 21 WebSharedWorkerStub::WebSharedWorkerStub(
22 const string16& name, int route_id, 22 const string16& name, int route_id,
23 const WorkerAppCacheInitInfo& appcache_init_info) 23 const WorkerAppCacheInitInfo& appcache_init_info)
24 : route_id_(route_id), 24 : route_id_(route_id),
25 appcache_init_info_(appcache_init_info), 25 appcache_init_info_(appcache_init_info),
26 client_(route_id, this), 26 client_(route_id, this),
27 name_(name), 27 name_(name),
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 void WebSharedWorkerStub::OnTerminateWorkerContext() { 123 void WebSharedWorkerStub::OnTerminateWorkerContext() {
124 impl_->terminateWorkerContext(); 124 impl_->terminateWorkerContext();
125 125
126 // Call the client to make sure context exits. 126 // Call the client to make sure context exits.
127 EnsureWorkerContextTerminates(); 127 EnsureWorkerContextTerminates();
128 started_ = false; 128 started_ = false;
129 } 129 }
130 130
131 } // namespace content 131 } // namespace content
OLDNEW
« no previous file with comments | « content/utility/utility_thread_impl.cc ('k') | content/worker/websharedworkerclient_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698