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

Side by Side Diff: content/public/browser/browser_context.h

Issue 11362268: Implement the ability to obliterate a storage partition from disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: source control is hard, let's go shopping! Created 8 years, 1 month 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 (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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 static DownloadManager* GetDownloadManager(BrowserContext* browser_context); 44 static DownloadManager* GetDownloadManager(BrowserContext* browser_context);
45 45
46 static content::StoragePartition* GetStoragePartition( 46 static content::StoragePartition* GetStoragePartition(
47 BrowserContext* browser_context, SiteInstance* site_instance); 47 BrowserContext* browser_context, SiteInstance* site_instance);
48 static content::StoragePartition* GetStoragePartitionForSite( 48 static content::StoragePartition* GetStoragePartitionForSite(
49 BrowserContext* browser_context, const GURL& site); 49 BrowserContext* browser_context, const GURL& site);
50 static void ForEachStoragePartition( 50 static void ForEachStoragePartition(
51 BrowserContext* browser_context, 51 BrowserContext* browser_context,
52 const StoragePartitionCallback& callback); 52 const StoragePartitionCallback& callback);
53 static void AsyncObliterateStoragePartition(
54 BrowserContext* browser_context,
55 const GURL& site);
53 56
54 // DON'T USE THIS. GetDefaultStoragePartition() is going away. 57 // DON'T USE THIS. GetDefaultStoragePartition() is going away.
55 // Use GetStoragePartition() instead. Ask ajwong@ if you have problems. 58 // Use GetStoragePartition() instead. Ask ajwong@ if you have problems.
56 static content::StoragePartition* GetDefaultStoragePartition( 59 static content::StoragePartition* GetDefaultStoragePartition(
57 BrowserContext* browser_context); 60 BrowserContext* browser_context);
58 61
59 // Ensures that the corresponding ResourceContext is initialized. Normally the 62 // Ensures that the corresponding ResourceContext is initialized. Normally the
60 // BrowserContext initializs the corresponding getters when its objects are 63 // BrowserContext initializs the corresponding getters when its objects are
61 // created, but if the embedder wants to pass the ResourceContext to another 64 // created, but if the embedder wants to pass the ResourceContext to another
62 // thread before they use BrowserContext, they should call this to make sure 65 // thread before they use BrowserContext, they should call this to make sure
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 struct hash<content::BrowserContext*> { 143 struct hash<content::BrowserContext*> {
141 std::size_t operator()(content::BrowserContext* const& p) const { 144 std::size_t operator()(content::BrowserContext* const& p) const {
142 return reinterpret_cast<std::size_t>(p); 145 return reinterpret_cast<std::size_t>(p);
143 } 146 }
144 }; 147 };
145 148
146 } // namespace BASE_HASH_NAMESPACE 149 } // namespace BASE_HASH_NAMESPACE
147 #endif 150 #endif
148 151
149 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 152 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698