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

Side by Side Diff: chrome/browser/sync/glue/preference_change_processor.h

Issue 3304015: Use PrefChangeRegistrar everywhere (Closed)
Patch Set: final version for commit Created 10 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
« no previous file with comments | « chrome/browser/profile_impl.cc ('k') | chrome/browser/sync/glue/preference_change_processor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/prefs/pref_change_registrar.h"
11 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/sync/engine/syncapi.h" 13 #include "chrome/browser/sync/engine/syncapi.h"
13 #include "chrome/browser/sync/glue/change_processor.h" 14 #include "chrome/browser/sync/glue/change_processor.h"
14 #include "chrome/browser/sync/glue/sync_backend_host.h" 15 #include "chrome/browser/sync/glue/sync_backend_host.h"
15 #include "chrome/common/notification_observer.h" 16 #include "chrome/common/notification_observer.h"
16 17
17 namespace browser_sync { 18 namespace browser_sync {
18 19
19 class PreferenceModelAssociator; 20 class PreferenceModelAssociator;
20 class UnrecoverableErrorHandler; 21 class UnrecoverableErrorHandler;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 54
54 // The model we are processing changes from. Non-NULL when |running_| is true. 55 // The model we are processing changes from. Non-NULL when |running_| is true.
55 PrefService* pref_service_; 56 PrefService* pref_service_;
56 57
57 // The two models should be associated according to this ModelAssociator. 58 // The two models should be associated according to this ModelAssociator.
58 PreferenceModelAssociator* model_associator_; 59 PreferenceModelAssociator* model_associator_;
59 60
60 // Whether we are currently processing a preference change notification. 61 // Whether we are currently processing a preference change notification.
61 bool processing_pref_change_; 62 bool processing_pref_change_;
62 63
64 PrefChangeRegistrar registrar_;
65
63 DISALLOW_COPY_AND_ASSIGN(PreferenceChangeProcessor); 66 DISALLOW_COPY_AND_ASSIGN(PreferenceChangeProcessor);
64 }; 67 };
65 68
66 } // namespace browser_sync 69 } // namespace browser_sync
67 70
68 #endif // CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_ 71 #endif // CHROME_BROWSER_SYNC_GLUE_PREFERENCE_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/profile_impl.cc ('k') | chrome/browser/sync/glue/preference_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698