Chromium Code Reviews| Index: chrome/browser/safe_browsing/permission_reporter.h |
| diff --git a/chrome/browser/safe_browsing/permission_reporter.h b/chrome/browser/safe_browsing/permission_reporter.h |
| index a226dcf330d1b008429fa653b5fd10baf550a485..5fa62d58c054bd882cc85f8b6f05eaa1a5464c00 100644 |
| --- a/chrome/browser/safe_browsing/permission_reporter.h |
| +++ b/chrome/browser/safe_browsing/permission_reporter.h |
| @@ -11,6 +11,7 @@ |
| #include "url/gurl.h" |
| namespace net { |
| +class ReportSender; |
| class URLRequestContext; |
| } // namespace net |
| @@ -25,6 +26,10 @@ class PermissionReporter { |
| // context for the reports. |
| explicit PermissionReporter(net::URLRequestContext* request_context); |
| + // Used by tests. This constructor allows tests to have access to the |
| + // ReportSender. |
| + explicit PermissionReporter(std::unique_ptr<net::ReportSender> report_sender); |
|
raymes
2016/06/09 01:30:40
We might as well make this private and make the te
stefanocs
2016/06/09 05:56:11
Done.
|
| + |
| ~PermissionReporter(); |
| // Sends a serialized permission report to the report collection server. |
| @@ -48,6 +53,8 @@ class PermissionReporter { |
| std::string* output); |
| private: |
| + std::unique_ptr<net::ReportSender> permission_report_sender_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(PermissionReporter); |
| }; |