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

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

Issue 199074: Don't allow updating tabs to javascript URLs without host (Closed)
Patch Set: Remove unchanged file Created 11 years, 3 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
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

Powered by Google App Engine
This is Rietveld 408576698