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

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

Issue 8409006: Take script URLs into account when applying script content settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROME_RENDER_VIEW_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual bool allowImage(WebKit::WebFrame* frame, 83 virtual bool allowImage(WebKit::WebFrame* frame,
84 bool enabled_per_settings, 84 bool enabled_per_settings,
85 const WebKit::WebURL& image_url) OVERRIDE; 85 const WebKit::WebURL& image_url) OVERRIDE;
86 virtual bool allowIndexedDB(WebKit::WebFrame* frame, 86 virtual bool allowIndexedDB(WebKit::WebFrame* frame,
87 const WebKit::WebString& name, 87 const WebKit::WebString& name,
88 const WebKit::WebSecurityOrigin& origin) OVERRIDE; 88 const WebKit::WebSecurityOrigin& origin) OVERRIDE;
89 virtual bool allowPlugins(WebKit::WebFrame* frame, 89 virtual bool allowPlugins(WebKit::WebFrame* frame,
90 bool enabled_per_settings) OVERRIDE; 90 bool enabled_per_settings) OVERRIDE;
91 virtual bool allowScript(WebKit::WebFrame* frame, 91 virtual bool allowScript(WebKit::WebFrame* frame,
92 bool enabled_per_settings) OVERRIDE; 92 bool enabled_per_settings) OVERRIDE;
93 virtual bool allowScriptFromSource(WebKit::WebFrame* frame,
94 bool enabled_per_settings,
95 const WebKit::WebURL& script_url) OVERRIDE;
93 virtual bool allowScriptExtension(WebKit::WebFrame* frame, 96 virtual bool allowScriptExtension(WebKit::WebFrame* frame,
94 const WebKit::WebString& extension_name, 97 const WebKit::WebString& extension_name,
95 int extension_group) OVERRIDE; 98 int extension_group) OVERRIDE;
96 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE; 99 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE;
97 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, 100 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame,
98 bool default_value) OVERRIDE; 101 bool default_value) OVERRIDE;
99 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame, 102 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame,
100 bool default_value) OVERRIDE; 103 bool default_value) OVERRIDE;
101 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE; 104 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE;
102 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE; 105 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> > 220 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> >
218 ImageResourceFetcherList; 221 ImageResourceFetcherList;
219 222
220 // ImageResourceFetchers schedule via DownloadImage. 223 // ImageResourceFetchers schedule via DownloadImage.
221 ImageResourceFetcherList image_fetchers_; 224 ImageResourceFetcherList image_fetchers_;
222 225
223 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); 226 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver);
224 }; 227 };
225 228
226 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 229 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698