Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / content_settings / local_shared_objects_container.h
index 3629008..62d4755 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "base/memory/ref_counted.h"
 #include "base/memory/scoped_ptr.h"
+#include "components/content_settings/core/browser/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();
+  ~LocalSharedObjectsContainer() override;
+
+  // LocalSharedObjectsCounter:
+  size_t GetObjectCount() const override;
+  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;