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

Side by Side Diff: chrome/browser/policy/cloud/cloud_policy_service.h

Issue 12538009: Public Sessions: fetch device robot api token during enterprise enrollment. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
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_CLOUD_POLICY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // or aborts because of errors. 51 // or aborts because of errors.
52 void RefreshPolicy(const RefreshPolicyCallback& callback); 52 void RefreshPolicy(const RefreshPolicyCallback& callback);
53 53
54 // Adds/Removes an Observer for this object. 54 // Adds/Removes an Observer for this object.
55 void AddObserver(Observer* observer); 55 void AddObserver(Observer* observer);
56 void RemoveObserver(Observer* observer); 56 void RemoveObserver(Observer* observer);
57 57
58 // CloudPolicyClient::Observer: 58 // CloudPolicyClient::Observer:
59 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; 59 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE;
60 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; 60 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE;
61 virtual void OnRobotAuthCodesFetched(CloudPolicyClient* client) OVERRIDE;
61 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE; 62 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE;
62 63
63 // CloudPolicyStore::Observer: 64 // CloudPolicyStore::Observer:
64 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; 65 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE;
65 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; 66 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE;
66 67
67 bool IsInitializationComplete() const { return initialization_complete_; } 68 bool IsInitializationComplete() const { return initialization_complete_; }
68 69
69 private: 70 private:
70 // Helper function that is called when initialization may be complete, and 71 // Helper function that is called when initialization may be complete, and
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Observers who will receive notifications when the service has finished 105 // Observers who will receive notifications when the service has finished
105 // initializing. 106 // initializing.
106 ObserverList<Observer, true> observers_; 107 ObserverList<Observer, true> observers_;
107 108
108 DISALLOW_COPY_AND_ASSIGN(CloudPolicyService); 109 DISALLOW_COPY_AND_ASSIGN(CloudPolicyService);
109 }; 110 };
110 111
111 } // namespace policy 112 } // namespace policy
112 113
113 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_ 114 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698