Chromium Code Reviews| 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_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 bool wait_for_policy_fetch); | 116 bool wait_for_policy_fetch); |
| 117 | 117 |
| 118 // Installs a token service for user policy. | 118 // Installs a token service for user policy. |
| 119 void SetUserPolicyTokenService(TokenService* token_service); | 119 void SetUserPolicyTokenService(TokenService* token_service); |
| 120 | 120 |
| 121 // Registers for user policy (if not already registered), using the passed | 121 // Registers for user policy (if not already registered), using the passed |
| 122 // OAuth V2 token for authentication. |oauth_token| can be empty to signal | 122 // OAuth V2 token for authentication. |oauth_token| can be empty to signal |
| 123 // that an attempt to fetch the token was made but failed, or that oauth | 123 // that an attempt to fetch the token was made but failed, or that oauth |
| 124 // isn't being used. | 124 // isn't being used. |
| 125 void RegisterForUserPolicy(const std::string& oauth_token); | 125 void RegisterForUserPolicy(const std::string& oauth_token); |
| 126 | 126 |
|
Mattias Nissler (ping if slow)
2012/02/21 10:37:46
Didn't you want to put a comment here saying that
pastarmovj
2012/02/21 14:57:08
I was kind of unsure whether putting there this co
| |
| 127 const CloudPolicyDataStore* GetDeviceCloudPolicyDataStore() const; | 127 CloudPolicyDataStore* GetDeviceCloudPolicyDataStore(); |
| 128 const CloudPolicyDataStore* GetUserCloudPolicyDataStore() const; | 128 CloudPolicyDataStore* GetUserCloudPolicyDataStore(); |
| 129 | 129 |
| 130 const ConfigurationPolicyHandlerList* GetHandlerList() const; | 130 const ConfigurationPolicyHandlerList* GetHandlerList() const; |
| 131 | 131 |
| 132 // Works out the user affiliation by checking the given |user_name| against | 132 // Works out the user affiliation by checking the given |user_name| against |
| 133 // the installation attributes. | 133 // the installation attributes. |
| 134 UserAffiliation GetUserAffiliation(const std::string& user_name); | 134 UserAffiliation GetUserAffiliation(const std::string& user_name); |
| 135 | 135 |
| 136 private: | 136 private: |
| 137 // content::NotificationObserver method overrides: | 137 // content::NotificationObserver method overrides: |
| 138 virtual void Observe(int type, | 138 virtual void Observe(int type, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 | 182 |
| 183 // Used to convert policies to preferences. | 183 // Used to convert policies to preferences. |
| 184 ConfigurationPolicyHandlerList handler_list_; | 184 ConfigurationPolicyHandlerList handler_list_; |
| 185 | 185 |
| 186 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 186 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 } // namespace policy | 189 } // namespace policy |
| 190 | 190 |
| 191 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 191 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |