Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: android_webview/browser/net/token_binding_manager.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « android_webview/browser/gl_view_renderer_manager.h ('k') | android_webview/browser/render_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698