Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 #include "chrome/browser/safe_browsing/permission_reporter.h" | |
| 6 #include "chrome/common/safe_browsing/permission_report.pb.h" | |
| 7 | |
| 8 using content::PermissionType; | |
| 9 | |
| 10 namespace safe_browsing { | |
| 11 | |
| 12 PermissionReporter::PermissionReporter(net::URLRequestContext* request_context, | |
|
Nathan Parker
2016/05/31 22:24:57
How about having the URL hardcoded in this file (a
stefanocs
2016/06/01 01:36:34
Done.
| |
| 13 const GURL& upload_url) | |
| 14 : permission_report_sender_(new net::CertificateReportSender( | |
| 15 request_context, | |
| 16 net::CertificateReportSender::CookiesPreference:: | |
| 17 DO_NOT_SEND_COOKIES)), | |
| 18 upload_url_(upload_url) { | |
| 19 DCHECK(permission_report_sender_); | |
| 20 DCHECK(!upload_url.is_empty()); | |
| 21 } | |
| 22 | |
| 23 PermissionReporter::~PermissionReporter() {} | |
| 24 | |
| 25 void PermissionReporter::SendReport(const std::string& serialized_report) { | |
| 26 // TODO(stefanocs): Implement SendReport function. | |
| 27 } | |
| 28 | |
| 29 bool PermissionReporter::BuildReport(const GURL& origin, | |
| 30 PermissionType permission, | |
| 31 PermissionAction action, | |
| 32 std::string* output) { | |
| 33 // TODO(stefanocs): Implement BuildReport function. | |
| 34 return true; | |
| 35 } | |
| 36 | |
| 37 } // namespace safe_browsing | |
| OLD | NEW |