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

Side by Side Diff: chrome/renderer/content_settings_observer.h

Issue 1417033010: Adding <keygen> Content Setting (Blink) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_core
Patch Set: Rebase. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_
6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ 6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool allowPlugins(bool enabled_per_settings) override; 71 bool allowPlugins(bool enabled_per_settings) override;
72 bool allowScript(bool enabled_per_settings) override; 72 bool allowScript(bool enabled_per_settings) override;
73 bool allowScriptFromSource(bool enabled_per_settings, 73 bool allowScriptFromSource(bool enabled_per_settings,
74 const blink::WebURL& script_url) override; 74 const blink::WebURL& script_url) override;
75 bool allowStorage(bool local) override; 75 bool allowStorage(bool local) override;
76 bool allowReadFromClipboard(bool default_value) override; 76 bool allowReadFromClipboard(bool default_value) override;
77 bool allowWriteToClipboard(bool default_value) override; 77 bool allowWriteToClipboard(bool default_value) override;
78 bool allowMutationEvents(bool default_value) override; 78 bool allowMutationEvents(bool default_value) override;
79 void didNotAllowPlugins() override; 79 void didNotAllowPlugins() override;
80 void didNotAllowScript() override; 80 void didNotAllowScript() override;
81 void didUseKeygen() override;
81 bool allowDisplayingInsecureContent(bool allowed_per_settings, 82 bool allowDisplayingInsecureContent(bool allowed_per_settings,
82 const blink::WebSecurityOrigin& context, 83 const blink::WebSecurityOrigin& context,
83 const blink::WebURL& url) override; 84 const blink::WebURL& url) override;
84 bool allowRunningInsecureContent(bool allowed_per_settings, 85 bool allowRunningInsecureContent(bool allowed_per_settings,
85 const blink::WebSecurityOrigin& context, 86 const blink::WebSecurityOrigin& context,
86 const blink::WebURL& url) override; 87 const blink::WebURL& url) override;
87 88
88 // This is used for cases when the NPAPI plugins malfunction if used. 89 // This is used for cases when the NPAPI plugins malfunction if used.
89 bool AreNPAPIPluginsBlocked() const; 90 bool AreNPAPIPluginsBlocked() const;
90 91
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // |SetContentSettingRules|. 145 // |SetContentSettingRules|.
145 const RendererContentSettingRules* content_setting_rules_; 146 const RendererContentSettingRules* content_setting_rules_;
146 147
147 // Stores if images, scripts, and plugins have actually been blocked. 148 // Stores if images, scripts, and plugins have actually been blocked.
148 std::map<ContentSettingsType, bool> content_blocked_; 149 std::map<ContentSettingsType, bool> content_blocked_;
149 150
150 // Caches the result of AllowStorage. 151 // Caches the result of AllowStorage.
151 typedef std::pair<GURL, bool> StoragePermissionsKey; 152 typedef std::pair<GURL, bool> StoragePermissionsKey;
152 std::map<StoragePermissionsKey, bool> cached_storage_permissions_; 153 std::map<StoragePermissionsKey, bool> cached_storage_permissions_;
153 154
154 // Caches the result of |AllowScript|. 155 // Caches the result of AllowScript.
155 std::map<blink::WebFrame*, bool> cached_script_permissions_; 156 std::map<blink::WebFrame*, bool> cached_script_permissions_;
156 157
157 std::set<std::string> temporarily_allowed_plugins_; 158 std::set<std::string> temporarily_allowed_plugins_;
158 bool is_interstitial_page_; 159 bool is_interstitial_page_;
159 bool npapi_plugins_blocked_; 160 bool npapi_plugins_blocked_;
160 161
161 int current_request_id_; 162 int current_request_id_;
162 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; 163 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap;
163 PermissionRequestMap permission_requests_; 164 PermissionRequestMap permission_requests_;
164 165
165 // If true, IsWhitelistedForContentSettings will always return true. 166 // If true, IsWhitelistedForContentSettings will always return true.
166 const bool should_whitelist_; 167 const bool should_whitelist_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); 169 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver);
169 }; 170 };
170 171
171 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ 172 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/tab_specific_content_settings.cc ('k') | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698