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_PREFERENCE_VALIDATION_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_PREFERENCE_VALIDATION_DE
LEGATE_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_PREFERENCE_VALIDATION_DELEGATE_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_PREFERENCE_VALIDATION_DE
LEGATE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h" | 10 #include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h" |
11 #include "chrome/browser/safe_browsing/add_incident_callback.h" | 11 #include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback.
h" |
12 | 12 |
13 namespace safe_browsing { | 13 namespace safe_browsing { |
14 | 14 |
15 // A preference validation delegate that adds incidents to a given receiver | 15 // A preference validation delegate that adds incidents to a given receiver |
16 // for preference validation failures. | 16 // for preference validation failures. |
17 class PreferenceValidationDelegate | 17 class PreferenceValidationDelegate |
18 : public TrackedPreferenceValidationDelegate { | 18 : public TrackedPreferenceValidationDelegate { |
19 public: | 19 public: |
20 explicit PreferenceValidationDelegate( | 20 explicit PreferenceValidationDelegate( |
21 const AddIncidentCallback& add_incident); | 21 const AddIncidentCallback& add_incident); |
(...skipping 13 matching lines...) Expand all Loading... |
35 PrefHashStoreTransaction::ValueState value_state, | 35 PrefHashStoreTransaction::ValueState value_state, |
36 TrackedPreferenceHelper::ResetAction reset_action) OVERRIDE; | 36 TrackedPreferenceHelper::ResetAction reset_action) OVERRIDE; |
37 | 37 |
38 AddIncidentCallback add_incident_; | 38 AddIncidentCallback add_incident_; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(PreferenceValidationDelegate); | 40 DISALLOW_COPY_AND_ASSIGN(PreferenceValidationDelegate); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace safe_browsing | 43 } // namespace safe_browsing |
44 | 44 |
45 #endif // CHROME_BROWSER_SAFE_BROWSING_PREFERENCE_VALIDATION_DELEGATE_H_ | 45 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_PREFERENCE_VALIDATION
_DELEGATE_H_ |
OLD | NEW |