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

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

Issue 9233008: Flag auto-enrollment register requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 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 CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 // Returns a weak pointer to the CloudPolicySubsystem corresponding to the 63 // Returns a weak pointer to the CloudPolicySubsystem corresponding to the
64 // user policy managed by this policy connector, or NULL if no such 64 // user policy managed by this policy connector, or NULL if no such
65 // subsystem exists (i.e. when user cloud policy is not active due to 65 // subsystem exists (i.e. when user cloud policy is not active due to
66 // unmanaged or not logged in). 66 // unmanaged or not logged in).
67 CloudPolicySubsystem* user_cloud_policy_subsystem() { 67 CloudPolicySubsystem* user_cloud_policy_subsystem() {
68 return user_cloud_policy_subsystem_.get(); 68 return user_cloud_policy_subsystem_.get();
69 } 69 }
70 70
71 // Triggers registration for device policy. 71 // Triggers registration for device policy, using the |owner_email| account.
72 // |token| is an oauth token to authenticate the registration request, and
73 // |known_machine_id| is true if the server should do additional checks based
74 // on the machine_id used for the request.
72 void RegisterForDevicePolicy(const std::string& owner_email, 75 void RegisterForDevicePolicy(const std::string& owner_email,
73 const std::string& token); 76 const std::string& token,
77 bool known_machine_id);
74 78
75 // Returns true if this device is managed by an enterprise (as opposed to 79 // Returns true if this device is managed by an enterprise (as opposed to
76 // a local owner). 80 // a local owner).
77 bool IsEnterpriseManaged(); 81 bool IsEnterpriseManaged();
78 82
79 // Locks the device to an enterprise domain. 83 // Locks the device to an enterprise domain.
80 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user); 84 EnterpriseInstallAttributes::LockResult LockDevice(const std::string& user);
81 85
82 // Returns the device serial number, or an empty string if not available. 86 // Returns the device serial number, or an empty string if not available.
83 static std::string GetSerialNumber(); 87 static std::string GetSerialNumber();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 176
173 // Used to convert policies to preferences. 177 // Used to convert policies to preferences.
174 ConfigurationPolicyHandlerList handler_list_; 178 ConfigurationPolicyHandlerList handler_list_;
175 179
176 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 180 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
177 }; 181 };
178 182
179 } // namespace policy 183 } // namespace policy
180 184
181 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 185 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698