OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_HSTS_QUERY_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_HSTS_QUERY_H_ |
| 7 |
| 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "net/url_request/url_request_context_getter.h" |
| 11 |
| 12 class GURL; |
| 13 |
| 14 namespace password_manager { |
| 15 |
| 16 using HSTSCallback = base::Callback<void(bool)>; |
| 17 |
| 18 // Checks asynchronously whether HTTP Strict Transport Security (HSTS) is active |
| 19 // for the host of the given origin for a given request context. Notifies |
| 20 // |callback| with the result on the calling thread. |
| 21 void PostHSTSQueryForHostAndRequestContext( |
| 22 const GURL& origin, |
| 23 const scoped_refptr<net::URLRequestContextGetter>& request_context, |
| 24 const HSTSCallback& callback); |
| 25 |
| 26 } // namespace password_manager |
| 27 |
| 28 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_HSTS_QUERY_H_ |
OLD | NEW |