Index: chrome/common/extensions/extension.h |
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h |
index e8cdd10690e1012a05dc74cba1ca82006c1fffcc..5116bd39abe1c5fda267840967c1f3bd8071c849 100644 |
--- a/chrome/common/extensions/extension.h |
+++ b/chrome/common/extensions/extension.h |
@@ -199,12 +199,16 @@ class Extension { |
const std::vector<PluginInfo>& plugins() const { return plugins_; } |
const GURL& background_url() const { return background_url_; } |
const std::vector<ToolstripInfo>& toolstrips() const { return toolstrips_; } |
- const HostPermissions& host_permissions() const { |
- return host_permissions_; |
- } |
const std::vector<std::string>& api_permissions() const { |
return api_permissions_; |
} |
+ const HostPermissions& host_permissions() const { |
+ return host_permissions_; |
+ } |
+ |
+ // Returns true if the extension has permission to access the host for the |
+ // specified URL. |
+ bool CanAccessHost(const GURL& url) const; |
// Returns the set of hosts that the extension effectively has access to. This |
// is used in the permissions UI and is a combination of the hosts accessible |