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/fileapi/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/platform/WebString.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
18 | 18 |
19 WebSharedWorkerStub::WebSharedWorkerStub( | 19 WebSharedWorkerStub::WebSharedWorkerStub( |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 void WebSharedWorkerStub::OnTerminateWorkerContext() { | 121 void WebSharedWorkerStub::OnTerminateWorkerContext() { |
122 impl_->terminateWorkerContext(); | 122 impl_->terminateWorkerContext(); |
123 | 123 |
124 // Call the client to make sure context exits. | 124 // Call the client to make sure context exits. |
125 EnsureWorkerContextTerminates(); | 125 EnsureWorkerContextTerminates(); |
126 started_ = false; | 126 started_ = false; |
127 } | 127 } |
OLD | NEW |