Index: chrome/common/extensions/extension.h |
=================================================================== |
--- chrome/common/extensions/extension.h (revision 113054) |
+++ chrome/common/extensions/extension.h (working copy) |
@@ -13,6 +13,7 @@ |
#include "base/file_path.h" |
#include "base/gtest_prod_util.h" |
+#include "base/hash_tables.h" |
#include "base/memory/linked_ptr.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
@@ -319,6 +320,9 @@ |
return GetResourceURL(url(), relative_path); |
} |
+ // Returns true if the specified resource is web accessible. |
+ bool CanWebAccessResource(const std::string& relative_path) const; |
Aaron Boodman
2011/12/08 00:37:38
I think the name IsResourceWebAccessible() would b
Cris Neckar
2011/12/09 00:13:06
Done.
|
+ |
// Returns an extension resource object. |relative_path| should be UTF8 |
// encoded. |
ExtensionResource GetResource(const std::string& relative_path) const; |
@@ -790,6 +794,9 @@ |
// Optional list of input components and associated properties. |
std::vector<InputComponentInfo> input_components_; |
+ // Optional list of web accessible extension resources. |
+ base::hash_set<std::string> web_accessible_resources_; |
+ |
// Optional URL to a master page of which a single instance should be always |
// loaded in the background. |
GURL background_url_; |