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

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

Issue 258743005: Enable Enterprise enrollment on desktop builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added arg to PathService::OverrideAndCreateIfNeeded, added test for FakeCryptohomeClient::InstallAt… Created 6 years, 7 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
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_SESSION_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // operation was successful or not. 149 // operation was successful or not.
150 typedef base::Callback<void(bool)> StorePolicyCallback; 150 typedef base::Callback<void(bool)> StorePolicyCallback;
151 151
152 // Attempts to asynchronously store |policy_blob| as device policy. Upon 152 // Attempts to asynchronously store |policy_blob| as device policy. Upon
153 // completion of the store attempt, we will call callback. 153 // completion of the store attempt, we will call callback.
154 virtual void StoreDevicePolicy(const std::string& policy_blob, 154 virtual void StoreDevicePolicy(const std::string& policy_blob,
155 const StorePolicyCallback& callback) = 0; 155 const StorePolicyCallback& callback) = 0;
156 156
157 // Attempts to asynchronously store |policy_blob| as user policy for the given 157 // Attempts to asynchronously store |policy_blob| as user policy for the given
158 // |username|. Upon completion of the store attempt, we will call callback. 158 // |username|. Upon completion of the store attempt, we will call callback.
159 // The |policy_key| argument is not sent to the session manager, but is used
160 // by the stub implementation to enable policy validation on desktop builds.
161 virtual void StorePolicyForUser(const std::string& username, 159 virtual void StorePolicyForUser(const std::string& username,
162 const std::string& policy_blob, 160 const std::string& policy_blob,
163 const std::string& policy_key,
164 const StorePolicyCallback& callback) = 0; 161 const StorePolicyCallback& callback) = 0;
165 162
166 // Sends a request to store a policy blob for the specified device-local 163 // Sends a request to store a policy blob for the specified device-local
167 // account. The result of the operation is reported through |callback|. 164 // account. The result of the operation is reported through |callback|.
168 virtual void StoreDeviceLocalAccountPolicy( 165 virtual void StoreDeviceLocalAccountPolicy(
169 const std::string& account_id, 166 const std::string& account_id,
170 const std::string& policy_blob, 167 const std::string& policy_blob,
171 const StorePolicyCallback& callback) = 0; 168 const StorePolicyCallback& callback) = 0;
172 169
173 // Sets the flags to be applied next time by the session manager when Chrome 170 // Sets the flags to be applied next time by the session manager when Chrome
(...skipping 10 matching lines...) Expand all
184 // Create() should be used instead. 181 // Create() should be used instead.
185 SessionManagerClient(); 182 SessionManagerClient();
186 183
187 private: 184 private:
188 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); 185 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient);
189 }; 186 };
190 187
191 } // namespace chromeos 188 } // namespace chromeos
192 189
193 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 190 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698