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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 years, 1 month 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/sync/backend_migrator.cc ('k') | chrome/browser/sync/profile_sync_service.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 void Initialize(); 282 void Initialize();
283 283
284 virtual void SetSyncSetupCompleted(); 284 virtual void SetSyncSetupCompleted();
285 285
286 // ProfileSyncServiceBase implementation. 286 // ProfileSyncServiceBase implementation.
287 bool HasSyncSetupCompleted() const override; 287 bool HasSyncSetupCompleted() const override;
288 bool SyncActive() const override; 288 bool SyncActive() const override;
289 syncer::ModelTypeSet GetActiveDataTypes() const override; 289 syncer::ModelTypeSet GetActiveDataTypes() const override;
290 void AddObserver(ProfileSyncServiceBase::Observer* observer) override; 290 void AddObserver(ProfileSyncServiceBase::Observer* observer) override;
291 void RemoveObserver(ProfileSyncServiceBase::Observer* observer) override; 291 void RemoveObserver(ProfileSyncServiceBase::Observer* observer) override;
292 bool HasObserver(ProfileSyncServiceBase::Observer* observer) const override; 292 bool HasObserver(
293 const ProfileSyncServiceBase::Observer* observer) const override;
293 294
294 void AddProtocolEventObserver(browser_sync::ProtocolEventObserver* observer); 295 void AddProtocolEventObserver(browser_sync::ProtocolEventObserver* observer);
295 void RemoveProtocolEventObserver( 296 void RemoveProtocolEventObserver(
296 browser_sync::ProtocolEventObserver* observer); 297 browser_sync::ProtocolEventObserver* observer);
297 298
298 void AddTypeDebugInfoObserver(syncer::TypeDebugInfoObserver* observer); 299 void AddTypeDebugInfoObserver(syncer::TypeDebugInfoObserver* observer);
299 void RemoveTypeDebugInfoObserver(syncer::TypeDebugInfoObserver* observer); 300 void RemoveTypeDebugInfoObserver(syncer::TypeDebugInfoObserver* observer);
300 301
301 // Add a sync type preference provider. Each provider may only be added once. 302 // Add a sync type preference provider. Each provider may only be added once.
302 void AddPreferenceProvider(SyncTypePreferenceProvider* provider); 303 void AddPreferenceProvider(SyncTypePreferenceProvider* provider);
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 BrowsingDataRemover::Observer* browsing_data_remover_observer_; 1158 BrowsingDataRemover::Observer* browsing_data_remover_observer_;
1158 1159
1159 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1160 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1160 }; 1161 };
1161 1162
1162 bool ShouldShowActionOnUI( 1163 bool ShouldShowActionOnUI(
1163 const syncer::SyncProtocolError& error); 1164 const syncer::SyncProtocolError& error);
1164 1165
1165 1166
1166 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1167 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/backend_migrator.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698