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

Unified Diff: components/content_settings/core/browser/stub_local_shared_objects_counter.h

Issue 640753002: Introduce ContentSettingsClient interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@384873_move_interface_to_component
Patch Set: Errors fixed Created 6 years, 2 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: 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_

Powered by Google App Engine
This is Rietveld 408576698