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

Side by Side Diff: net/reporting/reporting_serializer.h

Issue 2751883003: Reporting: Implement serializer. (Closed)
Patch Set: Move after Context CL Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(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_SERIALIZER_H_
6 #define NET_REPORTING_REPORTING_SERIALIZER_H_
7
8 #include "base/macros.h"
9 #include "base/time/time.h"
10 #include "base/values.h"
11 #include "net/base/net_export.h"
12 #include "net/base/network_change_notifier.h"
13
14 namespace net {
15
16 class ReportingContext;
17
18 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.
19 public:
20 static std::unique_ptr<base::Value> SerializeToValue(
21 ReportingContext* context);
22
23 static bool DeserializeFromValue(const base::Value& serialized,
24 ReportingContext* context);
25
26 private:
27 DISALLOW_IMPLICIT_CONSTRUCTORS(ReportingSerializer);
28 };
29
30 } // namespace net
31
32 #endif // NET_REPORTING_REPORTING_SERIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698