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

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

Issue 2628883008: Add a supervised user setting to allow all cookies. (Closed)
Patch Set: . Created 3 years, 11 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/content_settings_binary_value_map.h
diff --git a/components/content_settings/core/browser/content_settings_binary_value_map.h b/components/content_settings/core/browser/content_settings_binary_value_map.h
deleted file mode 100644
index dbce8982bc18fe55cbff25168c1a57c401363f59..0000000000000000000000000000000000000000
--- a/components/content_settings/core/browser/content_settings_binary_value_map.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2015 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_CONTENT_SETTINGS_BINARY_VALUE_MAP_H_
-#define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_BINARY_VALUE_MAP_H_
-
-#include <map>
-
-#include "components/content_settings/core/browser/content_settings_provider.h"
-#include "components/content_settings/core/common/content_settings_types.h"
-
-namespace base {
-class AutoLock;
-} // namespace base
-
-namespace content_settings {
-
-class RuleIterator;
-
-// A simplified value map that can be used to disable or enable the entire
-// Content Setting. The default behaviour is enabling the Content Setting if
-// it is not set explicitly.
-class BinaryValueMap {
- public:
- BinaryValueMap();
- ~BinaryValueMap();
-
- // Returns nullptr to indicate the RuleIterator is empty.
- std::unique_ptr<RuleIterator> GetRuleIterator(
- ContentSettingsType content_type,
- const ResourceIdentifier& resource_identifier,
- std::unique_ptr<base::AutoLock> lock) const;
- void SetContentSettingDisabled(ContentSettingsType content_type,
- bool disabled);
- bool IsContentSettingEnabled(ContentSettingsType content_type) const;
-
- private:
- std::map<ContentSettingsType, bool> is_enabled_;
-};
-
-} // namespace content_settings
-
-#endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_BINARY_VALUE_MAP_H_

Powered by Google App Engine
This is Rietveld 408576698