| 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/cache_storage/cache_storage_dispatcher.h" | 5 #include "content/renderer/cache_storage/cache_storage_dispatcher.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <string> | 10 #include <string> |
| 9 #include <utility> | 11 #include <utility> |
| 10 | 12 |
| 11 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 13 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/threading/thread_local.h" | 17 #include "base/threading/thread_local.h" |
| 16 #include "content/child/thread_safe_sender.h" | 18 #include "content/child/thread_safe_sender.h" |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 CacheStorageDispatcher::WebResponsesFromResponses( | 664 CacheStorageDispatcher::WebResponsesFromResponses( |
| 663 const std::vector<ServiceWorkerResponse>& responses) { | 665 const std::vector<ServiceWorkerResponse>& responses) { |
| 664 blink::WebVector<blink::WebServiceWorkerResponse> web_responses( | 666 blink::WebVector<blink::WebServiceWorkerResponse> web_responses( |
| 665 responses.size()); | 667 responses.size()); |
| 666 for (size_t i = 0; i < responses.size(); ++i) | 668 for (size_t i = 0; i < responses.size(); ++i) |
| 667 PopulateWebResponseFromResponse(responses[i], &(web_responses[i])); | 669 PopulateWebResponseFromResponse(responses[i], &(web_responses[i])); |
| 668 return web_responses; | 670 return web_responses; |
| 669 } | 671 } |
| 670 | 672 |
| 671 } // namespace content | 673 } // namespace content |
| OLD | NEW |