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

Unified Diff: chrome/browser/content_settings/local_shared_objects_container.h

Issue 588583002: LocalSharedObjectsContainer: Separate object counting in an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebased Created 6 years, 3 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 | chrome/browser/content_settings/local_shared_objects_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/local_shared_objects_container.h
diff --git a/chrome/browser/content_settings/local_shared_objects_container.h b/chrome/browser/content_settings/local_shared_objects_container.h
index 36290084be993be518ea842375374c96d8677445..683ddbfa74e704670586bf30467aa861100a5be9 100644
--- a/chrome/browser/content_settings/local_shared_objects_container.h
+++ b/chrome/browser/content_settings/local_shared_objects_container.h
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/content_settings/local_shared_objects_counter.h"
class CannedBrowsingDataAppCacheHelper;
class CannedBrowsingDataChannelIDHelper;
@@ -17,23 +18,20 @@ class CannedBrowsingDataIndexedDBHelper;
class CannedBrowsingDataLocalStorageHelper;
class CannedBrowsingDataServiceWorkerHelper;
class CookiesTreeModel;
-class GURL;
class Profile;
-class LocalSharedObjectsContainer {
+class LocalSharedObjectsContainer : public LocalSharedObjectsCounter {
public:
explicit LocalSharedObjectsContainer(Profile* profile);
- ~LocalSharedObjectsContainer();
+ virtual ~LocalSharedObjectsContainer();
+
+ // LocalSharedObjectsCounter:
+ virtual size_t GetObjectCount() const OVERRIDE;
+ virtual size_t GetObjectCountForDomain(const GURL& url) const OVERRIDE;
// Empties the container.
void Reset();
- // Returns the number of objects stored in the container.
- size_t GetObjectCount() const;
-
- // Returns the number of objects for the given |origin|.
- size_t GetObjectCountForDomain(const GURL& url) const;
-
// Creates a new CookiesTreeModel for all objects in the container,
// copying each of them.
scoped_ptr<CookiesTreeModel> CreateCookiesTreeModel() const;
« no previous file with comments | « no previous file | chrome/browser/content_settings/local_shared_objects_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698