OLD | NEW |
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual bool allowImage(WebKit::WebFrame* frame, | 81 virtual bool allowImage(WebKit::WebFrame* frame, |
82 bool enabled_per_settings, | 82 bool enabled_per_settings, |
83 const WebKit::WebURL& image_url) OVERRIDE; | 83 const WebKit::WebURL& image_url) OVERRIDE; |
84 virtual bool allowIndexedDB(WebKit::WebFrame* frame, | 84 virtual bool allowIndexedDB(WebKit::WebFrame* frame, |
85 const WebKit::WebString& name, | 85 const WebKit::WebString& name, |
86 const WebKit::WebSecurityOrigin& origin) OVERRIDE; | 86 const WebKit::WebSecurityOrigin& origin) OVERRIDE; |
87 virtual bool allowPlugins(WebKit::WebFrame* frame, | 87 virtual bool allowPlugins(WebKit::WebFrame* frame, |
88 bool enabled_per_settings) OVERRIDE; | 88 bool enabled_per_settings) OVERRIDE; |
89 virtual bool allowScript(WebKit::WebFrame* frame, | 89 virtual bool allowScript(WebKit::WebFrame* frame, |
90 bool enabled_per_settings) OVERRIDE; | 90 bool enabled_per_settings) OVERRIDE; |
| 91 virtual bool allowScriptFromSource(WebKit::WebFrame* frame, |
| 92 bool enabled_per_settings, |
| 93 const WebKit::WebURL& script_url) OVERRIDE; |
91 virtual bool allowScriptExtension(WebKit::WebFrame* frame, | 94 virtual bool allowScriptExtension(WebKit::WebFrame* frame, |
92 const WebKit::WebString& extension_name, | 95 const WebKit::WebString& extension_name, |
93 int extension_group) OVERRIDE; | 96 int extension_group) OVERRIDE; |
94 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE; | 97 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE; |
95 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, | 98 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, |
96 bool default_value) OVERRIDE; | 99 bool default_value) OVERRIDE; |
97 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame, | 100 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame, |
98 bool default_value) OVERRIDE; | 101 bool default_value) OVERRIDE; |
99 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE; | 102 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE; |
100 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE; | 103 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> > | 218 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> > |
216 ImageResourceFetcherList; | 219 ImageResourceFetcherList; |
217 | 220 |
218 // ImageResourceFetchers schedule via DownloadImage. | 221 // ImageResourceFetchers schedule via DownloadImage. |
219 ImageResourceFetcherList image_fetchers_; | 222 ImageResourceFetcherList image_fetchers_; |
220 | 223 |
221 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 224 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
222 }; | 225 }; |
223 | 226 |
224 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 227 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |