| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/renderer/shared_worker/embedded_shared_worker_stub.h" | 5 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h" |
| 6 | 6 |
| 7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
| 8 #include "content/child/appcache/appcache_dispatcher.h" | 8 #include "content/child/appcache/appcache_dispatcher.h" |
| 9 #include "content/child/appcache/web_application_cache_host_impl.h" | 9 #include "content/child/appcache/web_application_cache_host_impl.h" |
| 10 #include "content/child/request_extra_data.h" | 10 #include "content/child/request_extra_data.h" |
| 11 #include "content/child/scoped_child_process_reference.h" | 11 #include "content/child/scoped_child_process_reference.h" |
| 12 #include "content/child/service_worker/service_worker_handle_reference.h" | 12 #include "content/child/service_worker/service_worker_handle_reference.h" |
| 13 #include "content/child/service_worker/service_worker_network_provider.h" | 13 #include "content/child/service_worker/service_worker_network_provider.h" |
| 14 #include "content/child/service_worker/service_worker_provider_context.h" | 14 #include "content/child/service_worker/service_worker_provider_context.h" |
| 15 #include "content/child/shared_worker_devtools_agent.h" | 15 #include "content/child/shared_worker_devtools_agent.h" |
| 16 #include "content/child/webmessageportchannel_impl.h" | 16 #include "content/child/webmessageportchannel_impl.h" |
| 17 #include "content/common/worker_messages.h" | 17 #include "content/common/worker_messages.h" |
| 18 #include "content/renderer/render_thread_impl.h" | 18 #include "content/renderer/render_thread_impl.h" |
| 19 #include "content/renderer/shared_worker/embedded_shared_worker_content_settings
_client_proxy.h" | 19 #include "content/renderer/shared_worker/embedded_shared_worker_content_settings
_client_proxy.h" |
| 20 #include "ipc/ipc_message_macros.h" | 20 #include "ipc/ipc_message_macros.h" |
| 21 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 21 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 22 #include "third_party/WebKit/public/web/WebDataSource.h" | 22 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 23 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 23 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
| 24 #include "third_party/WebKit/public/web/WebServiceWorkerNetworkProvider.h" | |
| 25 #include "third_party/WebKit/public/web/WebSharedWorker.h" | 24 #include "third_party/WebKit/public/web/WebSharedWorker.h" |
| 26 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" | 25 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" |
| 26 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerNe
tworkProvider.h" |
| 27 | 27 |
| 28 namespace content { | 28 namespace content { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 class SharedWorkerWebApplicationCacheHostImpl | 32 class SharedWorkerWebApplicationCacheHostImpl |
| 33 : public WebApplicationCacheHostImpl { | 33 : public WebApplicationCacheHostImpl { |
| 34 public: | 34 public: |
| 35 SharedWorkerWebApplicationCacheHostImpl( | 35 SharedWorkerWebApplicationCacheHostImpl( |
| 36 blink::WebApplicationCacheHostClient* client) | 36 blink::WebApplicationCacheHostClient* client) |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 } | 291 } |
| 292 } | 292 } |
| 293 | 293 |
| 294 void EmbeddedSharedWorkerStub::OnTerminateWorkerContext() { | 294 void EmbeddedSharedWorkerStub::OnTerminateWorkerContext() { |
| 295 // After this we wouldn't get any IPC for this stub. | 295 // After this we wouldn't get any IPC for this stub. |
| 296 running_ = false; | 296 running_ = false; |
| 297 impl_->terminateWorkerContext(); | 297 impl_->terminateWorkerContext(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 } // namespace content | 300 } // namespace content |
| OLD | NEW |