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 #include "content/public/browser/permission_type.h" | |
| 8 | |
| 9 using content::PermissionType; | |
| 10 | |
| 11 namespace safe_browsing { | |
| 12 | |
| 13 namespace { | |
| 14 // URL to upload permission action reports. | |
| 15 const char kPermissionActionReportingUploadUrl[] = | |
| 16 "http://safebrowsing.googleusercontent.com/safebrowsing/clientreport/" | |
| 17 "permission-action"; | |
| 18 } // namespace | |
| 19 | |
| 20 PermissionReporter::PermissionReporter( | |
| 21 net::URLRequestContext* request_context) {} | |
| 22 | |
| 23 PermissionReporter::~PermissionReporter() {} | |
| 24 | |
| 25 void PermissionReporter::SendReport(const GURL& origin, | |
| 26 content::PermissionType permission, | |
| 27 PermissionAction action) { | |
| 28 // TODO(stefanocs): Implement SendReport function. | |
| 29 ALLOW_UNUSED_LOCAL(kPermissionActionReportingUploadUrl); | |
|
stefanocs
2016/06/07 06:02:09
Since the constant is now unused in this skeleton,
Nathan Parker
2016/06/07 15:47:31
Sure, just be sure to remove it later.
| |
| 30 } | |
| 31 | |
| 32 // static | |
| 33 bool PermissionReporter::BuildReport(const GURL& origin, | |
| 34 PermissionType permission, | |
| 35 PermissionAction action, | |
| 36 std::string* output) { | |
| 37 // TODO(stefanocs): Implement BuildReport function. | |
| 38 return true; | |
| 39 } | |
| 40 | |
| 41 } // namespace safe_browsing | |
| OLD | NEW |