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