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

Side by Side Diff: chrome/browser/sync/profile_sync_service_base.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/profile_sync_service.cc ('k') | chrome/browser/ui/ash/screenshot_taker.h » ('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_BASE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
7 7
8 #include "chrome/browser/sync/profile_sync_service_observer.h" 8 #include "chrome/browser/sync/profile_sync_service_observer.h"
9 #include "sync/internal_api/public/base/model_type.h" 9 #include "sync/internal_api/public/base/model_type.h"
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // will the the empty set. Once the configuration completes the set will 44 // will the the empty set. Once the configuration completes the set will
45 // be updated. 45 // be updated.
46 virtual syncer::ModelTypeSet GetActiveDataTypes() const = 0; 46 virtual syncer::ModelTypeSet GetActiveDataTypes() const = 0;
47 47
48 // Adds/removes an observer. ProfileSyncServiceBase does not take 48 // Adds/removes an observer. ProfileSyncServiceBase does not take
49 // ownership of the observer. 49 // ownership of the observer.
50 virtual void AddObserver(Observer* observer) = 0; 50 virtual void AddObserver(Observer* observer) = 0;
51 virtual void RemoveObserver(Observer* observer) = 0; 51 virtual void RemoveObserver(Observer* observer) = 0;
52 52
53 // Returns true if |observer| has already been added as an observer. 53 // Returns true if |observer| has already been added as an observer.
54 virtual bool HasObserver(Observer* observer) const = 0; 54 virtual bool HasObserver(const Observer* observer) const = 0;
55 }; 55 };
56 56
57 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_ 57 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/ui/ash/screenshot_taker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698