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/browser/appcache/appcache_service_impl.h" | 5 #include "content/browser/appcache/appcache_service_impl.h" |
6 | 6 |
7 #include <functional> | 7 #include <functional> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "content/browser/appcache/appcache.h" | 14 #include "content/browser/appcache/appcache.h" |
15 #include "content/browser/appcache/appcache_backend_impl.h" | 15 #include "content/browser/appcache/appcache_backend_impl.h" |
16 #include "content/browser/appcache/appcache_entry.h" | 16 #include "content/browser/appcache/appcache_entry.h" |
17 #include "content/browser/appcache/appcache_executable_handler.h" | 17 #include "content/browser/appcache/appcache_executable_handler.h" |
18 #include "content/browser/appcache/appcache_histograms.h" | 18 #include "content/browser/appcache/appcache_histograms.h" |
19 #include "content/browser/appcache/appcache_policy.h" | 19 #include "content/browser/appcache/appcache_policy.h" |
20 #include "content/browser/appcache/appcache_quota_client.h" | 20 #include "content/browser/appcache/appcache_quota_client.h" |
21 #include "content/browser/appcache/appcache_response.h" | 21 #include "content/browser/appcache/appcache_response.h" |
22 #include "content/browser/appcache/appcache_service_impl.h" | 22 #include "content/browser/appcache/appcache_service_impl.h" |
23 #include "content/browser/appcache/appcache_storage_impl.h" | 23 #include "content/browser/appcache/appcache_storage_impl.h" |
24 #include "net/base/completion_callback.h" | 24 #include "net/base/completion_callback.h" |
25 #include "net/base/io_buffer.h" | 25 #include "net/base/io_buffer.h" |
26 #include "webkit/browser/quota/special_storage_policy.h" | 26 #include "storage/browser/quota/special_storage_policy.h" |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 void DeferredCallback(const net::CompletionCallback& callback, int rv) { | 32 void DeferredCallback(const net::CompletionCallback& callback, int rv) { |
33 callback.Run(rv); | 33 callback.Run(rv); |
34 } | 34 } |
35 | 35 |
36 } // namespace | 36 } // namespace |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 backends_.insert( | 569 backends_.insert( |
570 BackendMap::value_type(backend_impl->process_id(), backend_impl)); | 570 BackendMap::value_type(backend_impl->process_id(), backend_impl)); |
571 } | 571 } |
572 | 572 |
573 void AppCacheServiceImpl::UnregisterBackend( | 573 void AppCacheServiceImpl::UnregisterBackend( |
574 AppCacheBackendImpl* backend_impl) { | 574 AppCacheBackendImpl* backend_impl) { |
575 backends_.erase(backend_impl->process_id()); | 575 backends_.erase(backend_impl->process_id()); |
576 } | 576 } |
577 | 577 |
578 } // namespace content | 578 } // namespace content |
OLD | NEW |