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

Side by Side Diff: chrome/browser/policy/device_token_fetcher.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_DEVICE_TOKEN_FETCHER_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 STATE_TOKEN_AVAILABLE, 72 STATE_TOKEN_AVAILABLE,
73 // Device unmanaged. 73 // Device unmanaged.
74 STATE_UNMANAGED, 74 STATE_UNMANAGED,
75 // The device is not enlisted for the domain. 75 // The device is not enlisted for the domain.
76 STATE_BAD_SERIAL, 76 STATE_BAD_SERIAL,
77 // Error, retry later. 77 // Error, retry later.
78 STATE_ERROR, 78 STATE_ERROR,
79 // Temporary error. Retry sooner. 79 // Temporary error. Retry sooner.
80 STATE_TEMPORARY_ERROR, 80 STATE_TEMPORARY_ERROR,
81 // Server rejected the auth token. 81 // Server rejected the auth token.
82 STATE_BAD_AUTH 82 STATE_BAD_AUTH,
83 // Server didn't send enrollment mode or the enrollment mode is not known to
84 // the client.
85 STATE_BAD_ENROLLMENT_MODE,
83 }; 86 };
84 87
85 // Common initialization helper. 88 // Common initialization helper.
86 void Initialize(DeviceManagementService* service, 89 void Initialize(DeviceManagementService* service,
87 CloudPolicyCacheBase* cache, 90 CloudPolicyCacheBase* cache,
88 CloudPolicyDataStore* data, 91 CloudPolicyDataStore* data,
89 PolicyNotifier* notifier, 92 PolicyNotifier* notifier,
90 DelayedWorkScheduler* scheduler); 93 DelayedWorkScheduler* scheduler);
91 94
92 // Resets |backend_|, then uses |auth_token_| and |device_id_| to perform 95 // Resets |backend_|, then uses |auth_token_| and |device_id_| to perform
(...skipping 30 matching lines...) Expand all
123 CloudPolicyDataStore* data_store_; 126 CloudPolicyDataStore* data_store_;
124 127
125 scoped_ptr<DelayedWorkScheduler> scheduler_; 128 scoped_ptr<DelayedWorkScheduler> scheduler_;
126 129
127 DISALLOW_COPY_AND_ASSIGN(DeviceTokenFetcher); 130 DISALLOW_COPY_AND_ASSIGN(DeviceTokenFetcher);
128 }; 131 };
129 132
130 } // namespace policy 133 } // namespace policy
131 134
132 #endif // CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_ 135 #endif // CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_policy_cache_unittest.cc ('k') | chrome/browser/policy/device_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698