| 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 | 
|  | 7 using content::PermissionType; | 
|  | 8 | 
|  | 9 namespace safe_browsing { | 
|  | 10 | 
|  | 11 PermissionReporter::PermissionReporter(net::URLRequestContext* request_context, | 
|  | 12                                        const GURL& upload_url) | 
|  | 13     : permission_report_sender_(new net::CertificateReportSender( | 
|  | 14           request_context, | 
|  | 15           net::CertificateReportSender::CookiesPreference:: | 
|  | 16               DO_NOT_SEND_COOKIES)), | 
|  | 17       upload_url_(upload_url) { | 
|  | 18   DCHECK(permission_report_sender_); | 
|  | 19   DCHECK(!upload_url.is_empty()); | 
|  | 20 } | 
|  | 21 | 
|  | 22 PermissionReporter::~PermissionReporter() {} | 
|  | 23 | 
|  | 24 void PermissionReporter::SendReport(const std::string& serialized_report) { | 
|  | 25   // TODO(stefanocs): Implement SendReport function. | 
|  | 26 } | 
|  | 27 | 
|  | 28 PermissionReport PermissionReporter::BuildReport(const GURL& origin, | 
|  | 29                                                  PermissionType permission, | 
|  | 30                                                  PermissionAction action) { | 
|  | 31   // TODO(stefanocs): Implement BuildReport function. | 
|  | 32   return PermissionReport(); | 
|  | 33 } | 
|  | 34 | 
|  | 35 }  // namespace safe_browsing | 
| OLD | NEW | 
|---|