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

Side by Side Diff: chrome/browser/prefs/tracked/tracked_split_preference.h

Issue 620933002: Move all files related to tracked preferences from c/b/prefs to c/b/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ 5 #ifndef CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ 6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/prefs/pref_hash_filter.h" 12 #include "chrome/browser/prefs/tracked/pref_hash_filter.h"
13 #include "chrome/browser/prefs/tracked/tracked_preference.h" 13 #include "chrome/browser/prefs/tracked/tracked_preference.h"
14 #include "chrome/browser/prefs/tracked/tracked_preference_helper.h" 14 #include "chrome/browser/prefs/tracked/tracked_preference_helper.h"
15 15
16 class TrackedPreferenceValidationDelegate; 16 class TrackedPreferenceValidationDelegate;
17 17
18 // A TrackedSplitPreference must be tracking a dictionary pref. Each top-level 18 // A TrackedSplitPreference must be tracking a dictionary pref. Each top-level
19 // entry in its dictionary is tracked and enforced independently. An optional 19 // entry in its dictionary is tracked and enforced independently. An optional
20 // delegate is notified of the status of the preference during enforcement. 20 // delegate is notified of the status of the preference during enforcement.
21 // Note: preferences using this strategy must be kept in sync with 21 // Note: preferences using this strategy must be kept in sync with
22 // TrackedSplitPreferences in histograms.xml. 22 // TrackedSplitPreferences in histograms.xml.
(...skipping 15 matching lines...) Expand all
38 38
39 private: 39 private:
40 const std::string pref_path_; 40 const std::string pref_path_;
41 const TrackedPreferenceHelper helper_; 41 const TrackedPreferenceHelper helper_;
42 TrackedPreferenceValidationDelegate* delegate_; 42 TrackedPreferenceValidationDelegate* delegate_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference); 44 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference);
45 }; 45 };
46 46
47 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_ 47 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698