OLD | NEW |
---|---|
(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_DELEGATE_IMPL_H_ | |
6 #define NET_REPORTING_REPORTING_DELEGATE_IMPL_H_ | |
7 | |
8 #include "base/time/tick_clock.h" | |
9 #include "net/base/net_export.h" | |
10 #include "net/reporting/reporting_delegate.h" | |
11 | |
12 namespace net { | |
13 | |
14 class ReportingCache; | |
15 | |
16 class NET_EXPORT ReportingDelegateImpl : public ReportingDelegate { | |
17 public: | |
18 ReportingDelegateImpl(base::TickClock* clock, ReportingCache* cache); | |
19 | |
20 ~ReportingDelegateImpl() override; | |
21 | |
22 void OnReportGenerated(const GURL& url, | |
23 const std::string& type, | |
24 const std::string& group, | |
25 std::unique_ptr<const base::Value> body) override; | |
26 | |
27 void OnHeaderReceived(const GURL& url, const std::string& value) override; | |
28 | |
29 private: | |
30 void ProcessEndpoint(const GURL& url, const base::Value* json); | |
shivanisha
2017/03/01 21:51:57
Comment to describe the purpose of ProcessEndpoint
Julia Tuttle
2017/03/06 17:57:51
Done.
| |
31 | |
32 base::TickClock* clock_; | |
33 ReportingCache* cache_; | |
34 }; | |
35 | |
36 } // namespace net | |
37 | |
38 #endif // NET_REPORTING_REPORTING_DELEGATE_IMPL_H_ | |
OLD | NEW |