Chromium Code Reviews| 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_H_ | |
| 6 #define NET_REPORTING_REPORTING_DELEGATE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/values.h" | |
| 11 #include "url/gurl.h" | |
| 12 | |
| 13 namespace net { | |
| 14 | |
| 15 class NET_EXPORT ReportingDelegate { | |
|
shivanisha
2017/03/01 21:51:56
Comment to describe the purpose of the class.
Julia Tuttle
2017/03/06 17:57:50
Done.
| |
| 16 public: | |
| 17 virtual ~ReportingDelegate() = default; | |
| 18 | |
| 19 virtual void OnReportGenerated(const GURL& url, | |
|
shivanisha
2017/03/01 21:51:56
Comments for both the exposed API including a brie
Julia Tuttle
2017/03/06 17:57:50
Done.
| |
| 20 const std::string& type, | |
| 21 const std::string& group, | |
| 22 std::unique_ptr<const base::Value> body) = 0; | |
| 23 | |
| 24 virtual void OnHeaderReceived(const GURL& url, const std::string& value) = 0; | |
| 25 | |
| 26 protected: | |
| 27 ReportingDelegate() = default; | |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(ReportingDelegate); | |
| 31 }; | |
| 32 | |
| 33 } // namespace net | |
| 34 | |
| 35 #endif // NET_REPORTING_REPORTING_DELEGATE_H_ | |
| OLD | NEW |