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

Unified Diff: net/reporting/reporting_test_util.h

Issue 2708503002: Reporting: Implement cache. (Closed)
Patch Set: Make requested changes. 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: net/reporting/reporting_test_util.h
diff --git a/net/reporting/reporting_test_util.h b/net/reporting/reporting_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..bb279ebc0505fac6db94987223c961b2a978cdae
--- /dev/null
+++ b/net/reporting/reporting_test_util.h
@@ -0,0 +1,27 @@
+// 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 NET_REPORTING_REPORTING_TEST_UTIL_H_
+#define NET_REPORTING_REPORTING_TEST_UTIL_H_
+
+class GURL;
+
+namespace url {
+class Origin;
+} // namespace url
+
+namespace net {
+
+class ReportingCache;
+struct ReportingClient;
+
+// Finds a particular client (by origin and endpoint) in the cache and returns
+// it (or nullptr if not found).
+const ReportingClient* FindClientInCache(const ReportingCache* cache,
+ const url::Origin& origin,
+ const GURL& endpoint);
+
+} // namespace net
+
+#endif // NET_REPORING_REPORTING_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698