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

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

Issue 114223002: Multi-strategy based tracking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_
7
8 #include <string>
9
10 #include "chrome/browser/prefs/pref_hash_filter.h"
11 #include "chrome/browser/prefs/tracked/tracked_preference.h"
12 #include "chrome/browser/prefs/tracked/tracked_preference_helper.h"
13
14 // A TrackedSplitPreference must be tracking a dictionary pref. Each top-level
15 // entry in its dictionary is tracked and enforced independently.
16 // Note: preferences using this strategy must be kept in sync with
17 // TrackedSplitPreferences in histograms.xml.
18 class TrackedSplitPreference : public TrackedPreference {
19 public:
20 // Constructs a TrackedSplitPreference. |pref_path| must be a dictionary pref.
21 TrackedSplitPreference(
22 const std::string& pref_path,
23 size_t reporting_id,
24 size_t reporting_ids_count,
25 PrefHashFilter::EnforcementLevel enforcement_level);
26
27 // TrackedPreference implementation.
28 virtual void OnValueChanged(const base::Value* value,
29 PrefHashStore* pref_hash_store) const OVERRIDE;
erikwright (departed) 2014/01/21 18:44:45 compiler_specific.h
gab 2014/01/21 20:51:42 Done.
30 virtual void EnforceAndReport(
31 PrefHashStore* pref_hash_store,
32 base::DictionaryValue* pref_store_contents) const OVERRIDE;
33
34 private:
35 const std::string pref_path_;
36 const TrackedPreferenceHelper helper_;
37
38 DISALLOW_COPY_AND_ASSIGN(TrackedSplitPreference);
erikwright (departed) 2014/01/21 18:44:45 base/macros.h
gab 2014/01/21 20:51:42 Done.
39 };
40
41 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_SPLIT_PREFERENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698