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

Side by Side Diff: chrome/browser/policy/cloud_policy_identity_strategy.h

Issue 6821045: Connect enrollment screen to cloud policy subsystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests... Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual std::string GetDeviceToken() = 0; 45 virtual std::string GetDeviceToken() = 0;
46 46
47 // Returns the device ID for this device. This is a unique identifier that is 47 // Returns the device ID for this device. This is a unique identifier that is
48 // randomly generated at registration time on the client side. It always has 48 // randomly generated at registration time on the client side. It always has
49 // to be sent along with the device token to the server. 49 // to be sent along with the device token to the server.
50 virtual std::string GetDeviceID() = 0; 50 virtual std::string GetDeviceID() = 0;
51 51
52 // Returns physical machine ID for this device. 52 // Returns physical machine ID for this device.
53 virtual std::string GetMachineID() = 0; 53 virtual std::string GetMachineID() = 0;
54 54
55 // Returns physical machine model for this device.
56 virtual std::string GetMachineModel() = 0;
57
55 // Returns the policy type to be used for registering at the device management 58 // Returns the policy type to be used for registering at the device management
56 // server. 59 // server.
57 virtual em::DeviceRegisterRequest_Type GetPolicyRegisterType() = 0; 60 virtual em::DeviceRegisterRequest_Type GetPolicyRegisterType() = 0;
58 61
59 // Returns the policy type to be used for requesting policies from the device 62 // Returns the policy type to be used for requesting policies from the device
60 // management server. 63 // management server.
61 virtual std::string GetPolicyType() = 0; 64 virtual std::string GetPolicyType() = 0;
62 65
63 // Retrieves authentication credentials to use when talking to the device 66 // Retrieves authentication credentials to use when talking to the device
64 // management service. Returns true if the data is available and writes the 67 // management service. Returns true if the data is available and writes the
(...skipping 16 matching lines...) Expand all
81 84
82 private: 85 private:
83 ObserverList<Observer, true> observer_list_; 86 ObserverList<Observer, true> observer_list_;
84 87
85 DISALLOW_COPY_AND_ASSIGN(CloudPolicyIdentityStrategy); 88 DISALLOW_COPY_AND_ASSIGN(CloudPolicyIdentityStrategy);
86 }; 89 };
87 90
88 } // namespace policy 91 } // namespace policy
89 92
90 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_ 93 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_IDENTITY_STRATEGY_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_controller_unittest.cc ('k') | chrome/browser/policy/device_policy_identity_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698