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

Unified Diff: net/reporting/reporting_serializer.h

Issue 2751883003: Reporting: Implement serializer. (Closed)
Patch Set: Move after Context CL 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_serializer.h
diff --git a/net/reporting/reporting_serializer.h b/net/reporting/reporting_serializer.h
new file mode 100644
index 0000000000000000000000000000000000000000..3561401a0e866abfe41883e578374a49a0b7f44b
--- /dev/null
+++ b/net/reporting/reporting_serializer.h
@@ -0,0 +1,32 @@
+// 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_SERIALIZER_H_
+#define NET_REPORTING_REPORTING_SERIALIZER_H_
+
+#include "base/macros.h"
+#include "base/time/time.h"
+#include "base/values.h"
+#include "net/base/net_export.h"
+#include "net/base/network_change_notifier.h"
+
+namespace net {
+
+class ReportingContext;
+
+class NET_EXPORT ReportingSerializer {
shivanisha 2017/04/05 18:47:31 Comment describing the overall purpose of the clas
Julia Tuttle 2017/04/06 20:20:55 Done.
+ public:
+ static std::unique_ptr<base::Value> SerializeToValue(
+ ReportingContext* context);
+
+ static bool DeserializeFromValue(const base::Value& serialized,
+ ReportingContext* context);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ReportingSerializer);
+};
+
+} // namespace net
+
+#endif // NET_REPORTING_REPORTING_SERIALIZER_H_

Powered by Google App Engine
This is Rietveld 408576698