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

Side by Side Diff: chrome/browser/prefs/pref_hash_tracker.h

Issue 90563003: Fix a race condition in preference metric reporting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 2013 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_PREF_HASH_TRACKER_H_
6 #define CHROME_BROWSER_PREFS_PREF_HASH_TRACKER_H_
7
8 #include <string>
9
10 namespace base {
11 class Value;
12 } // namespace base
13
14 // Updates stored preference value hashes in response to preference value
15 // changes.
16 class PrefHashTracker {
17 public:
18 virtual ~PrefHashTracker() {}
19
20 // Receives notification of preference value changes.
21 virtual void OnPrefValueChanged(const std::string& path,
22 const base::Value* new_value) = 0;
23 };
24
25 #endif // CHROME_BROWSER_PREFS_PREF_HASH_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698