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

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

Issue 265013002: Revert of Enable Enterprise enrollment on desktop builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_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_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.
159 virtual void StorePolicyForUser(const std::string& username, 161 virtual void StorePolicyForUser(const std::string& username,
160 const std::string& policy_blob, 162 const std::string& policy_blob,
163 const std::string& policy_key,
161 const StorePolicyCallback& callback) = 0; 164 const StorePolicyCallback& callback) = 0;
162 165
163 // Sends a request to store a policy blob for the specified device-local 166 // Sends a request to store a policy blob for the specified device-local
164 // account. The result of the operation is reported through |callback|. 167 // account. The result of the operation is reported through |callback|.
165 virtual void StoreDeviceLocalAccountPolicy( 168 virtual void StoreDeviceLocalAccountPolicy(
166 const std::string& account_id, 169 const std::string& account_id,
167 const std::string& policy_blob, 170 const std::string& policy_blob,
168 const StorePolicyCallback& callback) = 0; 171 const StorePolicyCallback& callback) = 0;
169 172
170 // Sets the flags to be applied next time by the session manager when Chrome 173 // Sets the flags to be applied next time by the session manager when Chrome
(...skipping 10 matching lines...) Expand all
181 // Create() should be used instead. 184 // Create() should be used instead.
182 SessionManagerClient(); 185 SessionManagerClient();
183 186
184 private: 187 private:
185 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); 188 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient);
186 }; 189 };
187 190
188 } // namespace chromeos 191 } // namespace chromeos
189 192
190 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 193 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698