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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h

Issue 72793003: ComponentCloudPolicyService tracks the signin state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // CloudPolicyService::Observer: 90 // CloudPolicyService::Observer:
91 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; 91 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE;
92 92
93 // CloudPolicyClient::Observer: 93 // CloudPolicyClient::Observer:
94 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; 94 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE;
95 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; 95 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE;
96 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE; 96 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE;
97 97
98 // ComponentCloudPolicyService::Delegate: 98 // ComponentCloudPolicyService::Delegate:
99 virtual void OnComponentCloudPolicyRefreshNeeded() OVERRIDE;
100 virtual void OnComponentCloudPolicyUpdated() OVERRIDE; 99 virtual void OnComponentCloudPolicyUpdated() OVERRIDE;
101 100
102 private: 101 private:
103 void CreateComponentCloudPolicyService( 102 void CreateComponentCloudPolicyService(
104 const scoped_refptr<net::URLRequestContextGetter>& request_context); 103 const scoped_refptr<net::URLRequestContextGetter>& request_context);
105 104
106 // Fetches a policy token using the authentication context of the signin 105 // Fetches a policy token using the authentication context of the signin
107 // Profile, and calls back to OnOAuth2PolicyTokenFetched when done. 106 // Profile, and calls back to OnOAuth2PolicyTokenFetched when done.
108 void FetchPolicyOAuthTokenUsingSigninProfile(); 107 void FetchPolicyOAuthTokenUsingSigninProfile();
109 108
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 base::Time time_init_completed_; 160 base::Time time_init_completed_;
162 base::Time time_token_available_; 161 base::Time time_token_available_;
163 base::Time time_client_registered_; 162 base::Time time_client_registered_;
164 163
165 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); 164 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS);
166 }; 165 };
167 166
168 } // namespace policy 167 } // namespace policy
169 168
170 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 169 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698