| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_BROWSER_CONTENT_VERIFIER_DELEGATE_H_ | 5 #ifndef EXTENSIONS_BROWSER_CONTENT_VERIFIER_DELEGATE_H_ |
| 6 #define EXTENSIONS_BROWSER_CONTENT_VERIFIER_DELEGATE_H_ | 6 #define EXTENSIONS_BROWSER_CONTENT_VERIFIER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // This should return the set of file paths for images used within the | 71 // This should return the set of file paths for images used within the |
| 72 // browser process. (These may get transcoded during the install process). | 72 // browser process. (These may get transcoded during the install process). |
| 73 virtual std::set<base::FilePath> GetBrowserImagePaths( | 73 virtual std::set<base::FilePath> GetBrowserImagePaths( |
| 74 const extensions::Extension* extension) = 0; | 74 const extensions::Extension* extension) = 0; |
| 75 | 75 |
| 76 // Called when the content verifier detects that a read of a file inside | 76 // Called when the content verifier detects that a read of a file inside |
| 77 // an extension did not match its expected hash. | 77 // an extension did not match its expected hash. |
| 78 virtual void VerifyFailed(const std::string& extension_id, | 78 virtual void VerifyFailed(const std::string& extension_id, |
| 79 ContentVerifyJob::FailureReason reason) = 0; | 79 ContentVerifyJob::FailureReason reason) = 0; |
| 80 |
| 81 // Called when ExtensionSystem is shutting down. |
| 82 virtual void Shutdown() = 0; |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 } // namespace extensions | 85 } // namespace extensions |
| 83 | 86 |
| 84 #endif // EXTENSIONS_BROWSER_CONTENT_VERIFIER_DELEGATE_H_ | 87 #endif // EXTENSIONS_BROWSER_CONTENT_VERIFIER_DELEGATE_H_ |
| OLD | NEW |