| 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 <map> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "content/child/thread_safe_sender.h" | 10 #include "content/child/thread_safe_sender.h" |
| 9 #include "content/child/webmessageportchannel_impl.h" | 11 #include "content/child/webmessageportchannel_impl.h" |
| 10 #include "content/common/service_worker/service_worker_messages.h" | 12 #include "content/common/service_worker/service_worker_messages.h" |
| 11 #include "content/renderer/service_worker/embedded_worker_context_client.h" | 13 #include "content/renderer/service_worker/embedded_worker_context_client.h" |
| 12 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
| 13 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 15 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 14 #include "third_party/WebKit/public/platform/WebServiceWorkerRequest.h" | 16 #include "third_party/WebKit/public/platform/WebServiceWorkerRequest.h" |
| 15 #include "third_party/WebKit/public/platform/WebString.h" | 17 #include "third_party/WebKit/public/platform/WebString.h" |
| 16 #include "third_party/WebKit/public/platform/WebURL.h" | 18 #include "third_party/WebKit/public/platform/WebURL.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 info->clientIDs = client_ids; | 185 info->clientIDs = client_ids; |
| 184 callbacks->onSuccess(info.release()); | 186 callbacks->onSuccess(info.release()); |
| 185 pending_clients_callbacks_.Remove(request_id); | 187 pending_clients_callbacks_.Remove(request_id); |
| 186 } | 188 } |
| 187 | 189 |
| 188 int ServiceWorkerScriptContext::GetRoutingID() const { | 190 int ServiceWorkerScriptContext::GetRoutingID() const { |
| 189 return embedded_context_->embedded_worker_id(); | 191 return embedded_context_->embedded_worker_id(); |
| 190 } | 192 } |
| 191 | 193 |
| 192 } // namespace content | 194 } // namespace content |
| OLD | NEW |