| 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/browser/service_worker/service_worker_version.h" | 5 #include "content/browser/service_worker/service_worker_version.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "content/common/service_worker/embedded_worker_start_params.h" | 41 #include "content/common/service_worker/embedded_worker_start_params.h" |
| 42 #include "content/common/service_worker/service_worker_messages.h" | 42 #include "content/common/service_worker/service_worker_messages.h" |
| 43 #include "content/common/service_worker/service_worker_type_converters.h" | 43 #include "content/common/service_worker/service_worker_type_converters.h" |
| 44 #include "content/common/service_worker/service_worker_utils.h" | 44 #include "content/common/service_worker/service_worker_utils.h" |
| 45 #include "content/public/browser/browser_thread.h" | 45 #include "content/public/browser/browser_thread.h" |
| 46 #include "content/public/browser/content_browser_client.h" | 46 #include "content/public/browser/content_browser_client.h" |
| 47 #include "content/public/browser/render_process_host.h" | 47 #include "content/public/browser/render_process_host.h" |
| 48 #include "content/public/common/content_client.h" | 48 #include "content/public/common/content_client.h" |
| 49 #include "content/public/common/content_switches.h" | 49 #include "content/public/common/content_switches.h" |
| 50 #include "content/public/common/result_codes.h" | 50 #include "content/public/common/result_codes.h" |
| 51 #include "mojo/common/common_type_converters.h" | |
| 52 #include "net/http/http_response_headers.h" | 51 #include "net/http/http_response_headers.h" |
| 53 #include "net/http/http_response_info.h" | 52 #include "net/http/http_response_info.h" |
| 54 | 53 |
| 55 namespace content { | 54 namespace content { |
| 56 | 55 |
| 57 using StatusCallback = ServiceWorkerVersion::StatusCallback; | 56 using StatusCallback = ServiceWorkerVersion::StatusCallback; |
| 58 | 57 |
| 59 namespace { | 58 namespace { |
| 60 | 59 |
| 61 // Time to wait until stopping an idle worker. | 60 // Time to wait until stopping an idle worker. |
| (...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1916 | 1915 |
| 1917 void ServiceWorkerVersion::CleanUpExternalRequest( | 1916 void ServiceWorkerVersion::CleanUpExternalRequest( |
| 1918 const std::string& request_uuid, | 1917 const std::string& request_uuid, |
| 1919 ServiceWorkerStatusCode status) { | 1918 ServiceWorkerStatusCode status) { |
| 1920 if (status == SERVICE_WORKER_OK) | 1919 if (status == SERVICE_WORKER_OK) |
| 1921 return; | 1920 return; |
| 1922 external_request_uuid_to_request_id_.erase(request_uuid); | 1921 external_request_uuid_to_request_id_.erase(request_uuid); |
| 1923 } | 1922 } |
| 1924 | 1923 |
| 1925 } // namespace content | 1924 } // namespace content |
| OLD | NEW |