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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_client.h

Issue 975353002: Added OOBE Asset / Naming prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments Created 5 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
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 COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // the last command that finished execution and |command_results| being 148 // the last command that finished execution and |command_results| being
149 // results for previous commands which have not been reported yet. The 149 // results for previous commands which have not been reported yet. The
150 // |callback| will be called when the operation completes. 150 // |callback| will be called when the operation completes.
151 // Note that sending |last_command_id| will acknowledge this command and any 151 // Note that sending |last_command_id| will acknowledge this command and any
152 // previous commands. A nullptr indicates that no commands have finished 152 // previous commands. A nullptr indicates that no commands have finished
153 // execution. 153 // execution.
154 virtual void FetchRemoteCommands( 154 virtual void FetchRemoteCommands(
155 scoped_ptr<RemoteCommandJob::UniqueIDType> last_command_id, 155 scoped_ptr<RemoteCommandJob::UniqueIDType> last_command_id,
156 const std::vector<enterprise_management::RemoteCommandResult>& 156 const std::vector<enterprise_management::RemoteCommandResult>&
157 command_results, 157 command_results,
158 const RemoteCommandCallback& callback); 158 const RemoteCommandCallback& callback);
Mattias Nissler (ping if slow) 2015/04/10 12:22:29 nit: blank line before comment.
Polina Bondarenko 2015/04/14 14:15:47 Done.
159 // Sends a device attribute update permission request to the server,
160 // calls a callback from the enrollment screen to show or not the device
161 // naming prompt.
162 void GetDeviceAttributeUpdatePermission(const std::string& auth_token,
163 const StatusCallback& callback);
164
165 // Sends a device naming information (Asset Id and Location) to the
166 // device management server, ends with successful enrollment screen
167 // or device naming error screen.
168 void UpdateDeviceAttributes(const std::string& auth_token,
169 const std::string& asset_id,
170 const std::string& location,
171 const StatusCallback& callback);
159 172
160 // Adds an observer to be called back upon policy and state changes. 173 // Adds an observer to be called back upon policy and state changes.
161 void AddObserver(Observer* observer); 174 void AddObserver(Observer* observer);
162 175
163 // Removes the specified observer. 176 // Removes the specified observer.
164 void RemoveObserver(Observer* observer); 177 void RemoveObserver(Observer* observer);
165 178
166 void set_submit_machine_id(bool submit_machine_id) { 179 void set_submit_machine_id(bool submit_machine_id) {
167 submit_machine_id_ = submit_machine_id; 180 submit_machine_id_ = submit_machine_id;
168 } 181 }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 ObserverList<Observer, true> observers_; 358 ObserverList<Observer, true> observers_;
346 scoped_refptr<net::URLRequestContextGetter> request_context_; 359 scoped_refptr<net::URLRequestContextGetter> request_context_;
347 360
348 private: 361 private:
349 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); 362 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient);
350 }; 363 };
351 364
352 } // namespace policy 365 } // namespace policy
353 366
354 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_ 367 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698