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

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

Issue 255047: Ensure ChromeURLRequestContext finds out first about extension loading (Closed)
Patch Set: cr changes 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/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 9eb3c90d6ccab5318bc6b592159d28bc1ecba950..892593b9a5eaf3adfa96dcb6be0a648cc4fe2af2 100644
--- a/chrome/browser/net/chrome_url_request_context.h
+++ b/chrome/browser/net/chrome_url_request_context.h
@@ -83,6 +83,12 @@ class ChromeURLRequestContext : public URLRequestContext,
// Gets the Privacy Blacklist, if any for this context.
const Blacklist* blacklist() const { return blacklist_; }
+ // Callback for when new extensions are loaded.
+ void OnNewExtensions(const std::string& id, const FilePath& path);
+
+ // Callback for when an extension is unloaded.
+ void OnUnloadedExtension(const std::string& id);
+
protected:
// Private constructors, use the static factory methods instead. This is
// expected to be called on the UI thread.
@@ -111,12 +117,6 @@ class ChromeURLRequestContext : public URLRequestContext,
// Callback for when the default charset changes.
void OnDefaultCharsetChange(const std::string& default_charset);
- // Callback for when new extensions are loaded.
- void OnNewExtensions(ExtensionPaths* new_paths);
-
- // Callback for when an extension is unloaded.
- void OnUnloadedExtension(const std::string& id);
-
// Destructor.
virtual ~ChromeURLRequestContext();

Powered by Google App Engine
This is Rietveld 408576698