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

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

Issue 10870013: Disable DOM MutationEvents for platform apps (Closed) Base URL: http://git.chromium.org/chromium/src.git@git-svn
Patch Set: Added test Created 8 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 class ContentSettingsObserver; 21 class ContentSettingsObserver;
22 class ExternalHostBindings; 22 class ExternalHostBindings;
23 class SkBitmap; 23 class SkBitmap;
24 class TranslateHelper; 24 class TranslateHelper;
25 struct ThumbnailScore; 25 struct ThumbnailScore;
26 class WebViewColorOverlay; 26 class WebViewColorOverlay;
27 class WebViewAnimatingOverlay; 27 class WebViewAnimatingOverlay;
28 28
29 namespace extensions { 29 namespace extensions {
30 class Dispatcher; 30 class Dispatcher;
31 class Extension;
31 } 32 }
32 33
33 namespace WebKit { 34 namespace WebKit {
34 class WebView; 35 class WebView;
35 } 36 }
36 37
37 namespace safe_browsing { 38 namespace safe_browsing {
38 class PhishingClassifierDelegate; 39 class PhishingClassifierDelegate;
39 } 40 }
40 41
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int extension_group, 105 int extension_group,
105 int world_id); 106 int world_id);
106 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE; 107 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE;
107 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, 108 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame,
108 bool default_value) OVERRIDE; 109 bool default_value) OVERRIDE;
109 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame, 110 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame,
110 bool default_value) OVERRIDE; 111 bool default_value) OVERRIDE;
111 virtual bool allowWebComponents(const WebKit::WebDocument&, bool) OVERRIDE; 112 virtual bool allowWebComponents(const WebKit::WebDocument&, bool) OVERRIDE;
112 virtual bool allowHTMLNotifications( 113 virtual bool allowHTMLNotifications(
113 const WebKit::WebDocument& document) OVERRIDE; 114 const WebKit::WebDocument& document) OVERRIDE;
115 virtual bool allowMutationEvents(const WebKit::WebDocument&,
116 bool default_value) OVERRIDE;
114 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE; 117 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE;
115 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE; 118 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE;
116 virtual bool allowDisplayingInsecureContent( 119 virtual bool allowDisplayingInsecureContent(
117 WebKit::WebFrame* frame, 120 WebKit::WebFrame* frame,
118 bool allowed_per_settings, 121 bool allowed_per_settings,
119 const WebKit::WebSecurityOrigin& context, 122 const WebKit::WebSecurityOrigin& context,
120 const WebKit::WebURL& url) OVERRIDE; 123 const WebKit::WebURL& url) OVERRIDE;
121 virtual bool allowRunningInsecureContent( 124 virtual bool allowRunningInsecureContent(
122 WebKit::WebFrame* frame, 125 WebKit::WebFrame* frame,
123 bool allowed_per_settings, 126 bool allowed_per_settings,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // frame whose size is image_size is returned. If the image doesn't 187 // frame whose size is image_size is returned. If the image doesn't
185 // have a frame at the specified size, the first is returned. 188 // have a frame at the specified size, the first is returned.
186 bool DownloadFavicon(int id, const GURL& image_url, int image_size); 189 bool DownloadFavicon(int id, const GURL& image_url, int image_size);
187 190
188 // Decodes a data: URL image or returns an empty image in case of failure. 191 // Decodes a data: URL image or returns an empty image in case of failure.
189 SkBitmap ImageFromDataUrl(const GURL&) const; 192 SkBitmap ImageFromDataUrl(const GURL&) const;
190 193
191 // Determines if a host is in the strict security host set. 194 // Determines if a host is in the strict security host set.
192 bool IsStrictSecurityHost(const std::string& host); 195 bool IsStrictSecurityHost(const std::string& host);
193 196
194 // Checks if |origin| correponds to an installed extension that has been 197 // If |origin| corresponds to an installed extension, returns that extension.
195 // granted the |permission|. 198 // Otherwise returns NULL.
196 bool HasExtensionPermission(const WebKit::WebSecurityOrigin& origin, 199 const extensions::Extension* GetExtension(
197 extensions::APIPermission::ID permission) const; 200 const WebKit::WebSecurityOrigin& origin) const;
198 201
199 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. 202 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received.
200 scoped_ptr<WebUIJavaScript> webui_javascript_; 203 scoped_ptr<WebUIJavaScript> webui_javascript_;
201 204
202 // Owned by ChromeContentRendererClient and outlive us. 205 // Owned by ChromeContentRendererClient and outlive us.
203 ChromeRenderProcessObserver* chrome_render_process_observer_; 206 ChromeRenderProcessObserver* chrome_render_process_observer_;
204 extensions::Dispatcher* extension_dispatcher_; 207 extensions::Dispatcher* extension_dispatcher_;
205 208
206 // Have the same lifetime as us. 209 // Have the same lifetime as us.
207 ContentSettingsObserver* content_settings_; 210 ContentSettingsObserver* content_settings_;
(...skipping 29 matching lines...) Expand all
237 // A animating page overlay when visually de-emaphasized. 240 // A animating page overlay when visually de-emaphasized.
238 scoped_ptr<WebViewAnimatingOverlay> dimmed_animating_overlay_; 241 scoped_ptr<WebViewAnimatingOverlay> dimmed_animating_overlay_;
239 242
240 // Used to delay calling CapturePageInfo. 243 // Used to delay calling CapturePageInfo.
241 base::Timer capture_timer_; 244 base::Timer capture_timer_;
242 245
243 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); 246 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver);
244 }; 247 };
245 248
246 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 249 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/platform_app_browsertest.cc ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698