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

Unified Diff: components/password_manager/core/browser/hsts_query.h

Issue 2714543006: Clean Obsolete HTTP Data from the Password Store (Closed)
Patch Set: Raw Cleaner 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 side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/hsts_query.h
diff --git a/components/password_manager/core/browser/hsts_query.h b/components/password_manager/core/browser/hsts_query.h
new file mode 100644
index 0000000000000000000000000000000000000000..59cf7771d1db0779fd6707e6eced10e778162511
--- /dev/null
+++ b/components/password_manager/core/browser/hsts_query.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_HSTS_QUERY_H_
+#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_HSTS_QUERY_H_
+
+#include "base/callback_forward.h"
+#include "base/memory/ref_counted.h"
+#include "net/url_request/url_request_context_getter.h"
+
+class GURL;
+
+namespace password_manager {
+
+using HSTSCallback = base::Callback<void(bool)>;
+
+// Checks asynchronously whether HTTP Strict Transport Security (HSTS) is active
+// for the host of the given origin for a given request context. Notifies
+// |callback| with the result on the calling thread.
+void PostHSTSQueryForHostAndRequestContext(
+ const GURL& origin,
+ const scoped_refptr<net::URLRequestContextGetter>& request_context,
+ const HSTSCallback& callback);
+
+} // namespace password_manager
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_HSTS_QUERY_H_
« no previous file with comments | « components/password_manager/core/browser/BUILD.gn ('k') | components/password_manager/core/browser/hsts_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698