| 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/child/service_worker/service_worker_dispatcher.h" | 5 #include "content/child/service_worker/service_worker_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/threading/thread_local.h" | 8 #include "base/threading/thread_local.h" |
| 9 #include "content/child/service_worker/web_service_worker_impl.h" | 9 #include "content/child/service_worker/web_service_worker_impl.h" |
| 10 #include "content/child/thread_safe_sender.h" | 10 #include "content/child/thread_safe_sender.h" |
| 11 #include "content/common/service_worker_messages.h" | 11 #include "content/common/service_worker_messages.h" |
| 12 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 12 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
| 13 | 13 |
| 14 using WebKit::WebServiceWorkerProvider; | 14 using blink::WebServiceWorkerProvider; |
| 15 using base::ThreadLocalPointer; | 15 using base::ThreadLocalPointer; |
| 16 using webkit_glue::WorkerTaskRunner; | 16 using webkit_glue::WorkerTaskRunner; |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 base::LazyInstance<ThreadLocalPointer<ServiceWorkerDispatcher> >::Leaky | 22 base::LazyInstance<ThreadLocalPointer<ServiceWorkerDispatcher> >::Leaky |
| 23 g_dispatcher_tls = LAZY_INSTANCE_INITIALIZER; | 23 g_dispatcher_tls = LAZY_INSTANCE_INITIALIZER; |
| 24 | 24 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 if (!callbacks) | 122 if (!callbacks) |
| 123 return; | 123 return; |
| 124 | 124 |
| 125 callbacks->onSuccess(NULL); | 125 callbacks->onSuccess(NULL); |
| 126 pending_callbacks_.Remove(request_id); | 126 pending_callbacks_.Remove(request_id); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void ServiceWorkerDispatcher::OnWorkerRunLoopStopped() { delete this; } | 129 void ServiceWorkerDispatcher::OnWorkerRunLoopStopped() { delete this; } |
| 130 | 130 |
| 131 } // namespace content | 131 } // namespace content |
| OLD | NEW |