OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_INCIDENT_REPORTING_INCIDENT_REPORTING_SERVI
CE_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SERVI
CE_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SERVI
CE_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SERVI
CE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void HandleResponse(const UploadContext& context); | 228 void HandleResponse(const UploadContext& context); |
229 | 229 |
230 // IncidentReportUploader::OnResultCallback implementation. | 230 // IncidentReportUploader::OnResultCallback implementation. |
231 void OnReportUploadResult(UploadContext* context, | 231 void OnReportUploadResult(UploadContext* context, |
232 IncidentReportUploader::Result result, | 232 IncidentReportUploader::Result result, |
233 scoped_ptr<ClientIncidentResponse> response); | 233 scoped_ptr<ClientIncidentResponse> response); |
234 | 234 |
235 // content::NotificationObserver methods. | 235 // content::NotificationObserver methods. |
236 virtual void Observe(int type, | 236 virtual void Observe(int type, |
237 const content::NotificationSource& source, | 237 const content::NotificationSource& source, |
238 const content::NotificationDetails& details) OVERRIDE; | 238 const content::NotificationDetails& details) override; |
239 | 239 |
240 base::ThreadChecker thread_checker_; | 240 base::ThreadChecker thread_checker_; |
241 | 241 |
242 // The safe browsing database manager, through which the whitelist killswitch | 242 // The safe browsing database manager, through which the whitelist killswitch |
243 // is checked. | 243 // is checked. |
244 scoped_refptr<SafeBrowsingDatabaseManager> database_manager_; | 244 scoped_refptr<SafeBrowsingDatabaseManager> database_manager_; |
245 | 245 |
246 // Accessor for an URL context with which reports will be sent. | 246 // Accessor for an URL context with which reports will be sent. |
247 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | 247 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
248 | 248 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 // that are posted during normal processing (e.g., environment collection, | 310 // that are posted during normal processing (e.g., environment collection, |
311 // safe browsing database checks, and report uploads). | 311 // safe browsing database checks, and report uploads). |
312 base::WeakPtrFactory<IncidentReportingService> weak_ptr_factory_; | 312 base::WeakPtrFactory<IncidentReportingService> weak_ptr_factory_; |
313 | 313 |
314 DISALLOW_COPY_AND_ASSIGN(IncidentReportingService); | 314 DISALLOW_COPY_AND_ASSIGN(IncidentReportingService); |
315 }; | 315 }; |
316 | 316 |
317 } // namespace safe_browsing | 317 } // namespace safe_browsing |
318 | 318 |
319 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SE
RVICE_H_ | 319 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SE
RVICE_H_ |
OLD | NEW |