Index: components/content_settings/core/browser/stub_local_shared_objects_counter.h |
diff --git a/components/content_settings/core/browser/stub_local_shared_objects_counter.h b/components/content_settings/core/browser/stub_local_shared_objects_counter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fb022b8a9f307b644d2c5f50bd671b14487b968e |
--- /dev/null |
+++ b/components/content_settings/core/browser/stub_local_shared_objects_counter.h |
@@ -0,0 +1,29 @@ |
+// 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 COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_STUB_LOCAL_SHARED_OBJECT_COUNTER_H_ |
+#define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_STUB_LOCAL_SHARED_OBJECT_COUNTER_H_ |
+ |
+#include "components/content_settings/core/browser/local_shared_objects_counter.h" |
+ |
+namespace content_settings { |
+ |
+// For test code only, to avoid the need to stub unneeded pure virtual methods |
+// of LocalSharedObjectsCounter . |
+class StubLocalSharedObjectsCounter : public LocalSharedObjectsCounter { |
+ public: |
+ StubLocalSharedObjectsCounter(); |
+ virtual ~StubLocalSharedObjectsCounter(); |
+ |
+ virtual size_t GetObjectCount() const override; |
+ |
+ virtual size_t GetObjectCountForDomain(const GURL& url) const override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(StubLocalSharedObjectsCounter); |
+}; |
+ |
+} // namespace content_settings |
+ |
+#endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_STUB_LOCAL_SHARED_OBJECT_COUNTER_H_ |