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

Unified Diff: content/browser/cache_storage/cache_storage_context_impl.h

Issue 1297093002: Cache Storage API: Hook up to chrome://settings/cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto https://codereview.chromium.org/1297023004 Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/cache_storage/cache_storage_context_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/cache_storage/cache_storage_context_impl.h
diff --git a/content/browser/cache_storage/cache_storage_context_impl.h b/content/browser/cache_storage/cache_storage_context_impl.h
index 9130b12c2022f87a27c4ebb35184ac90b6c9eae3..d72babf1d37c6165a2a51ad69fc11666053e1028 100644
--- a/content/browser/cache_storage/cache_storage_context_impl.h
+++ b/content/browser/cache_storage/cache_storage_context_impl.h
@@ -9,6 +9,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
+#include "content/public/browser/cache_storage_context.h"
+#include "content/public/browser/cache_storage_usage_info.h"
namespace base {
class FilePath;
@@ -34,9 +36,8 @@ class CacheStorageManager;
// child processes/origins. Most logic is delegated to the owned
// CacheStorageManager instance, which is only accessed on the IO
// thread.
-// TODO(jsbell): Derive from a public CacheStorageContext. crbug.com/466371
class CONTENT_EXPORT CacheStorageContextImpl
- : public base::RefCountedThreadSafe<CacheStorageContextImpl> {
+ : NON_EXPORTED_BASE(public CacheStorageContext) {
public:
explicit CacheStorageContextImpl(BrowserContext* browser_context);
@@ -62,11 +63,14 @@ class CONTENT_EXPORT CacheStorageContextImpl
net::URLRequestContextGetter* request_context_getter,
ChromeBlobStorageContext* blob_storage_context);
- private:
- friend class base::RefCountedThreadSafe<CacheStorageContextImpl>;
+ // CacheStorageContext
+ void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
+ void DeleteForOrigin(const GURL& origin) override;
- ~CacheStorageContextImpl();
+ protected:
+ ~CacheStorageContextImpl() override;
+ private:
void CreateCacheStorageManager(
const base::FilePath& user_data_directory,
const scoped_refptr<base::SequencedTaskRunner>& cache_task_runner,
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/cache_storage/cache_storage_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698