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

Side by Side Diff: content/browser/appcache/appcache_service_impl.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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
OLDNEW
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"
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 // AppCacheStorageReference ------ 436 // AppCacheStorageReference ------
437 437
438 AppCacheStorageReference::AppCacheStorageReference( 438 AppCacheStorageReference::AppCacheStorageReference(
439 scoped_ptr<AppCacheStorage> storage) 439 scoped_ptr<AppCacheStorage> storage)
440 : storage_(storage.Pass()) {} 440 : storage_(storage.Pass()) {}
441 AppCacheStorageReference::~AppCacheStorageReference() {} 441 AppCacheStorageReference::~AppCacheStorageReference() {}
442 442
443 // AppCacheServiceImpl ------- 443 // AppCacheServiceImpl -------
444 444
445 AppCacheServiceImpl::AppCacheServiceImpl(quota::QuotaManagerProxy* 445 AppCacheServiceImpl::AppCacheServiceImpl(
446 quota_manager_proxy) 446 storage::QuotaManagerProxy* quota_manager_proxy)
447 : appcache_policy_(NULL), quota_client_(NULL), handler_factory_(NULL), 447 : appcache_policy_(NULL),
448 quota_client_(NULL),
449 handler_factory_(NULL),
448 quota_manager_proxy_(quota_manager_proxy), 450 quota_manager_proxy_(quota_manager_proxy),
449 request_context_(NULL), 451 request_context_(NULL),
450 force_keep_session_state_(false) { 452 force_keep_session_state_(false) {
451 if (quota_manager_proxy_.get()) { 453 if (quota_manager_proxy_.get()) {
452 quota_client_ = new AppCacheQuotaClient(this); 454 quota_client_ = new AppCacheQuotaClient(this);
453 quota_manager_proxy_->RegisterClient(quota_client_); 455 quota_manager_proxy_->RegisterClient(quota_client_);
454 } 456 }
455 } 457 }
456 458
457 AppCacheServiceImpl::~AppCacheServiceImpl() { 459 AppCacheServiceImpl::~AppCacheServiceImpl() {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 556
555 void AppCacheServiceImpl::CheckAppCacheResponse(const GURL& manifest_url, 557 void AppCacheServiceImpl::CheckAppCacheResponse(const GURL& manifest_url,
556 int64 cache_id, 558 int64 cache_id,
557 int64 response_id) { 559 int64 response_id) {
558 CheckResponseHelper* helper = new CheckResponseHelper( 560 CheckResponseHelper* helper = new CheckResponseHelper(
559 this, manifest_url, cache_id, response_id); 561 this, manifest_url, cache_id, response_id);
560 helper->Start(); 562 helper->Start();
561 } 563 }
562 564
563 void AppCacheServiceImpl::set_special_storage_policy( 565 void AppCacheServiceImpl::set_special_storage_policy(
564 quota::SpecialStoragePolicy* policy) { 566 storage::SpecialStoragePolicy* policy) {
565 special_storage_policy_ = policy; 567 special_storage_policy_ = policy;
566 } 568 }
567 569
568 void AppCacheServiceImpl::RegisterBackend( 570 void AppCacheServiceImpl::RegisterBackend(
569 AppCacheBackendImpl* backend_impl) { 571 AppCacheBackendImpl* backend_impl) {
570 DCHECK(backends_.find(backend_impl->process_id()) == backends_.end()); 572 DCHECK(backends_.find(backend_impl->process_id()) == backends_.end());
571 backends_.insert( 573 backends_.insert(
572 BackendMap::value_type(backend_impl->process_id(), backend_impl)); 574 BackendMap::value_type(backend_impl->process_id(), backend_impl));
573 } 575 }
574 576
575 void AppCacheServiceImpl::UnregisterBackend( 577 void AppCacheServiceImpl::UnregisterBackend(
576 AppCacheBackendImpl* backend_impl) { 578 AppCacheBackendImpl* backend_impl) {
577 backends_.erase(backend_impl->process_id()); 579 backends_.erase(backend_impl->process_id());
578 } 580 }
579 581
580 } // namespace content 582 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_service_impl.h ('k') | content/browser/appcache/appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698