OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_TOKEN_FORWARDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/policy/cloud/cloud_policy_service.h" | |
10 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 9 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
| 10 #include "components/policy/core/common/cloud/cloud_policy_service.h" |
11 #include "google_apis/gaia/oauth2_token_service.h" | 11 #include "google_apis/gaia/oauth2_token_service.h" |
12 | 12 |
13 class ProfileOAuth2TokenService; | 13 class ProfileOAuth2TokenService; |
14 | 14 |
15 namespace policy { | 15 namespace policy { |
16 | 16 |
17 class UserCloudPolicyManagerChromeOS; | 17 class UserCloudPolicyManagerChromeOS; |
18 | 18 |
19 // A PKS that observes a ProfileOAuth2TokenService and mints the policy access | 19 // A PKS that observes a ProfileOAuth2TokenService and mints the policy access |
20 // token for the UserCloudPolicyManagerChromeOS, when the token service becomes | 20 // token for the UserCloudPolicyManagerChromeOS, when the token service becomes |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 UserCloudPolicyManagerChromeOS* manager_; | 57 UserCloudPolicyManagerChromeOS* manager_; |
58 ProfileOAuth2TokenService* token_service_; | 58 ProfileOAuth2TokenService* token_service_; |
59 scoped_ptr<OAuth2TokenService::Request> request_; | 59 scoped_ptr<OAuth2TokenService::Request> request_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyTokenForwarder); | 61 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyTokenForwarder); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace policy | 64 } // namespace policy |
65 | 65 |
66 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_ | 66 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_ |
OLD | NEW |