Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Side by Side Diff: chrome/renderer/content_settings_observer.h

Issue 7012007: Chrome side of having the WebKit FileSystem API use WebPermissionClient for checking if using fil... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.cc ('k') | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698