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

Unified Diff: chrome/common/extensions/csp_handler.h

Issue 12886023: Remove SandboxedPages and SandboxedCSP from Extension Class (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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/chrome_common.gypi ('k') | chrome/common/extensions/csp_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/csp_handler.h
diff --git a/chrome/common/extensions/csp_handler.h b/chrome/common/extensions/csp_handler.h
index cb32c3d536f76fb3b739a97a6b36f2b8e27e1e0c..210b82cc9ee04ad746de3dac51f8d002545225fe 100644
--- a/chrome/common/extensions/csp_handler.h
+++ b/chrome/common/extensions/csp_handler.h
@@ -24,6 +24,12 @@ struct CSPInfo : public Extension::ManifestData {
static const std::string& GetContentSecurityPolicy(
const Extension* extension);
+
+ // Returns the Content Security Policy that the specified resource should be
+ // served with.
+ static const std::string& GetResourceContentSecurityPolicy(
+ const Extension* extension,
+ const std::string& relative_path);
};
// Parses "content_security_policy" and "app.content_security_policy" keys.
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/csp_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698