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

Unified Diff: chrome/browser/safe_browsing/preference_validation_delegate.h

Issue 470213002: Moving all the incident reporting stuff to a common folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@binsign
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/preference_validation_delegate.h
diff --git a/chrome/browser/safe_browsing/preference_validation_delegate.h b/chrome/browser/safe_browsing/preference_validation_delegate.h
deleted file mode 100644
index d898af11ede0b7060ef68c06d80da8733d5bf86e..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/preference_validation_delegate.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_SAFE_BROWSING_PREFERENCE_VALIDATION_DELEGATE_H_
-#define CHROME_BROWSER_SAFE_BROWSING_PREFERENCE_VALIDATION_DELEGATE_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h"
-#include "chrome/browser/safe_browsing/add_incident_callback.h"
-
-namespace safe_browsing {
-
-// A preference validation delegate that adds incidents to a given receiver
-// for preference validation failures.
-class PreferenceValidationDelegate
- : public TrackedPreferenceValidationDelegate {
- public:
- explicit PreferenceValidationDelegate(
- const AddIncidentCallback& add_incident);
- virtual ~PreferenceValidationDelegate();
-
- private:
- // TrackedPreferenceValidationDelegate methods.
- virtual void OnAtomicPreferenceValidation(
- const std::string& pref_path,
- const base::Value* value,
- PrefHashStoreTransaction::ValueState value_state,
- TrackedPreferenceHelper::ResetAction reset_action) OVERRIDE;
- virtual void OnSplitPreferenceValidation(
- const std::string& pref_path,
- const base::DictionaryValue* dict_value,
- const std::vector<std::string>& invalid_keys,
- PrefHashStoreTransaction::ValueState value_state,
- TrackedPreferenceHelper::ResetAction reset_action) OVERRIDE;
-
- AddIncidentCallback add_incident_;
-
- DISALLOW_COPY_AND_ASSIGN(PreferenceValidationDelegate);
-};
-
-} // namespace safe_browsing
-
-#endif // CHROME_BROWSER_SAFE_BROWSING_PREFERENCE_VALIDATION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698