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

Unified Diff: content/browser/appcache/appcache_storage_impl.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/accessibility/accessibility_ui.cc ('k') | content/browser/appcache/appcache_update_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_storage_impl.cc
diff --git a/content/browser/appcache/appcache_storage_impl.cc b/content/browser/appcache/appcache_storage_impl.cc
index f3df8372a00199e671c427089b8093d1aa595883..6b4b0bf632ab3fc656a1c44640b04f72fc232819 100644
--- a/content/browser/appcache/appcache_storage_impl.cc
+++ b/content/browser/appcache/appcache_storage_impl.cc
@@ -44,8 +44,8 @@ namespace content {
// Hard coded default when not using quota management.
static const int kDefaultQuota = 5 * 1024 * 1024;
-static const int kMaxDiskCacheSize = 250 * 1024 * 1024;
-static const int kMaxMemDiskCacheSize = 10 * 1024 * 1024;
+static const int kAppCacheMaxDiskCacheSize = 250 * 1024 * 1024;
+static const int kAppCacheMaxMemDiskCacheSize = 10 * 1024 * 1024;
static const base::FilePath::CharType kDiskCacheDirectoryName[] =
FILE_PATH_LITERAL("Cache");
@@ -77,7 +77,7 @@ bool DeleteGroupAndRelatedRecords(
// Destroys |database|. If there is appcache data to be deleted
// (|force_keep_session_state| is false), deletes session-only appcache data.
-void ClearSessionOnlyOrigins(
+void AppCacheClearSessionOnlyOrigins(
AppCacheDatabase* database,
scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy,
bool force_keep_session_state) {
@@ -1408,7 +1408,7 @@ AppCacheStorageImpl::~AppCacheStorageImpl() {
if (database_ &&
!db_task_runner_->PostTask(
FROM_HERE,
- base::BindOnce(&ClearSessionOnlyOrigins, database_,
+ base::BindOnce(&AppCacheClearSessionOnlyOrigins, database_,
make_scoped_refptr(service_->special_storage_policy()),
service()->force_keep_session_state()))) {
delete database_;
@@ -1888,13 +1888,14 @@ AppCacheDiskCache* AppCacheStorageImpl::disk_cache() {
disk_cache_.reset(new AppCacheDiskCache);
if (is_incognito_) {
rv = disk_cache_->InitWithMemBackend(
- kMaxMemDiskCacheSize,
+ kAppCacheMaxMemDiskCacheSize,
base::Bind(&AppCacheStorageImpl::OnDiskCacheInitialized,
base::Unretained(this)));
} else {
expecting_cleanup_complete_on_disable_ = true;
rv = disk_cache_->InitWithDiskBackend(
- cache_directory_.Append(kDiskCacheDirectoryName), kMaxDiskCacheSize,
+ cache_directory_.Append(kDiskCacheDirectoryName),
+ kAppCacheMaxDiskCacheSize,
false,
base::BindOnce(&AppCacheStorageImpl::OnDiskCacheCleanupComplete,
weak_factory_.GetWeakPtr()),
« no previous file with comments | « content/browser/accessibility/accessibility_ui.cc ('k') | content/browser/appcache/appcache_update_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698