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

Side by Side Diff: content/browser/storage_partition_impl_map.cc

Issue 21646002: Rename enum in StoragePartition according to style guide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the TODO. Created 7 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
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 "content/browser/storage_partition_impl_map.h" 5 #include "content/browser/storage_partition_impl_map.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_enumerator.h" 10 #include "base/files/file_enumerator.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 std::vector<base::FilePath> paths_to_keep; 493 std::vector<base::FilePath> paths_to_keep;
494 for (PartitionMap::const_iterator it = partitions_.begin(); 494 for (PartitionMap::const_iterator it = partitions_.begin();
495 it != partitions_.end(); 495 it != partitions_.end();
496 ++it) { 496 ++it) {
497 const StoragePartitionConfig& config = it->first; 497 const StoragePartitionConfig& config = it->first;
498 if (config.partition_domain == partition_domain) { 498 if (config.partition_domain == partition_domain) {
499 it->second->ClearDataForUnboundedRange( 499 it->second->ClearDataForUnboundedRange(
500 // All except shader cache. 500 // All except shader cache.
501 StoragePartition::REMOVE_DATA_MASK_ALL & 501 StoragePartition::REMOVE_DATA_MASK_ALL &
502 (~StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE), 502 (~StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE),
503 StoragePartition::kAllStorage); 503 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL);
504 if (!config.in_memory) { 504 if (!config.in_memory) {
505 paths_to_keep.push_back(it->second->GetPath()); 505 paths_to_keep.push_back(it->second->GetPath());
506 } 506 }
507 } 507 }
508 } 508 }
509 509
510 // Start a best-effort delete of the on-disk storage excluding paths that are 510 // Start a best-effort delete of the on-disk storage excluding paths that are
511 // known to still be in use. This is to delete any previously created 511 // known to still be in use. This is to delete any previously created
512 // StoragePartition state that just happens to not have been used during this 512 // StoragePartition state that just happens to not have been used during this
513 // run of the browser. 513 // run of the browser.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 583
584 // We do not call InitializeURLRequestContext() for media contexts because, 584 // We do not call InitializeURLRequestContext() for media contexts because,
585 // other than the HTTP cache, the media contexts share the same backing 585 // other than the HTTP cache, the media contexts share the same backing
586 // objects as their associated "normal" request context. Thus, the previous 586 // objects as their associated "normal" request context. Thus, the previous
587 // call serves to initialize the media request context for this storage 587 // call serves to initialize the media request context for this storage
588 // partition as well. 588 // partition as well.
589 } 589 }
590 } 590 }
591 591
592 } // namespace content 592 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/browser/storage_partition_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698