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

Side by Side Diff: chrome/browser/policy/cloud_policy_subsystem.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_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_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
(...skipping 22 matching lines...) Expand all
33 class CloudPolicySubsystem 33 class CloudPolicySubsystem
34 : public NotificationObserver, 34 : public NotificationObserver,
35 public net::NetworkChangeNotifier::IPAddressObserver { 35 public net::NetworkChangeNotifier::IPAddressObserver {
36 public: 36 public:
37 enum PolicySubsystemState { 37 enum PolicySubsystemState {
38 UNENROLLED, // No enrollment attempt has been performed yet. 38 UNENROLLED, // No enrollment attempt has been performed yet.
39 BAD_GAIA_TOKEN, // The server rejected the GAIA auth token. 39 BAD_GAIA_TOKEN, // The server rejected the GAIA auth token.
40 UNMANAGED, // This device is unmanaged. 40 UNMANAGED, // This device is unmanaged.
41 NETWORK_ERROR, // A network error occurred, retrying makes sense. 41 NETWORK_ERROR, // A network error occurred, retrying makes sense.
42 LOCAL_ERROR, // Retrying is futile. 42 LOCAL_ERROR, // Retrying is futile.
43 TOKEN_FETCHED, // Device has been successfully registered.
43 SUCCESS // Policy has been fetched successfully and is in effect. 44 SUCCESS // Policy has been fetched successfully and is in effect.
44 }; 45 };
45 46
46 enum ErrorDetails { 47 enum ErrorDetails {
47 NO_DETAILS, // No error, so no error details either. 48 NO_DETAILS, // No error, so no error details either.
48 DMTOKEN_NETWORK_ERROR, // DeviceTokenFetcher encountered a network error. 49 DMTOKEN_NETWORK_ERROR, // DeviceTokenFetcher encountered a network error.
49 POLICY_NETWORK_ERROR, // CloudPolicyController encountered a network error. 50 POLICY_NETWORK_ERROR, // CloudPolicyController encountered a network error.
50 BAD_DMTOKEN, // The server rejected the DMToken. 51 BAD_DMTOKEN, // The server rejected the DMToken.
51 POLICY_LOCAL_ERROR, // The policy cache encountered a local error. 52 POLICY_LOCAL_ERROR, // The policy cache encountered a local error.
52 SIGNATURE_MISMATCH, // The policy cache detected a signature mismatch. 53 SIGNATURE_MISMATCH, // The policy cache detected a signature mismatch.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_; 127 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_;
127 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_; 128 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_;
128 scoped_ptr<CloudPolicyController> cloud_policy_controller_; 129 scoped_ptr<CloudPolicyController> cloud_policy_controller_;
129 130
130 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); 131 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem);
131 }; 132 };
132 133
133 } // namespace policy 134 } // namespace policy
134 135
135 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 136 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698