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

Side by Side Diff: components/content_settings/core/browser/content_settings_registry.h

Issue 1320673013: Remove HostContentSettingsMap::IsSettingAllowedForType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-issetting-allowed
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_REGISTRY_H_ 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_REGISTRY_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_REGISTRY_H_ 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/scoped_ptr_map.h" 10 #include "base/containers/scoped_ptr_map.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 ~ContentSettingsRegistry(); 51 ~ContentSettingsRegistry();
52 52
53 void Init(); 53 void Init();
54 54
55 // Register a new content setting. This maps an origin to an ALLOW/ASK/BLOCK 55 // Register a new content setting. This maps an origin to an ALLOW/ASK/BLOCK
56 // value (see the ContentSetting enum). 56 // value (see the ContentSetting enum).
57 void Register(ContentSettingsType type, 57 void Register(ContentSettingsType type,
58 const std::string& name, 58 const std::string& name,
59 ContentSetting initial_default_value, 59 ContentSetting initial_default_value,
60 WebsiteSettingsInfo::SyncStatus sync_status, 60 WebsiteSettingsInfo::SyncStatus sync_status,
61 const std::vector<std::string>& whitelisted_schemes); 61 const std::vector<std::string>& whitelisted_schemes,
62 const std::vector<ContentSetting>& valid_settings);
62 63
63 Map content_settings_info_; 64 Map content_settings_info_;
64 WebsiteSettingsRegistry* website_settings_registry_; 65 WebsiteSettingsRegistry* website_settings_registry_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(ContentSettingsRegistry); 67 DISALLOW_COPY_AND_ASSIGN(ContentSettingsRegistry);
67 }; 68 };
68 69
69 } // namespace content_settings 70 } // namespace content_settings
70 71
71 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_REGISTRY_H_ 72 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698