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

Unified Diff: extensions/browser/content_verifier_delegate.h

Issue 288273004: A bunch of remaining parts of extension content verification (Reland) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser test Created 6 years, 7 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/content_verifier.cc ('k') | extensions/browser/content_verify_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/content_verifier_delegate.h
diff --git a/extensions/browser/content_verifier_delegate.h b/extensions/browser/content_verifier_delegate.h
index c702a2808cf32debbc24c8756696b607247da02c..a6b909f43f40958718f872efcfaee2e0e13decbd 100644
--- a/extensions/browser/content_verifier_delegate.h
+++ b/extensions/browser/content_verifier_delegate.h
@@ -5,9 +5,12 @@
#ifndef EXTENSIONS_BROWSER_CONTENT_VERIFIER_DELEGATE_H_
#define EXTENSIONS_BROWSER_CONTENT_VERIFIER_DELEGATE_H_
+#include <set>
+
#include "url/gurl.h"
namespace base {
+class FilePath;
class Version;
}
@@ -46,6 +49,11 @@ class ContentVerifierDelegate {
virtual GURL GetSignatureFetchUrl(const std::string& extension_id,
const base::Version& version) = 0;
+ // This should return the set of file paths for images used within the
+ // browser process. (These may get transcoded during the install process).
+ virtual std::set<base::FilePath> GetBrowserImagePaths(
+ const extensions::Extension* extension) = 0;
+
// Called when the content verifier detects that a read of a file inside
// an extension did not match its expected hash.
virtual void VerifyFailed(const std::string& extension_id) = 0;
« no previous file with comments | « extensions/browser/content_verifier.cc ('k') | extensions/browser/content_verify_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698