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

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

Issue 11821009: move 'web_accessible_resources' parsing out of Extension class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_parse
Patch Set: patch rebased Created 7 years, 11 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_tests_unit.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 2b3fa62d17b10f33f07005bad023bf00ad04cc12..dd20aaad02ce35f8b4f95aaad060052ead7f1c61 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -367,9 +367,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
bool ResourceMatches(const URLPatternSet& pattern_set,
const std::string& resource) const;
- // Returns true if the specified resource is web accessible.
- bool IsResourceWebAccessible(const std::string& relative_path) const;
-
// Returns true if the specified page is sandboxed (served in a unique
// origin).
bool IsSandboxedPage(const std::string& relative_path) const;
@@ -379,9 +376,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
std::string GetResourceContentSecurityPolicy(const std::string& relative_path)
const;
- // Returns true when 'web_accessible_resources' are defined for the extension.
- bool HasWebAccessibleResources() const;
-
// Returns an extension resource object. |relative_path| should be UTF8
// encoded.
ExtensionResource GetResource(const std::string& relative_path) const;
@@ -839,7 +833,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
bool LoadCommands(string16* error);
bool LoadPlugins(string16* error);
bool LoadNaClModules(string16* error);
- bool LoadWebAccessibleResources(string16* error);
bool LoadSandboxedPages(string16* error);
// Must be called after LoadPlugins().
bool LoadRequirements(string16* error);
@@ -1042,9 +1035,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
scoped_ptr<extensions::Command> script_badge_command_;
extensions::CommandMap named_commands_;
- // Optional list of web accessible extension resources.
- URLPatternSet web_accessible_resources_;
-
// Optional list of extension pages that are sandboxed (served from a unique
// origin with a different Content Security Policy).
URLPatternSet sandboxed_pages_;
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698