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

Side by Side Diff: chromeos/dbus/power_manager_client.h

Issue 10024054: chromeos: Convert D-Bus client classes' callback arguments to const reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/mock_update_engine_client.h ('k') | chromeos/dbus/power_manager_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) 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 CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // the request id and the method will call the provided callback with the 155 // the request id and the method will call the provided callback with the
156 // new request ID for use with further calls. 156 // new request ID for use with further calls.
157 // The overrides parameter will & out the PowerStateOverrideType types to 157 // The overrides parameter will & out the PowerStateOverrideType types to
158 // allow specific selection of overrides. For example, to override just dim 158 // allow specific selection of overrides. For example, to override just dim
159 // and suspending but leaving blanking in, set overrides to, 159 // and suspending but leaving blanking in, set overrides to,
160 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND. 160 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND.
161 virtual void RequestPowerStateOverrides( 161 virtual void RequestPowerStateOverrides(
162 uint32 request_id, 162 uint32 request_id,
163 uint32 duration, 163 uint32 duration,
164 int overrides, 164 int overrides,
165 PowerStateRequestIdCallback callback) = 0; 165 const PowerStateRequestIdCallback& callback) = 0;
166 166
167 // Creates the instance. 167 // Creates the instance.
168 static PowerManagerClient* Create(DBusClientImplementationType type, 168 static PowerManagerClient* Create(DBusClientImplementationType type,
169 dbus::Bus* bus); 169 dbus::Bus* bus);
170 170
171 virtual ~PowerManagerClient(); 171 virtual ~PowerManagerClient();
172 172
173 protected: 173 protected:
174 // Create() should be used instead. 174 // Create() should be used instead.
175 PowerManagerClient(); 175 PowerManagerClient();
176 176
177 private: 177 private:
178 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 178 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
179 }; 179 };
180 180
181 } // namespace chromeos 181 } // namespace chromeos
182 182
183 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 183 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_update_engine_client.h ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698