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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void didSerializeDataForFrame( | 62 virtual void didSerializeDataForFrame( |
63 const WebKit::WebURL& frame_url, | 63 const WebKit::WebURL& frame_url, |
64 const WebKit::WebCString& data, | 64 const WebKit::WebCString& data, |
65 PageSerializationStatus status) OVERRIDE; | 65 PageSerializationStatus status) OVERRIDE; |
66 | 66 |
67 // WebKit::WebPermissionClient implementation. | 67 // WebKit::WebPermissionClient implementation. |
68 virtual bool allowDatabase(WebKit::WebFrame* frame, | 68 virtual bool allowDatabase(WebKit::WebFrame* frame, |
69 const WebKit::WebString& name, | 69 const WebKit::WebString& name, |
70 const WebKit::WebString& display_name, | 70 const WebKit::WebString& display_name, |
71 unsigned long estimated_size) OVERRIDE; | 71 unsigned long estimated_size) OVERRIDE; |
| 72 // TODO(jam): add OVERRIDE once WebKit is rolled. |
| 73 virtual bool allowFileSystem(WebKit::WebFrame* frame); |
72 virtual bool allowImages(WebKit::WebFrame* frame, | 74 virtual bool allowImages(WebKit::WebFrame* frame, |
73 bool enabled_per_settings) OVERRIDE; | 75 bool enabled_per_settings) OVERRIDE; |
74 // TODO(jam): add OVERRIDE once WebKit is rolled. | |
75 virtual bool allowIndexedDB(WebKit::WebFrame* frame, | 76 virtual bool allowIndexedDB(WebKit::WebFrame* frame, |
76 const WebKit::WebString& name, | 77 const WebKit::WebString& name, |
77 const WebKit::WebSecurityOrigin& origin); | 78 const WebKit::WebSecurityOrigin& origin) OVERRIDE; |
78 virtual bool allowPlugins(WebKit::WebFrame* frame, | 79 virtual bool allowPlugins(WebKit::WebFrame* frame, |
79 bool enabled_per_settings) OVERRIDE; | 80 bool enabled_per_settings) OVERRIDE; |
80 virtual bool allowScript(WebKit::WebFrame* frame, | 81 virtual bool allowScript(WebKit::WebFrame* frame, |
81 bool enabled_per_settings) OVERRIDE; | 82 bool enabled_per_settings) OVERRIDE; |
82 virtual bool allowScriptExtension(WebKit::WebFrame* frame, | 83 virtual bool allowScriptExtension(WebKit::WebFrame* frame, |
83 const WebKit::WebString& extension_name, | 84 const WebKit::WebString& extension_name, |
84 int extension_group) OVERRIDE; | 85 int extension_group) OVERRIDE; |
85 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE; | 86 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE; |
86 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, | 87 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, |
87 bool default_value) OVERRIDE; | 88 bool default_value) OVERRIDE; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 ScopedRunnableMethodFactory<ChromeRenderViewObserver> | 172 ScopedRunnableMethodFactory<ChromeRenderViewObserver> |
172 page_info_method_factory_; | 173 page_info_method_factory_; |
173 | 174 |
174 // ImageResourceFetchers schedule via DownloadImage. | 175 // ImageResourceFetchers schedule via DownloadImage. |
175 RenderView::ImageResourceFetcherList image_fetchers_; | 176 RenderView::ImageResourceFetcherList image_fetchers_; |
176 | 177 |
177 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 178 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
178 }; | 179 }; |
179 | 180 |
180 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 181 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |