| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_API_PLATFORM_KEYS_VERIFY_TRUST_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_VERIFY_TRUST_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_VERIFY_TRUST_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_VERIFY_TRUST_API_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Note: It is safe to delete this object while there are still | 57 // Note: It is safe to delete this object while there are still |
| 58 // outstanding operations. However, if this happens, |callback| | 58 // outstanding operations. However, if this happens, |callback| |
| 59 // will NOT be called. | 59 // will NOT be called. |
| 60 void Verify(std::unique_ptr<Params> params, | 60 void Verify(std::unique_ptr<Params> params, |
| 61 const std::string& extension_id, | 61 const std::string& extension_id, |
| 62 const VerifyCallback& callback); | 62 const VerifyCallback& callback); |
| 63 | 63 |
| 64 // ExtensionRegistryObserver: | 64 // ExtensionRegistryObserver: |
| 65 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 65 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 66 const Extension* extension, | 66 const Extension* extension, |
| 67 UnloadedExtensionInfo::Reason reason) override; | 67 UnloadedExtensionReason reason) override; |
| 68 | 68 |
| 69 // BrowserContextKeyedAPI: | 69 // BrowserContextKeyedAPI: |
| 70 static BrowserContextKeyedAPIFactory<VerifyTrustAPI>* GetFactoryInstance(); | 70 static BrowserContextKeyedAPIFactory<VerifyTrustAPI>* GetFactoryInstance(); |
| 71 | 71 |
| 72 protected: | 72 protected: |
| 73 static const bool kServiceRedirectedInIncognito = true; | 73 static const bool kServiceRedirectedInIncognito = true; |
| 74 static const bool kServiceIsCreatedWithBrowserContext = false; | 74 static const bool kServiceIsCreatedWithBrowserContext = false; |
| 75 static const bool kServiceIsNULLWhileTesting = true; | 75 static const bool kServiceIsNULLWhileTesting = true; |
| 76 | 76 |
| 77 private: | 77 private: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 105 DISALLOW_COPY_AND_ASSIGN(VerifyTrustAPI); | 105 DISALLOW_COPY_AND_ASSIGN(VerifyTrustAPI); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 template <> | 108 template <> |
| 109 void BrowserContextKeyedAPIFactory< | 109 void BrowserContextKeyedAPIFactory< |
| 110 VerifyTrustAPI>::DeclareFactoryDependencies(); | 110 VerifyTrustAPI>::DeclareFactoryDependencies(); |
| 111 | 111 |
| 112 } // namespace extensions | 112 } // namespace extensions |
| 113 | 113 |
| 114 #endif // CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_VERIFY_TRUST_API_H_ | 114 #endif // CHROME_BROWSER_EXTENSIONS_API_PLATFORM_KEYS_VERIFY_TRUST_API_H_ |
| OLD | NEW |