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

Unified Diff: chrome/renderer/extensions/dispatcher.h

Issue 16625012: Remove ExtensionURLInfo, make security decisions in render process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address feedback Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/extensions/app_bindings.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/dispatcher.h
diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h
index a3413690b796763b56abc842855ea4415869a0b8..b43067d0d16b0a83f4205010dc13729f8a22728d 100644
--- a/chrome/renderer/extensions/dispatcher.h
+++ b/chrome/renderer/extensions/dispatcher.h
@@ -31,6 +31,7 @@ struct ExtensionMsg_Loaded_Params;
namespace WebKit {
class WebFrame;
+class WebSecurityOrigin;
}
namespace base {
@@ -230,10 +231,14 @@ class Dispatcher : public content::RenderProcessObserver {
// are not in the same origin).
bool IsWithinPlatformApp(const WebKit::WebFrame* frame);
+ bool IsSandboxedPage(const GURL& url) const;
+
// Returns the Feature::Context type of context for a JavaScript context.
- Feature::Context ClassifyJavaScriptContext(const std::string& extension_id,
- int extension_group,
- const ExtensionURLInfo& url_info);
+ Feature::Context ClassifyJavaScriptContext(
+ const std::string& extension_id,
+ int extension_group,
+ const GURL& url,
+ const WebKit::WebSecurityOrigin& origin);
// Gets |field| from |object| or creates it as an empty object if it doesn't
// exist.
« no previous file with comments | « chrome/renderer/extensions/app_bindings.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698