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

Side by Side Diff: chromeos/dbus/system_clock_client.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 | « chromeos/dbus/session_manager_client.cc ('k') | chromeos/dbus/system_clock_client.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROMEOS_DBUS_SYSTEM_CLOCK_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SYSTEM_CLOCK_CLIENT_H_
6 #define CHROMEOS_DBUS_SYSTEM_CLOCK_CLIENT_H_ 6 #define CHROMEOS_DBUS_SYSTEM_CLOCK_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "chromeos/chromeos_export.h" 9 #include "chromeos/chromeos_export.h"
10 #include "chromeos/dbus/dbus_client.h" 10 #include "chromeos/dbus/dbus_client.h"
(...skipping 17 matching lines...) Expand all
28 virtual ~Observer() {} 28 virtual ~Observer() {}
29 }; 29 };
30 30
31 virtual ~SystemClockClient(); 31 virtual ~SystemClockClient();
32 32
33 // Adds the given observer. 33 // Adds the given observer.
34 virtual void AddObserver(Observer* observer) = 0; 34 virtual void AddObserver(Observer* observer) = 0;
35 // Removes the given observer if this object has the observer. 35 // Removes the given observer if this object has the observer.
36 virtual void RemoveObserver(Observer* observer) = 0; 36 virtual void RemoveObserver(Observer* observer) = 0;
37 // Returns true if this object has the given observer. 37 // Returns true if this object has the given observer.
38 virtual bool HasObserver(Observer* observer) = 0; 38 virtual bool HasObserver(const Observer* observer) const = 0;
39 39
40 // Sets the system clock. 40 // Sets the system clock.
41 virtual void SetTime(int64 time_in_seconds) = 0; 41 virtual void SetTime(int64 time_in_seconds) = 0;
42 42
43 // Checks if the system time can be set. 43 // Checks if the system time can be set.
44 virtual bool CanSetTime() = 0; 44 virtual bool CanSetTime() = 0;
45 45
46 // Creates the instance. 46 // Creates the instance.
47 static SystemClockClient* Create(); 47 static SystemClockClient* Create();
48 48
49 protected: 49 protected:
50 // Create() should be used instead. 50 // Create() should be used instead.
51 SystemClockClient(); 51 SystemClockClient();
52 52
53 private: 53 private:
54 DISALLOW_COPY_AND_ASSIGN(SystemClockClient); 54 DISALLOW_COPY_AND_ASSIGN(SystemClockClient);
55 }; 55 };
56 56
57 } // namespace chromeos 57 } // namespace chromeos
58 58
59 #endif // CHROMEOS_DBUS_SYSTEM_CLOCK_CLIENT_H_ 59 #endif // CHROMEOS_DBUS_SYSTEM_CLOCK_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/session_manager_client.cc ('k') | chromeos/dbus/system_clock_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698