| 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> |
| 8 #include <string> |
| 9 |
| 7 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 8 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
| 9 #include "base/pickle.h" | 12 #include "base/pickle.h" |
| 10 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
| 13 #include "content/child/request_extra_data.h" | 16 #include "content/child/request_extra_data.h" |
| 14 #include "content/child/service_worker/service_worker_network_provider.h" | 17 #include "content/child/service_worker/service_worker_network_provider.h" |
| 15 #include "content/child/thread_safe_sender.h" | 18 #include "content/child/thread_safe_sender.h" |
| 16 #include "content/child/worker_task_runner.h" | 19 #include "content/child/worker_task_runner.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 } | 317 } |
| 315 | 318 |
| 316 void EmbeddedWorkerContextClient::SendWorkerStarted() { | 319 void EmbeddedWorkerContextClient::SendWorkerStarted() { |
| 317 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); | 320 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); |
| 318 Send(new EmbeddedWorkerHostMsg_WorkerStarted( | 321 Send(new EmbeddedWorkerHostMsg_WorkerStarted( |
| 319 WorkerTaskRunner::Instance()->CurrentWorkerId(), | 322 WorkerTaskRunner::Instance()->CurrentWorkerId(), |
| 320 embedded_worker_id_)); | 323 embedded_worker_id_)); |
| 321 } | 324 } |
| 322 | 325 |
| 323 } // namespace content | 326 } // namespace content |
| OLD | NEW |