Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_CONTEXT_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_CONTEXT_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
|
jkarlin
2015/08/18 13:22:35
not needed?
jsbell
2015/08/18 18:42:43
Done.
| |
| 11 #include "base/callback.h" | |
| 12 #include "base/memory/ref_counted.h" | |
| 13 #include "content/common/content_export.h" | |
|
jkarlin
2015/08/18 13:22:35
not needed?
jsbell
2015/08/18 18:42:43
Done.
| |
| 14 #include "content/public/browser/cache_storage_usage_info.h" | |
| 15 | |
| 16 namespace content { | |
| 17 | |
| 18 // Represents the per-BrowserContext Cache Storage data. | |
| 19 class CacheStorageContext | |
| 20 : public base::RefCountedThreadSafe<CacheStorageContext> { | |
| 21 public: | |
| 22 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.
| |
| 23 usage_info)> GetUsageInfoCallback; | |
| 24 | |
| 25 // Methods used in response to browsing data and quota manager requests. | |
| 26 // Must be called on the IO thread. | |
| 27 virtual void GetAllOriginsInfo(const GetUsageInfoCallback& callback) = 0; | |
| 28 virtual void DeleteForOrigin(const GURL& origin_url) = 0; | |
| 29 | |
| 30 protected: | |
| 31 friend class base::RefCountedThreadSafe<CacheStorageContext>; | |
| 32 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
| |
| 33 }; | |
| 34 | |
| 35 } // namespace content | |
| 36 | |
| 37 #endif // CONTENT_PUBLIC_BROWSER_CACHE_STORAGE_CONTEXT_H_ | |
| OLD | NEW |