| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 request_context_getter); | 74 request_context_getter); |
| 75 | 75 |
| 76 // All incident collection, data collection, and uploads in progress are | 76 // All incident collection, data collection, and uploads in progress are |
| 77 // dropped at destruction. | 77 // dropped at destruction. |
| 78 ~IncidentReportingService() override; | 78 ~IncidentReportingService() override; |
| 79 | 79 |
| 80 // Returns a callback by which external components can add an incident to the | 80 // Returns a callback by which external components can add an incident to the |
| 81 // service on behalf of |profile|. The callback may outlive the service, but | 81 // service on behalf of |profile|. The callback may outlive the service, but |
| 82 // will no longer have any effect after the service is deleted. The callback | 82 // will no longer have any effect after the service is deleted. The callback |
| 83 // must not be run after |profile| has been destroyed. | 83 // must not be run after |profile| has been destroyed. |
| 84 AddIncidentCallback GetAddIncidentCallback(Profile* profile); | 84 virtual AddIncidentCallback GetAddIncidentCallback(Profile* profile); |
| 85 | 85 |
| 86 // Returns a preference validation delegate that adds incidents to the service | 86 // Returns a preference validation delegate that adds incidents to the service |
| 87 // for validation failures in |profile|. The delegate may outlive the service, | 87 // for validation failures in |profile|. The delegate may outlive the service, |
| 88 // but incidents reported by it will no longer have any effect after the | 88 // but incidents reported by it will no longer have any effect after the |
| 89 // service is deleted. The lifetime of the delegate should not extend beyond | 89 // service is deleted. The lifetime of the delegate should not extend beyond |
| 90 // that of the profile it services. | 90 // that of the profile it services. |
| 91 scoped_ptr<TrackedPreferenceValidationDelegate> | 91 scoped_ptr<TrackedPreferenceValidationDelegate> |
| 92 CreatePreferenceValidationDelegate(Profile* profile); | 92 CreatePreferenceValidationDelegate(Profile* profile); |
| 93 | 93 |
| 94 // Registers |callback| to be run after some delay following process launch. | 94 // Registers |callback| to be run after some delay following process launch. |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // that are posted during normal processing (e.g., environment collection, | 328 // that are posted during normal processing (e.g., environment collection, |
| 329 // safe browsing database checks, and report uploads). | 329 // safe browsing database checks, and report uploads). |
| 330 base::WeakPtrFactory<IncidentReportingService> weak_ptr_factory_; | 330 base::WeakPtrFactory<IncidentReportingService> weak_ptr_factory_; |
| 331 | 331 |
| 332 DISALLOW_COPY_AND_ASSIGN(IncidentReportingService); | 332 DISALLOW_COPY_AND_ASSIGN(IncidentReportingService); |
| 333 }; | 333 }; |
| 334 | 334 |
| 335 } // namespace safe_browsing | 335 } // namespace safe_browsing |
| 336 | 336 |
| 337 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SE
RVICE_H_ | 337 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORTING_SE
RVICE_H_ |
| OLD | NEW |