| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "components/keyed_service/core/keyed_service.h" | 16 #include "components/keyed_service/core/keyed_service.h" |
| 17 #include "extensions/browser/management_policy.h" | 17 #include "extensions/browser/management_policy.h" |
| 18 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class BrowserContext; | 21 class BrowserContext; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace net { | |
| 25 class URLRequestContextGetter; | |
| 26 } | |
| 27 | |
| 28 namespace extensions { | 24 namespace extensions { |
| 29 | 25 |
| 30 class ExtensionPrefs; | 26 class ExtensionPrefs; |
| 31 class InstallSigner; | 27 class InstallSigner; |
| 32 struct InstallSignature; | 28 struct InstallSignature; |
| 33 | 29 |
| 34 // This class implements verification that a set of extensions are either from | 30 // This class implements verification that a set of extensions are either from |
| 35 // the webstore or are whitelisted by enterprise policy. The webstore | 31 // the webstore or are whitelisted by enterprise policy. The webstore |
| 36 // verification process works by sending a request to a backend server to get a | 32 // verification process works by sending a request to a backend server to get a |
| 37 // signature proving that a set of extensions are verified. This signature is | 33 // signature proving that a set of extensions are verified. This signature is |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 static bool ShouldBypass(); | 187 static bool ShouldBypass(); |
| 192 | 188 |
| 193 private: | 189 private: |
| 194 bool old_value_; | 190 bool old_value_; |
| 195 DISALLOW_COPY_AND_ASSIGN(ScopedInstallVerifierBypassForTest); | 191 DISALLOW_COPY_AND_ASSIGN(ScopedInstallVerifierBypassForTest); |
| 196 }; | 192 }; |
| 197 | 193 |
| 198 } // namespace extensions | 194 } // namespace extensions |
| 199 | 195 |
| 200 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ | 196 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ |
| OLD | NEW |