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_CONTENT_SETTINGS_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 // resource that was blocked (the plugin path in the case of plugins), | 38 // resource that was blocked (the plugin path in the case of plugins), |
39 // otherwise it's the empty string. | 39 // otherwise it's the empty string. |
40 void DidBlockContentType(ContentSettingsType settings_type, | 40 void DidBlockContentType(ContentSettingsType settings_type, |
41 const std::string& resource_identifier); | 41 const std::string& resource_identifier); |
42 | 42 |
43 // These correspond to WebKit::WebPermissionClient methods. | 43 // These correspond to WebKit::WebPermissionClient methods. |
44 bool AllowDatabase(WebKit::WebFrame* frame, | 44 bool AllowDatabase(WebKit::WebFrame* frame, |
45 const WebKit::WebString& name, | 45 const WebKit::WebString& name, |
46 const WebKit::WebString& display_name, | 46 const WebKit::WebString& display_name, |
47 unsigned long estimated_size); | 47 unsigned long estimated_size); |
| 48 bool AllowFileSystem(WebKit::WebFrame* frame); |
48 bool AllowImages(WebKit::WebFrame* frame, bool enabled_per_settings); | 49 bool AllowImages(WebKit::WebFrame* frame, bool enabled_per_settings); |
49 bool AllowIndexedDB(WebKit::WebFrame* frame, | 50 bool AllowIndexedDB(WebKit::WebFrame* frame, |
50 const WebKit::WebString& name, | 51 const WebKit::WebString& name, |
51 const WebKit::WebSecurityOrigin& origin); | 52 const WebKit::WebSecurityOrigin& origin); |
52 bool AllowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); | 53 bool AllowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); |
53 bool AllowScript(WebKit::WebFrame* frame, bool enabled_per_settings); | 54 bool AllowScript(WebKit::WebFrame* frame, bool enabled_per_settings); |
54 bool AllowStorage(WebKit::WebFrame* frame, bool local); | 55 bool AllowStorage(WebKit::WebFrame* frame, bool local); |
55 void DidNotAllowPlugins(WebKit::WebFrame* frame); | 56 void DidNotAllowPlugins(WebKit::WebFrame* frame); |
56 void DidNotAllowScript(WebKit::WebFrame* frame); | 57 void DidNotAllowScript(WebKit::WebFrame* frame); |
57 | 58 |
(...skipping 21 matching lines...) Expand all Loading... |
79 // Stores if loading of images, scripts, and plugins is allowed. | 80 // Stores if loading of images, scripts, and plugins is allowed. |
80 ContentSettings current_content_settings_; | 81 ContentSettings current_content_settings_; |
81 | 82 |
82 // Stores if images, scripts, and plugins have actually been blocked. | 83 // Stores if images, scripts, and plugins have actually been blocked. |
83 bool content_blocked_[CONTENT_SETTINGS_NUM_TYPES]; | 84 bool content_blocked_[CONTENT_SETTINGS_NUM_TYPES]; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 86 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
86 }; | 87 }; |
87 | 88 |
88 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 89 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
OLD | NEW |