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

Unified Diff: content/browser/storage_partition_impl_map.h

Issue 314293003: [Storage] Normalize storage partition path before garbage collection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: polish Created 6 years, 6 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 | « no previous file | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl_map.h
diff --git a/content/browser/storage_partition_impl_map.h b/content/browser/storage_partition_impl_map.h
index 972335a33aaab0b6cedebd7ea7dc46cb567ffb1d..feb31200a854d2c82d67f381b1f163fa18edf4fa 100644
--- a/content/browser/storage_partition_impl_map.h
+++ b/content/browser/storage_partition_impl_map.h
@@ -27,9 +27,10 @@ class BrowserContext;
// A std::string to StoragePartition map for use with SupportsUserData APIs.
class StoragePartitionImplMap : public base::SupportsUserData::Data {
public:
- explicit StoragePartitionImplMap(BrowserContext* browser_context);
+ CONTENT_EXPORT explicit StoragePartitionImplMap(
sky 2014/06/06 16:10:06 To my knowledge we generally don't export individu
tzik 2014/06/06 17:25:20 Just following StoragePartitionImpl does. I have n
+ BrowserContext* browser_context);
- virtual ~StoragePartitionImplMap();
+ CONTENT_EXPORT virtual ~StoragePartitionImplMap();
// This map retains ownership of the returned StoragePartition objects.
StoragePartitionImpl* Get(const std::string& partition_domain,
@@ -50,13 +51,15 @@ class StoragePartitionImplMap : public base::SupportsUserData::Data {
//
// The |done| closure is executed on the calling thread when garbage
// collection is complete.
- void GarbageCollect(scoped_ptr<base::hash_set<base::FilePath> > active_paths,
- const base::Closure& done);
+ CONTENT_EXPORT void GarbageCollect(
+ scoped_ptr<base::hash_set<base::FilePath> > active_paths,
+ const base::Closure& done);
void ForEach(const BrowserContext::StoragePartitionCallback& callback);
private:
FRIEND_TEST_ALL_PREFIXES(StoragePartitionConfigTest, OperatorLess);
+ FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplMapTest, GarbageCollect);
// Each StoragePartition is uniquely identified by which partition domain
// it belongs to (such as an app or the browser itself), the user supplied
@@ -105,7 +108,7 @@ class StoragePartitionImplMap : public base::SupportsUserData::Data {
// Returns the relative path from the profile's base directory, to the
// directory that holds all the state for storage contexts in the given
// |partition_domain| and |partition_name|.
- static base::FilePath GetStoragePartitionPath(
+ CONTENT_EXPORT static base::FilePath GetStoragePartitionPath(
const std::string& partition_domain,
const std::string& partition_name);
« no previous file with comments | « no previous file | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698