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

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

Issue 9403010: Add support for kiosk mode on the client. Make sure the settings are written in the lockbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nitty nit. Created 8 years, 10 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_CLOUD_POLICY_SUBSYSTEM_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/prefs/pref_change_registrar.h" 10 #include "chrome/browser/prefs/pref_change_registrar.h"
(...skipping 28 matching lines...) Expand all
39 SUCCESS // Policy has been fetched successfully and is in effect. 39 SUCCESS // Policy has been fetched successfully and is in effect.
40 }; 40 };
41 41
42 enum ErrorDetails { 42 enum ErrorDetails {
43 NO_DETAILS, // No error, so no error details either. 43 NO_DETAILS, // No error, so no error details either.
44 DMTOKEN_NETWORK_ERROR, // DeviceTokenFetcher encountered a network error. 44 DMTOKEN_NETWORK_ERROR, // DeviceTokenFetcher encountered a network error.
45 POLICY_NETWORK_ERROR, // CloudPolicyController encountered a network error. 45 POLICY_NETWORK_ERROR, // CloudPolicyController encountered a network error.
46 BAD_DMTOKEN, // The server rejected the DMToken. 46 BAD_DMTOKEN, // The server rejected the DMToken.
47 POLICY_LOCAL_ERROR, // The policy cache encountered a local error. 47 POLICY_LOCAL_ERROR, // The policy cache encountered a local error.
48 SIGNATURE_MISMATCH, // The policy cache detected a signature mismatch. 48 SIGNATURE_MISMATCH, // The policy cache detected a signature mismatch.
49 BAD_SERIAL_NUMBER // The serial number of the device is not valid. 49 BAD_SERIAL_NUMBER, // The serial number of the device is not valid.
50 AUTO_ENROLLMENT_ERROR, // Auto-enrollment is not supported.
51 BAD_ENROLLMENT_MODE, // The enrollment mode was not recognized.
50 }; 52 };
51 53
52 class Observer { 54 class Observer {
53 public: 55 public:
54 virtual ~Observer() {} 56 virtual ~Observer() {}
55 virtual void OnPolicyStateChanged(PolicySubsystemState state, 57 virtual void OnPolicyStateChanged(PolicySubsystemState state,
56 ErrorDetails error_details) = 0; 58 ErrorDetails error_details) = 0;
57 }; 59 };
58 60
59 class ObserverRegistrar { 61 class ObserverRegistrar {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 scoped_ptr<CloudPolicyController> cloud_policy_controller_; 153 scoped_ptr<CloudPolicyController> cloud_policy_controller_;
152 154
153 std::string device_management_url_; 155 std::string device_management_url_;
154 156
155 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); 157 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem);
156 }; 158 };
157 159
158 } // namespace policy 160 } // namespace policy
159 161
160 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 162 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_data_store.cc ('k') | chrome/browser/policy/cloud_policy_subsystem_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698