OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/service_worker/embedded_worker_context_client.h" | 5 #include "content/renderer/service_worker/embedded_worker_context_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/debug/trace_event.h" | |
11 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
12 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
13 #include "base/pickle.h" | 12 #include "base/pickle.h" |
14 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
15 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
16 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
| 16 #include "base/trace_event/trace_event.h" |
17 #include "content/child/request_extra_data.h" | 17 #include "content/child/request_extra_data.h" |
18 #include "content/child/service_worker/service_worker_dispatcher.h" | 18 #include "content/child/service_worker/service_worker_dispatcher.h" |
19 #include "content/child/service_worker/service_worker_network_provider.h" | 19 #include "content/child/service_worker/service_worker_network_provider.h" |
20 #include "content/child/service_worker/service_worker_provider_context.h" | 20 #include "content/child/service_worker/service_worker_provider_context.h" |
21 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" | 21 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" |
22 #include "content/child/service_worker/web_service_worker_impl.h" | 22 #include "content/child/service_worker/web_service_worker_impl.h" |
23 #include "content/child/service_worker/web_service_worker_registration_impl.h" | 23 #include "content/child/service_worker/web_service_worker_registration_impl.h" |
24 #include "content/child/thread_safe_sender.h" | 24 #include "content/child/thread_safe_sender.h" |
25 #include "content/child/worker_task_runner.h" | 25 #include "content/child/worker_task_runner.h" |
26 #include "content/child/worker_thread_task_runner.h" | 26 #include "content/child/worker_thread_task_runner.h" |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 registration->SetWaiting( | 437 registration->SetWaiting( |
438 dispatcher->GetServiceWorker(attrs.waiting, false)); | 438 dispatcher->GetServiceWorker(attrs.waiting, false)); |
439 registration->SetActive( | 439 registration->SetActive( |
440 dispatcher->GetServiceWorker(attrs.active, false)); | 440 dispatcher->GetServiceWorker(attrs.active, false)); |
441 | 441 |
442 script_context_->SetRegistrationInServiceWorkerGlobalScope( | 442 script_context_->SetRegistrationInServiceWorkerGlobalScope( |
443 registration.Pass()); | 443 registration.Pass()); |
444 } | 444 } |
445 | 445 |
446 } // namespace content | 446 } // namespace content |
OLD | NEW |