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

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

Issue 226093007: Convert Chrome usages of WebFrame to WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void SetContentSettingRules( 43 void SetContentSettingRules(
44 const RendererContentSettingRules* content_setting_rules); 44 const RendererContentSettingRules* content_setting_rules);
45 45
46 bool IsPluginTemporarilyAllowed(const std::string& identifier); 46 bool IsPluginTemporarilyAllowed(const std::string& identifier);
47 47
48 // Sends an IPC notification that the specified content type was blocked. 48 // Sends an IPC notification that the specified content type was blocked.
49 void DidBlockContentType(ContentSettingsType settings_type); 49 void DidBlockContentType(ContentSettingsType settings_type);
50 50
51 // blink::WebPermissionClient implementation. 51 // blink::WebPermissionClient implementation.
52 // TODO(jam): remove all these methods after Blink rolls. 52 // TODO(jam): remove all these methods after Blink rolls.
53 virtual bool allowDatabase(blink::WebFrame* frame, 53 virtual bool allowDatabase(blink::WebLocalFrame* frame,
54 const blink::WebString& name, 54 const blink::WebString& name,
55 const blink::WebString& display_name, 55 const blink::WebString& display_name,
56 unsigned long estimated_size); 56 unsigned long estimated_size);
57 virtual bool allowFileSystem(blink::WebFrame* frame); 57 virtual bool allowFileSystem(blink::WebLocalFrame* frame);
58 virtual bool allowImage(blink::WebFrame* frame, 58 virtual bool allowImage(blink::WebLocalFrame* frame,
59 bool enabled_per_settings, 59 bool enabled_per_settings,
60 const blink::WebURL& image_url); 60 const blink::WebURL& image_url);
61 virtual bool allowIndexedDB(blink::WebFrame* frame, 61 virtual bool allowIndexedDB(blink::WebLocalFrame* frame,
62 const blink::WebString& name, 62 const blink::WebString& name,
63 const blink::WebSecurityOrigin& origin); 63 const blink::WebSecurityOrigin& origin);
64 virtual bool allowPlugins(blink::WebFrame* frame, 64 virtual bool allowPlugins(blink::WebLocalFrame* frame,
65 bool enabled_per_settings); 65 bool enabled_per_settings);
66 virtual bool allowScript(blink::WebFrame* frame, 66 virtual bool allowScript(blink::WebLocalFrame* frame,
67 bool enabled_per_settings); 67 bool enabled_per_settings);
68 virtual bool allowScriptFromSource(blink::WebFrame* frame, 68 virtual bool allowScriptFromSource(blink::WebLocalFrame* frame,
69 bool enabled_per_settings, 69 bool enabled_per_settings,
70 const blink::WebURL& script_url); 70 const blink::WebURL& script_url);
71 virtual bool allowStorage(blink::WebFrame* frame, bool local); 71 virtual bool allowStorage(blink::WebLocalFrame* frame, bool local);
72 virtual bool allowReadFromClipboard(blink::WebFrame* frame, 72 virtual bool allowReadFromClipboard(blink::WebLocalFrame* frame,
73 bool default_value); 73 bool default_value);
74 virtual bool allowWriteToClipboard(blink::WebFrame* frame, 74 virtual bool allowWriteToClipboard(blink::WebLocalFrame* frame,
75 bool default_value); 75 bool default_value);
76 virtual bool allowWebComponents(blink::WebFrame* frame, bool); 76 virtual bool allowWebComponents(blink::WebLocalFrame* frame, bool);
77 virtual bool allowMutationEvents(blink::WebFrame* frame, 77 virtual bool allowMutationEvents(blink::WebLocalFrame* frame,
78 bool default_value); 78 bool default_value);
79 virtual bool allowPushState(blink::WebFrame* frame); 79 virtual bool allowPushState(blink::WebLocalFrame* frame);
80 virtual void didNotAllowPlugins(blink::WebFrame* frame); 80 virtual void didNotAllowPlugins(blink::WebLocalFrame* frame);
81 virtual void didNotAllowScript(blink::WebFrame* frame); 81 virtual void didNotAllowScript(blink::WebLocalFrame* frame);
82 virtual bool allowDisplayingInsecureContent( 82 virtual bool allowDisplayingInsecureContent(
83 blink::WebFrame* frame, 83 blink::WebLocalFrame* frame,
84 bool allowed_per_settings, 84 bool allowed_per_settings,
85 const blink::WebSecurityOrigin& context, 85 const blink::WebSecurityOrigin& context,
86 const blink::WebURL& url); 86 const blink::WebURL& url);
87 virtual bool allowRunningInsecureContent( 87 virtual bool allowRunningInsecureContent(
88 blink::WebFrame* frame, 88 blink::WebLocalFrame* frame,
89 bool allowed_per_settings, 89 bool allowed_per_settings,
90 const blink::WebSecurityOrigin& context, 90 const blink::WebSecurityOrigin& context,
91 const blink::WebURL& url); 91 const blink::WebURL& url);
92 92
93 virtual bool allowDatabase(const blink::WebString& name, 93 virtual bool allowDatabase(const blink::WebString& name,
94 const blink::WebString& display_name, 94 const blink::WebString& display_name,
95 unsigned long estimated_size); 95 unsigned long estimated_size);
96 virtual bool allowFileSystem(); 96 virtual bool allowFileSystem();
97 virtual bool allowImage(bool enabled_per_settings, 97 virtual bool allowImage(bool enabled_per_settings,
98 const blink::WebURL& image_url); 98 const blink::WebURL& image_url);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 std::map<blink::WebFrame*, bool> cached_script_permissions_; 179 std::map<blink::WebFrame*, bool> cached_script_permissions_;
180 180
181 std::set<std::string> temporarily_allowed_plugins_; 181 std::set<std::string> temporarily_allowed_plugins_;
182 bool is_interstitial_page_; 182 bool is_interstitial_page_;
183 bool npapi_plugins_blocked_; 183 bool npapi_plugins_blocked_;
184 184
185 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); 185 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver);
186 }; 186 };
187 187
188 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ 188 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698