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

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

Issue 2769083005: Reporting: Set up in ProfileImplIOData. (Closed)
Patch Set: rebase Created 3 years, 7 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_REPORTING_REPORTING_PERSISTER_H_ 5 #ifndef NET_REPORTING_REPORTING_PERSISTER_H_
6 #define NET_REPORTING_REPORTING_PERSISTER_H_ 6 #define NET_REPORTING_REPORTING_PERSISTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h"
10 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
11 12
12 namespace net { 13 namespace net {
13 14
14 class ReportingContext; 15 class ReportingContext;
15 16
16 // Will persist the state of the Reporting system to (reasonably) stable 17 // Will persist the state of the Reporting system to (reasonably) stable
17 // storage using an as-yet-unwritten persistence mechanism within //net. 18 // storage using an as-yet-unwritten persistence mechanism within //net.
18 class NET_EXPORT ReportingPersister { 19 class NET_EXPORT ReportingPersister {
19 public: 20 public:
20 // Creates a ReportingPersister. |context| must outlive the persister. 21 // Creates a ReportingPersister. |context| must outlive the persister.
21 static std::unique_ptr<ReportingPersister> Create(ReportingContext* context); 22 static std::unique_ptr<ReportingPersister> Create(ReportingContext* context);
22 23
23 virtual ~ReportingPersister(); 24 virtual ~ReportingPersister();
24 }; 25 };
25 26
26 } // namespace net 27 } // namespace net
27 28
28 #endif // NET_REPORTING_REPORTING_PERSISTER_H_ 29 #endif // NET_REPORTING_REPORTING_PERSISTER_H_
OLDNEW
« no previous file with comments | « net/reporting/reporting_garbage_collector.cc ('k') | net/reporting/reporting_persister_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698