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

Unified Diff: chromeos/dbus/session_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/power_manager_client.cc ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/session_manager_client.h
diff --git a/chromeos/dbus/session_manager_client.h b/chromeos/dbus/session_manager_client.h
index c6903f9efd2c7652841d7ec031de6a002fa9ef3a..82382e3f61fa3aeaeb7debd3b56725b9d5e6c15c 100644
--- a/chromeos/dbus/session_manager_client.h
+++ b/chromeos/dbus/session_manager_client.h
@@ -60,12 +60,12 @@ class CHROMEOS_EXPORT SessionManagerClient {
// Fetches the device policy blob stored by the session manager. Upon
// completion of the retrieve attempt, we will call the provided callback.
- virtual void RetrieveDevicePolicy(RetrievePolicyCallback callback) = 0;
+ virtual void RetrieveDevicePolicy(const RetrievePolicyCallback& callback) = 0;
// Fetches the user policy blob stored by the session manager for the
// currently signed-in user. Upon completion of the retrieve attempt, we will
// call the provided callback.
- virtual void RetrieveUserPolicy(RetrievePolicyCallback callback) = 0;
+ virtual void RetrieveUserPolicy(const RetrievePolicyCallback& callback) = 0;
// Used for StoreDevicePolicy and StoreUserPolicy. Takes a boolean indicating
// whether the operation was successful or not.
@@ -74,13 +74,13 @@ class CHROMEOS_EXPORT SessionManagerClient {
// Attempts to asynchronously store |policy_blob| as device policy. Upon
// completion of the store attempt, we will call callback.
virtual void StoreDevicePolicy(const std::string& policy_blob,
- StorePolicyCallback callback) = 0;
+ const StorePolicyCallback& callback) = 0;
// Attempts to asynchronously store |policy_blob| as user policy for the
// currently signed-in user. Upon completion of the store attempt, we will
// call callback.
virtual void StoreUserPolicy(const std::string& policy_blob,
- StorePolicyCallback callback) = 0;
+ const StorePolicyCallback& callback) = 0;
// Creates the instance.
static SessionManagerClient* Create(DBusClientImplementationType type,
« no previous file with comments | « chromeos/dbus/power_manager_client.cc ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698