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

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

Issue 8872053: Add world_id parameter to ExtensionDispatcher::AllowScriptExecution(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 9 years 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
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual bool allowPlugins(WebKit::WebFrame* frame, 89 virtual bool allowPlugins(WebKit::WebFrame* frame,
90 bool enabled_per_settings) OVERRIDE; 90 bool enabled_per_settings) OVERRIDE;
91 virtual bool allowScript(WebKit::WebFrame* frame, 91 virtual bool allowScript(WebKit::WebFrame* frame,
92 bool enabled_per_settings) OVERRIDE; 92 bool enabled_per_settings) OVERRIDE;
93 virtual bool allowScriptFromSource(WebKit::WebFrame* frame, 93 virtual bool allowScriptFromSource(WebKit::WebFrame* frame,
94 bool enabled_per_settings, 94 bool enabled_per_settings,
95 const WebKit::WebURL& script_url) OVERRIDE; 95 const WebKit::WebURL& script_url) OVERRIDE;
96 virtual bool allowScriptExtension(WebKit::WebFrame* frame, 96 virtual bool allowScriptExtension(WebKit::WebFrame* frame,
97 const WebKit::WebString& extension_name, 97 const WebKit::WebString& extension_name,
98 int extension_group) OVERRIDE; 98 int extension_group) OVERRIDE;
99 virtual bool allowScriptExtension(WebKit::WebFrame* frame,
100 const WebKit::WebString& extension_name,
101 int extension_group,
102 int world_id);
99 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE; 103 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE;
100 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, 104 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame,
101 bool default_value) OVERRIDE; 105 bool default_value) OVERRIDE;
102 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame, 106 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame,
103 bool default_value) OVERRIDE; 107 bool default_value) OVERRIDE;
104 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE; 108 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE;
105 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE; 109 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE;
106 virtual bool allowDisplayingInsecureContent( 110 virtual bool allowDisplayingInsecureContent(
107 WebKit::WebFrame* frame, 111 WebKit::WebFrame* frame,
108 bool allowed_per_settings, 112 bool allowed_per_settings,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // ImageResourceFetchers schedule via DownloadImage. 228 // ImageResourceFetchers schedule via DownloadImage.
225 ImageResourceFetcherList image_fetchers_; 229 ImageResourceFetcherList image_fetchers_;
226 230
227 // A color page overlay when visually de-emaphasized. 231 // A color page overlay when visually de-emaphasized.
228 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; 232 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_;
229 233
230 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); 234 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver);
231 }; 235 };
232 236
233 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 237 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698