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

Unified Diff: chrome/browser/net/chrome_url_request_context.h

Issue 1383001: Hook up extension apps notification permission, take two (Closed)
Patch Set: pre commit Created 10 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/browser/extensions/extensions_service.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.h
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h
index d483600adf0ae682bceac121174c58a500766e90..ae49a5ca868544d295a63a2ef766221948627fe0 100644
--- a/chrome/browser/net/chrome_url_request_context.h
+++ b/chrome/browser/net/chrome_url_request_context.h
@@ -44,14 +44,14 @@ class ChromeURLRequestContext : public URLRequestContext {
// both threads. There is only a small amount of mutable state in Extension.
struct ExtensionInfo {
ExtensionInfo(const FilePath& path, const std::string& default_locale,
- const Extension::URLPatternList& extent,
+ const ExtensionExtent& extent,
const std::vector<std::string>& api_permissions)
: path(path), default_locale(default_locale),
extent(extent), api_permissions(api_permissions) {
}
FilePath path;
std::string default_locale;
- Extension::URLPatternList extent;
+ ExtensionExtent extent;
std::vector<std::string> api_permissions;
};
@@ -68,11 +68,7 @@ class ChromeURLRequestContext : public URLRequestContext {
std::string GetDefaultLocaleForExtension(const std::string& id);
// Determine whether a URL has access to the specified extension permission.
- // TODO(aa): This will eventually have to take an additional parameter: the
- // ID of a specific extension to check, since |url| could show up in multiple
- // extensions.
bool CheckURLAccessToExtensionPermission(const GURL& url,
- const std::string& application_id,
const char* permission_name);
// Gets the path to the directory user scripts are stored in.
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698