Chromium Code Reviews| Index: content/public/browser/cache_storage_context.h |
| diff --git a/content/public/browser/cache_storage_context.h b/content/public/browser/cache_storage_context.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e69e9bbc82a81f86f6df3532d56abb7740a18b5b |
| --- /dev/null |
| +++ b/content/public/browser/cache_storage_context.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_CONTEXT_H_ |
| +#define CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_CONTEXT_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/basictypes.h" |
|
jkarlin
2015/08/18 13:22:35
not needed?
jsbell
2015/08/18 18:42:43
Done.
|
| +#include "base/callback.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "content/common/content_export.h" |
|
jkarlin
2015/08/18 13:22:35
not needed?
jsbell
2015/08/18 18:42:43
Done.
|
| +#include "content/public/browser/cache_storage_usage_info.h" |
| + |
| +namespace content { |
| + |
| +// Represents the per-BrowserContext Cache Storage data. |
| +class CacheStorageContext |
| + : public base::RefCountedThreadSafe<CacheStorageContext> { |
| + public: |
| + typedef base::Callback<void(const std::vector<CacheStorageUsageInfo>& |
|
jkarlin
2015/08/18 13:22:36
using instead of typedef
jsbell
2015/08/18 18:42:43
Done.
|
| + usage_info)> GetUsageInfoCallback; |
| + |
| + // Methods used in response to browsing data and quota manager requests. |
| + // Must be called on the IO thread. |
| + virtual void GetAllOriginsInfo(const GetUsageInfoCallback& callback) = 0; |
| + virtual void DeleteForOrigin(const GURL& origin_url) = 0; |
| + |
| + protected: |
| + friend class base::RefCountedThreadSafe<CacheStorageContext>; |
| + virtual ~CacheStorageContext() {} |
|
jkarlin
2015/08/18 13:22:35
DISALLOW_COPY_AND_ASSIGN?
jsbell
2015/08/18 18:42:43
It looks like this is not done for the pure virtua
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_CONTEXT_H_ |