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

Unified Diff: net/reporting/reporting_header_parser.h

Issue 2751103002: Reporting: Wrap existing classes in context. (Closed)
Patch Set: Move before BrowsingDataRemover, GarbageCollector, and Serializer CLs. 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_header_parser.h
diff --git a/net/reporting/reporting_header_parser.h b/net/reporting/reporting_header_parser.h
index 22fe4f3ac9f752a2a95fed7adb9c443913116bfe..2d7ac6ee2424003aae0d2cf56d69b654e2004c51 100644
--- a/net/reporting/reporting_header_parser.h
+++ b/net/reporting/reporting_header_parser.h
@@ -20,16 +20,11 @@ class Value;
namespace net {
class ReportingCache;
+class ReportingContext;
-// Parses Report-To headers and writes the endpoint configurations to the
-// ReportingCache.
class NET_EXPORT ReportingHeaderParser {
public:
- // Parses the normalized Report-To header value |json_value| sent in response
- // to a request for |url| at |now|, and applies the endpoint configurations
- // to |cache|.
- static void ParseHeader(ReportingCache* cache,
- base::TimeTicks now,
+ static void ParseHeader(ReportingContext* context,
const GURL& url,
const std::string& json_value);

Powered by Google App Engine
This is Rietveld 408576698