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_ |