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

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

Issue 10664017: Introduce a new error code from the DM server - 402 - missing licenses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 50 AUTO_ENROLLMENT_ERROR, // Auto-enrollment is not supported.
51 BAD_ENROLLMENT_MODE, // The enrollment mode was not recognized. 51 BAD_ENROLLMENT_MODE, // The enrollment mode was not recognized.
52 MISSING_LICENSES, // There are no valid licenses for this domain left.
52 }; 53 };
53 54
54 class Observer { 55 class Observer {
55 public: 56 public:
56 virtual ~Observer() {} 57 virtual ~Observer() {}
57 virtual void OnPolicyStateChanged(PolicySubsystemState state, 58 virtual void OnPolicyStateChanged(PolicySubsystemState state,
58 ErrorDetails error_details) = 0; 59 ErrorDetails error_details) = 0;
59 }; 60 };
60 61
61 class ObserverRegistrar { 62 class ObserverRegistrar {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 scoped_ptr<CloudPolicyController> cloud_policy_controller_; 154 scoped_ptr<CloudPolicyController> cloud_policy_controller_;
154 155
155 std::string device_management_url_; 156 std::string device_management_url_;
156 157
157 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); 158 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem);
158 }; 159 };
159 160
160 } // namespace policy 161 } // namespace policy
161 162
162 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 163 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698