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

Unified Diff: extensions/browser/content_hash_fetcher.h

Issue 2336403002: Fix extension content verification out-of-band hash fetching (Closed)
Patch Set: review feedback Created 4 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
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/content_hash_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/content_hash_fetcher.h
diff --git a/extensions/browser/content_hash_fetcher.h b/extensions/browser/content_hash_fetcher.h
index f6e243876d1bee92b013e04645da86965b3580a8..a38f75ddd5fb452fa9e0251699bbcd8a70d1ea5e 100644
--- a/extensions/browser/content_hash_fetcher.h
+++ b/extensions/browser/content_hash_fetcher.h
@@ -8,6 +8,7 @@
#include <map>
#include <set>
#include <string>
+#include <utility>
#include "base/callback.h"
#include "base/files/file_path.h"
@@ -15,8 +16,8 @@
#include "base/memory/weak_ptr.h"
#include "extensions/common/extension_id.h"
-namespace content {
-class BrowserContext;
+namespace net {
+class URLRequestContextGetter;
}
namespace extensions {
@@ -45,7 +46,7 @@ class ContentHashFetcher {
// The consumer of this class needs to ensure that context and delegate
// outlive this object.
- ContentHashFetcher(content::BrowserContext* context,
+ ContentHashFetcher(net::URLRequestContextGetter* context_getter,
ContentVerifierDelegate* delegate,
const FetchCallback& callback);
virtual ~ContentHashFetcher();
@@ -63,7 +64,7 @@ class ContentHashFetcher {
// Callback for when a job getting content hashes has completed.
void JobFinished(ContentHashFetcherJob* job);
- content::BrowserContext* context_;
+ net::URLRequestContextGetter* context_getter_;
ContentVerifierDelegate* delegate_;
FetchCallback fetch_callback_;
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/content_hash_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698