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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 unsigned long estimated_size) OVERRIDE; | 75 unsigned long estimated_size) OVERRIDE; |
76 virtual bool allowImages(WebKit::WebFrame* frame, | 76 virtual bool allowImages(WebKit::WebFrame* frame, |
77 bool enabled_per_settings) OVERRIDE; | 77 bool enabled_per_settings) OVERRIDE; |
78 virtual bool allowPlugins(WebKit::WebFrame* frame, | 78 virtual bool allowPlugins(WebKit::WebFrame* frame, |
79 bool enabled_per_settings) OVERRIDE; | 79 bool enabled_per_settings) OVERRIDE; |
80 virtual bool allowScript(WebKit::WebFrame* frame, | 80 virtual bool allowScript(WebKit::WebFrame* frame, |
81 bool enabled_per_settings) OVERRIDE; | 81 bool enabled_per_settings) OVERRIDE; |
82 virtual bool allowScriptExtension(WebKit::WebFrame* frame, | 82 virtual bool allowScriptExtension(WebKit::WebFrame* frame, |
83 const WebKit::WebString& extension_name, | 83 const WebKit::WebString& extension_name, |
84 int extension_group) OVERRIDE; | 84 int extension_group) OVERRIDE; |
| 85 // TODO(jam): add OVERRIDE once WebKit is rolled. |
| 86 virtual bool allowStorage(WebKit::WebFrame* frame, bool local); |
85 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, | 87 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, |
86 bool default_value) OVERRIDE; | 88 bool default_value) OVERRIDE; |
87 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame, | 89 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame, |
88 bool default_value) OVERRIDE; | 90 bool default_value) OVERRIDE; |
89 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE; | 91 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE; |
90 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE; | 92 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE; |
91 | 93 |
92 void OnCaptureSnapshot(); | 94 void OnCaptureSnapshot(); |
93 void OnHandleMessageFromExternalHost(const std::string& message, | 95 void OnHandleMessageFromExternalHost(const std::string& message, |
94 const std::string& origin, | 96 const std::string& origin, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 ScopedRunnableMethodFactory<ChromeRenderViewObserver> | 172 ScopedRunnableMethodFactory<ChromeRenderViewObserver> |
171 page_info_method_factory_; | 173 page_info_method_factory_; |
172 | 174 |
173 // ImageResourceFetchers schedule via DownloadImage. | 175 // ImageResourceFetchers schedule via DownloadImage. |
174 RenderView::ImageResourceFetcherList image_fetchers_; | 176 RenderView::ImageResourceFetcherList image_fetchers_; |
175 | 177 |
176 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 178 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
177 }; | 179 }; |
178 | 180 |
179 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 181 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |