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