Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_PREFERENCE_VALIDATION_DE LEGATE_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_PREFERENCE_VALIDATION_DE LEGATE_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_PREFERENCE_VALIDATION_DE LEGATE_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/incident_reporting/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);
22 virtual ~PreferenceValidationDelegate(); 22 virtual ~PreferenceValidationDelegate();
23 23
24 private: 24 private:
25 // TrackedPreferenceValidationDelegate methods. 25 // TrackedPreferenceValidationDelegate methods.
26 virtual void OnAtomicPreferenceValidation( 26 virtual void OnAtomicPreferenceValidation(
27 const std::string& pref_path, 27 const std::string& pref_path,
28 const base::Value* value, 28 const base::Value* value,
29 PrefHashStoreTransaction::ValueState value_state, 29 PrefHashStoreTransaction::ValueState value_state,
30 TrackedPreferenceHelper::ResetAction reset_action) OVERRIDE; 30 TrackedPreferenceHelper::ResetAction reset_action) override;
31 virtual void OnSplitPreferenceValidation( 31 virtual void OnSplitPreferenceValidation(
32 const std::string& pref_path, 32 const std::string& pref_path,
33 const base::DictionaryValue* dict_value, 33 const base::DictionaryValue* dict_value,
34 const std::vector<std::string>& invalid_keys, 34 const std::vector<std::string>& invalid_keys,
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_INCIDENT_REPORTING_PREFERENCE_VALIDATION _DELEGATE_H_ 45 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_PREFERENCE_VALIDATION _DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698