Chromium Code Reviews| Index: extensions/browser/content_verifier.h |
| diff --git a/extensions/browser/content_verifier.h b/extensions/browser/content_verifier.h |
| index ffb6d065ec6a5fa4fe9a0b12dbcb2dfe63e55b21..f7c543277f9b51732fcbb4cb5f2e7f44b3e3a267 100644 |
| --- a/extensions/browser/content_verifier.h |
| +++ b/extensions/browser/content_verifier.h |
| @@ -30,6 +30,7 @@ namespace extensions { |
| class Extension; |
| class ContentHashFetcher; |
| class ContentVerifierIOData; |
| +class ManagementPolicy; |
| // Used for managing overall content verification - both fetching content |
| // hashes as needed, and supplying job objects to verify file contents as they |
| @@ -42,6 +43,11 @@ class ContentVerifier : public base::RefCountedThreadSafe<ContentVerifier>, |
| virtual void OnFetchComplete(const std::string& extension_id, |
| bool success) = 0; |
| }; |
| + // Returns true if content verifier should repair the extension (|id|) if it |
| + // became courrpted. |
| + // Note that this method doesn't check whether |id| is corrupted or not. |
| + static bool ShouldRepairIfCorrupted(const ManagementPolicy* management_policy, |
| + const Extension* id); |
|
Devlin
2017/04/06 21:01:32
\n
lazyboy
2017/04/06 22:32:56
Done.
|
| static void SetObserverForTests(TestObserver* observer); |
| ContentVerifier(content::BrowserContext* context, |