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/service_worker/service_worker_script_context.h" | 5 #include "content/renderer/service_worker/service_worker_script_context.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/trace_event/trace_event.h" |
10 #include "content/child/notifications/notification_data_conversions.h" | 10 #include "content/child/notifications/notification_data_conversions.h" |
11 #include "content/child/service_worker/web_service_worker_registration_impl.h" | 11 #include "content/child/service_worker/web_service_worker_registration_impl.h" |
12 #include "content/child/thread_safe_sender.h" | 12 #include "content/child/thread_safe_sender.h" |
13 #include "content/child/webmessageportchannel_impl.h" | 13 #include "content/child/webmessageportchannel_impl.h" |
14 #include "content/common/message_port_messages.h" | 14 #include "content/common/message_port_messages.h" |
15 #include "content/common/service_worker/service_worker_messages.h" | 15 #include "content/common/service_worker/service_worker_messages.h" |
16 #include "content/public/common/referrer.h" | 16 #include "content/public/common/referrer.h" |
17 #include "content/renderer/service_worker/embedded_worker_context_client.h" | 17 #include "content/renderer/service_worker/embedded_worker_context_client.h" |
18 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
19 #include "third_party/WebKit/public/platform/WebCrossOriginServiceWorkerClient.h
" | 19 #include "third_party/WebKit/public/platform/WebCrossOriginServiceWorkerClient.h
" |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 pending_skip_waiting_callbacks_.Lookup(request_id); | 454 pending_skip_waiting_callbacks_.Lookup(request_id); |
455 if (!callbacks) { | 455 if (!callbacks) { |
456 NOTREACHED() << "Got stray response: " << request_id; | 456 NOTREACHED() << "Got stray response: " << request_id; |
457 return; | 457 return; |
458 } | 458 } |
459 callbacks->onSuccess(); | 459 callbacks->onSuccess(); |
460 pending_skip_waiting_callbacks_.Remove(request_id); | 460 pending_skip_waiting_callbacks_.Remove(request_id); |
461 } | 461 } |
462 | 462 |
463 } // namespace content | 463 } // namespace content |
OLD | NEW |