OLD | NEW |
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/websharedworker_stub.h" | 5 #include "content/worker/websharedworker_stub.h" |
6 | 6 |
7 #include "content/common/child_process.h" | 7 #include "content/common/child_process.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 "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "content/worker/worker_thread.h" | 13 #include "content/worker/worker_thread.h" |
14 #include "content/worker/shared_worker_devtools_agent.h" | 14 #include "content/worker/shared_worker_devtools_agent.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
18 | 18 |
19 WebSharedWorkerStub::WebSharedWorkerStub( | 19 WebSharedWorkerStub::WebSharedWorkerStub( |
20 const string16& name, int route_id, | 20 const string16& name, int route_id, |
21 const WorkerAppCacheInitInfo& appcache_init_info) | 21 const WorkerAppCacheInitInfo& appcache_init_info) |
22 : route_id_(route_id), | 22 : route_id_(route_id), |
23 appcache_init_info_(appcache_init_info), | 23 appcache_init_info_(appcache_init_info), |
24 ALLOW_THIS_IN_INITIALIZER_LIST(client_(route_id, this)), | 24 ALLOW_THIS_IN_INITIALIZER_LIST(client_(route_id, this)), |
25 name_(name), | 25 name_(name), |
26 started_(false), | 26 started_(false), |
27 worker_devtools_agent_(NULL) { | 27 worker_devtools_agent_(NULL) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
118 void WebSharedWorkerStub::OnTerminateWorkerContext() { | 118 void WebSharedWorkerStub::OnTerminateWorkerContext() { |
119 impl_->terminateWorkerContext(); | 119 impl_->terminateWorkerContext(); |
120 | 120 |
121 // Call the client to make sure context exits. | 121 // Call the client to make sure context exits. |
122 EnsureWorkerContextTerminates(); | 122 EnsureWorkerContextTerminates(); |
123 started_ = false; | 123 started_ = false; |
124 } | 124 } |
OLD | NEW |