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

Unified Diff: chrome/browser/content_settings/local_shared_objects_counter.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
Index: chrome/browser/content_settings/local_shared_objects_counter.h
diff --git a/chrome/browser/content_settings/local_shared_objects_counter.h b/chrome/browser/content_settings/local_shared_objects_counter.h
new file mode 100644
index 0000000000000000000000000000000000000000..06acef6f9d3c961083500258c353a98dbf6cb097
--- /dev/null
+++ b/chrome/browser/content_settings/local_shared_objects_counter.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2014 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 CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_COUNTER_H_
+#define CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_COUNTER_H_
+
+class GURL;
+
+// An interface to retrieve counts of browser data objects.
+class LocalSharedObjectsCounter {
+ public:
+ LocalSharedObjectsCounter() {}
+ virtual ~LocalSharedObjectsCounter() {}
+
+ virtual size_t GetObjectCount() const = 0;
+
+ virtual size_t GetObjectCountForDomain(const GURL& url) const = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsCounter);
+};
+
+#endif // CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_COUNTER_H_

Powered by Google App Engine
This is Rietveld 408576698