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

Unified Diff: components/content_settings/core/browser/stub_content_settings_client.cc

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_content_settings_client.cc
diff --git a/components/content_settings/core/browser/stub_content_settings_client.cc b/components/content_settings/core/browser/stub_content_settings_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2fcec28cd5ba2d1491521812f63d3cb9c8ef6f97
--- /dev/null
+++ b/components/content_settings/core/browser/stub_content_settings_client.cc
@@ -0,0 +1,57 @@
+// 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.
+
+#include "components/content_settings/core/browser/stub_content_settings_client.h"
+
+namespace content_settings {
+
+StubContentSettingsClient::StubContentSettingsClient() {
+}
+
+StubContentSettingsClient::~StubContentSettingsClient() {
+}
+
+void StubContentSettingsClient::OnCookiesRead(
+ const GURL& url,
+ const GURL& first_party_url,
+ const net::CookieList& cookie_list,
+ bool blocked_by_policy) {
+}
+
+void StubContentSettingsClient::OnCookieChanged(
+ const GURL& url,
+ const GURL& first_party_url,
+ const std::string& cookie_line,
+ const net::CookieOptions& options,
+ bool blocked_by_policy) {
+}
+
+void StubContentSettingsClient::OnFileSystemAccessed(const GURL& url,
+ bool blocked_by_policy) {
+}
+
+void StubContentSettingsClient::OnIndexedDBAccessed(
+ const GURL& url,
+ const base::string16& description,
+ bool blocked_by_policy) {
+}
+
+void StubContentSettingsClient::OnLocalStorageAccessed(const GURL& url,
+ bool local,
+ bool blocked_by_policy) {
+}
+
+void StubContentSettingsClient::OnWebDatabaseAccessed(
+ const GURL& url,
+ const base::string16& name,
+ const base::string16& display_name,
+ bool blocked_by_policy) {
+}
+
+const LocalSharedObjectsCounter&
+StubContentSettingsClient::local_shared_objects(AccessType type) const {
+ return counter_;
+}
+
+} // namespace content_settings

Powered by Google App Engine
This is Rietveld 408576698