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

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

Issue 6882038: Move writing information to the lockbox after registering with the DM server. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reverted some whitespaces. 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_DEVICE_POLICY_IDENTITY_STRATEGY_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_POLICY_IDENTITY_STRATEGY_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_POLICY_IDENTITY_STRATEGY_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_POLICY_IDENTITY_STRATEGY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 // be used for future authentication with DMServer. 26 // be used for future authentication with DMServer.
27 void SetAuthCredentials(const std::string& username, 27 void SetAuthCredentials(const std::string& username,
28 const std::string& auth_token); 28 const std::string& auth_token);
29 29
30 // Sets the device's credentials when they have been read from disk after 30 // Sets the device's credentials when they have been read from disk after
31 // a reboot. 31 // a reboot.
32 void SetDeviceManagementCredentials(const std::string& owner_email, 32 void SetDeviceManagementCredentials(const std::string& owner_email,
33 const std::string& device_id, 33 const std::string& device_id,
34 const std::string& device_token); 34 const std::string& device_token);
35 35
36 // Initiates a policy fetch after a successful device registration.
Mattias Nissler (ping if slow) 2011/04/20 14:32:49 Document that the device token needs to have been
37 void FetchPolicy();
38
36 // CloudPolicyIdentityStrategy implementation: 39 // CloudPolicyIdentityStrategy implementation:
37 virtual std::string GetDeviceToken() OVERRIDE; 40 virtual std::string GetDeviceToken() OVERRIDE;
38 virtual std::string GetDeviceID() OVERRIDE; 41 virtual std::string GetDeviceID() OVERRIDE;
39 virtual std::string GetMachineID() OVERRIDE; 42 virtual std::string GetMachineID() OVERRIDE;
40 virtual std::string GetMachineModel() OVERRIDE; 43 virtual std::string GetMachineModel() OVERRIDE;
41 virtual em::DeviceRegisterRequest_Type GetPolicyRegisterType() OVERRIDE; 44 virtual em::DeviceRegisterRequest_Type GetPolicyRegisterType() OVERRIDE;
42 virtual std::string GetPolicyType() OVERRIDE; 45 virtual std::string GetPolicyType() OVERRIDE;
43 virtual bool GetCredentials(std::string* username, 46 virtual bool GetCredentials(std::string* username,
44 std::string* auth_token) OVERRIDE; 47 std::string* auth_token) OVERRIDE;
45 virtual void OnDeviceTokenAvailable(const std::string& token) OVERRIDE; 48 virtual void OnDeviceTokenAvailable(const std::string& token) OVERRIDE;
(...skipping 14 matching lines...) Expand all
60 63
61 // Current token. Empty if not available. 64 // Current token. Empty if not available.
62 std::string device_token_; 65 std::string device_token_;
63 66
64 DISALLOW_COPY_AND_ASSIGN(DevicePolicyIdentityStrategy); 67 DISALLOW_COPY_AND_ASSIGN(DevicePolicyIdentityStrategy);
65 }; 68 };
66 69
67 } // namespace policy 70 } // namespace policy
68 71
69 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_IDENTITY_STRATEGY_H_ 72 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_IDENTITY_STRATEGY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698