| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ANDROID_WEBVIEW_BROWSER_NET_TOKEN_BINDING_MANAGER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_TOKEN_BINDING_MANAGER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_NET_TOKEN_BINDING_MANAGER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_NET_TOKEN_BINDING_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "crypto/ec_private_key.h" | 10 #include "crypto/ec_private_key.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // Deletes the key for the given host. This method simply pushes the work | 50 // Deletes the key for the given host. This method simply pushes the work |
| 51 // to the right thread so see the underlying implementation for more details. | 51 // to the right thread so see the underlying implementation for more details. |
| 52 void DeleteKey(const std::string& host, DeletionCompleteCallback callback); | 52 void DeleteKey(const std::string& host, DeletionCompleteCallback callback); |
| 53 | 53 |
| 54 // Deletes all the keys. This method simply pushes the work | 54 // Deletes all the keys. This method simply pushes the work |
| 55 // to the right thread so see the underlying implementation for more details. | 55 // to the right thread so see the underlying implementation for more details. |
| 56 void DeleteAllKeys(DeletionCompleteCallback callback); | 56 void DeleteAllKeys(DeletionCompleteCallback callback); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 friend struct base::DefaultLazyInstanceTraits<TokenBindingManager>; | 59 friend struct base::LazyInstanceTraitsBase<TokenBindingManager>; |
| 60 | 60 |
| 61 TokenBindingManager(); | 61 TokenBindingManager(); |
| 62 ~TokenBindingManager() {} | 62 ~TokenBindingManager() {} |
| 63 | 63 |
| 64 bool enabled_; | 64 bool enabled_; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace android_webview | 67 } // namespace android_webview |
| 68 | 68 |
| 69 #endif // ANDROID_WEBVIEW_BROWSER_NET_TOKEN_BINDING_MANAGER_H_ | 69 #endif // ANDROID_WEBVIEW_BROWSER_NET_TOKEN_BINDING_MANAGER_H_ |
| OLD | NEW |