Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: webkit/browser/appcache/appcache_service.cc

Issue 136573007: Quota: Factor out (Mock)QuotaManagerProxy into its own file for readability (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/browser/appcache/appcache_service.h ('k') | webkit/browser/appcache/appcache_storage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/browser/appcache/appcache_service.h" 5 #include "webkit/browser/appcache/appcache_service.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 "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "net/base/io_buffer.h" 15 #include "net/base/io_buffer.h"
16 #include "webkit/browser/appcache/appcache.h" 16 #include "webkit/browser/appcache/appcache.h"
17 #include "webkit/browser/appcache/appcache_backend_impl.h" 17 #include "webkit/browser/appcache/appcache_backend_impl.h"
18 #include "webkit/browser/appcache/appcache_entry.h" 18 #include "webkit/browser/appcache/appcache_entry.h"
19 #include "webkit/browser/appcache/appcache_executable_handler.h" 19 #include "webkit/browser/appcache/appcache_executable_handler.h"
20 #include "webkit/browser/appcache/appcache_histograms.h" 20 #include "webkit/browser/appcache/appcache_histograms.h"
21 #include "webkit/browser/appcache/appcache_policy.h" 21 #include "webkit/browser/appcache/appcache_policy.h"
22 #include "webkit/browser/appcache/appcache_quota_client.h" 22 #include "webkit/browser/appcache/appcache_quota_client.h"
23 #include "webkit/browser/appcache/appcache_response.h" 23 #include "webkit/browser/appcache/appcache_response.h"
24 #include "webkit/browser/appcache/appcache_storage_impl.h" 24 #include "webkit/browser/appcache/appcache_storage_impl.h"
25 #include "webkit/browser/quota/quota_manager.h"
26 #include "webkit/browser/quota/special_storage_policy.h" 25 #include "webkit/browser/quota/special_storage_policy.h"
27 26
28 namespace appcache { 27 namespace appcache {
29 28
30 namespace { 29 namespace {
31 30
32 void DeferredCallback(const net::CompletionCallback& callback, int rv) { 31 void DeferredCallback(const net::CompletionCallback& callback, int rv) {
33 callback.Run(rv); 32 callback.Run(rv);
34 } 33 }
35 34
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 backends_.insert( 540 backends_.insert(
542 BackendMap::value_type(backend_impl->process_id(), backend_impl)); 541 BackendMap::value_type(backend_impl->process_id(), backend_impl));
543 } 542 }
544 543
545 void AppCacheService::UnregisterBackend( 544 void AppCacheService::UnregisterBackend(
546 AppCacheBackendImpl* backend_impl) { 545 AppCacheBackendImpl* backend_impl) {
547 backends_.erase(backend_impl->process_id()); 546 backends_.erase(backend_impl->process_id());
548 } 547 }
549 548
550 } // namespace appcache 549 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_service.h ('k') | webkit/browser/appcache/appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698