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 NET_REPORTING_REPORTING_TEST_UTIL_H_ |
| 6 #define NET_REPORTING_REPORTING_TEST_UTIL_H_ |
| 7 |
| 8 #include "net/reporting/reporting_cache.h" |
| 9 #include "url/gurl.h" |
| 10 #include "url/origin.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 // Finds a particular client (by origin and endpoint) in the cache and returns |
| 15 // it (or nullptr if not found). |
| 16 const ReportingCache::Client* FindClientInCache(const ReportingCache* cache, |
| 17 const url::Origin& origin, |
| 18 const GURL& endpoint); |
| 19 |
| 20 } // namespace net |
| 21 |
| 22 #endif // NET_REPORING_REPORTING_TEST_UTIL_H_ |
OLD | NEW |