OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ |
7 | 7 |
8 // A class that reports safebrowsing statistics to Google's SafeBrowsing | 8 // A class that reports safebrowsing statistics to Google's SafeBrowsing |
9 // servers. | 9 // servers. |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "chrome/browser/permissions/permission_uma_util.h" | 17 #include "chrome/browser/permissions/permission_uma_util.h" |
18 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" | 18 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" |
19 #include "components/safe_browsing_db/hit_report.h" | 19 #include "components/safe_browsing_db/hit_report.h" |
20 #include "components/safe_browsing_db/util.h" | 20 #include "components/safe_browsing_db/util.h" |
21 #include "content/public/browser/permission_type.h" | 21 #include "content/public/browser/permission_type.h" |
| 22 #include "net/log/net_log.h" |
22 #include "net/url_request/url_fetcher_delegate.h" | 23 #include "net/url_request/url_fetcher_delegate.h" |
23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
24 | 25 |
25 namespace certificate_reporting { | 26 namespace certificate_reporting { |
26 class ErrorReporter; | 27 class ErrorReporter; |
27 } | 28 } |
28 | 29 |
29 namespace net { | 30 namespace net { |
30 class SSLInfo; | 31 class SSLInfo; |
31 class URLRequestContextGetter; | 32 class URLRequestContextGetter; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // We add both "hit" and "detail" fetchers in this set. | 105 // We add both "hit" and "detail" fetchers in this set. |
105 Reports safebrowsing_reports_; | 106 Reports safebrowsing_reports_; |
106 | 107 |
107 // Sends reports of invalid SSL certificate chains. | 108 // Sends reports of invalid SSL certificate chains. |
108 std::unique_ptr<certificate_reporting::ErrorReporter> | 109 std::unique_ptr<certificate_reporting::ErrorReporter> |
109 certificate_error_reporter_; | 110 certificate_error_reporter_; |
110 | 111 |
111 // Sends reports of permission actions. | 112 // Sends reports of permission actions. |
112 std::unique_ptr<PermissionReporter> permission_reporter_; | 113 std::unique_ptr<PermissionReporter> permission_reporter_; |
113 | 114 |
| 115 net::NetLogWithSource net_log_; |
| 116 |
114 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPingManager); | 117 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPingManager); |
115 }; | 118 }; |
116 | 119 |
117 } // namespace safe_browsing | 120 } // namespace safe_browsing |
118 | 121 |
119 #endif // CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ | 122 #endif // CHROME_BROWSER_SAFE_BROWSING_PING_MANAGER_H_ |
OLD | NEW |