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

Side by Side Diff: chrome/browser/prefs/tracked/tracked_preference_helper.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_PREFERENCE_HELPER_H_ 5 #ifndef CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_ 6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/prefs/pref_hash_filter.h" 11 #include "chrome/browser/prefs/tracked/pref_hash_filter.h"
12 #include "chrome/browser/prefs/pref_hash_store_transaction.h" 12 #include "chrome/browser/prefs/tracked/pref_hash_store_transaction.h"
13 13
14 // A TrackedPreferenceHelper is a helper class for TrackedPreference which 14 // A TrackedPreferenceHelper is a helper class for TrackedPreference which
15 // handles decision making and reporting for TrackedPreference's 15 // handles decision making and reporting for TrackedPreference's
16 // implementations. 16 // implementations.
17 class TrackedPreferenceHelper { 17 class TrackedPreferenceHelper {
18 public: 18 public:
19 enum ResetAction { 19 enum ResetAction {
20 DONT_RESET, 20 DONT_RESET,
21 // WANTED_RESET is reported when DO_RESET would have been reported but the 21 // WANTED_RESET is reported when DO_RESET would have been reported but the
22 // current |enforcement_level| doesn't allow a reset for the detected state. 22 // current |enforcement_level| doesn't allow a reset for the detected state.
(...skipping 30 matching lines...) Expand all
53 const size_t reporting_id_; 53 const size_t reporting_id_;
54 const size_t reporting_ids_count_; 54 const size_t reporting_ids_count_;
55 55
56 // Deny setting changes and hash seeding/migration. 56 // Deny setting changes and hash seeding/migration.
57 const bool enforce_; 57 const bool enforce_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(TrackedPreferenceHelper); 59 DISALLOW_COPY_AND_ASSIGN(TrackedPreferenceHelper);
60 }; 60 };
61 61
62 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_ 62 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698