| OLD | NEW |
| 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 20 matching lines...) Expand all Loading... |
| 31 class ResourceCache; | 31 class ResourceCache; |
| 32 class PolicyOAuth2TokenFetcher; | 32 class PolicyOAuth2TokenFetcher; |
| 33 | 33 |
| 34 // UserCloudPolicyManagerChromeOS implements logic for initializing user policy | 34 // UserCloudPolicyManagerChromeOS implements logic for initializing user policy |
| 35 // on Chrome OS. | 35 // on Chrome OS. |
| 36 class UserCloudPolicyManagerChromeOS | 36 class UserCloudPolicyManagerChromeOS |
| 37 : public CloudPolicyManager, | 37 : public CloudPolicyManager, |
| 38 public CloudPolicyClient::Observer, | 38 public CloudPolicyClient::Observer, |
| 39 public CloudPolicyService::Observer, | 39 public CloudPolicyService::Observer, |
| 40 public ComponentCloudPolicyService::Delegate, | 40 public ComponentCloudPolicyService::Delegate, |
| 41 public ProfileKeyedService { | 41 public BrowserContextKeyedService { |
| 42 public: | 42 public: |
| 43 // If |wait_for_policy_fetch| is true, IsInitializationComplete() will return | 43 // If |wait_for_policy_fetch| is true, IsInitializationComplete() will return |
| 44 // false as long as there hasn't been a successful policy fetch. | 44 // false as long as there hasn't been a successful policy fetch. |
| 45 UserCloudPolicyManagerChromeOS( | 45 UserCloudPolicyManagerChromeOS( |
| 46 scoped_ptr<CloudPolicyStore> store, | 46 scoped_ptr<CloudPolicyStore> store, |
| 47 scoped_ptr<ResourceCache> resource_cache, | 47 scoped_ptr<ResourceCache> resource_cache, |
| 48 bool wait_for_policy_fetch); | 48 bool wait_for_policy_fetch); |
| 49 virtual ~UserCloudPolicyManagerChromeOS(); | 49 virtual ~UserCloudPolicyManagerChromeOS(); |
| 50 | 50 |
| 51 // Initializes the cloud connection. |local_state| and | 51 // Initializes the cloud connection. |local_state| and |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // The OAuth2 login tokens fetched by the |token_fetcher_|, which can be | 131 // The OAuth2 login tokens fetched by the |token_fetcher_|, which can be |
| 132 // retrieved using oauth2_tokens(). | 132 // retrieved using oauth2_tokens(). |
| 133 GaiaAuthConsumer::ClientOAuthResult oauth2_login_tokens_; | 133 GaiaAuthConsumer::ClientOAuthResult oauth2_login_tokens_; |
| 134 | 134 |
| 135 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); | 135 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace policy | 138 } // namespace policy |
| 139 | 139 |
| 140 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 140 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| OLD | NEW |