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