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

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

Issue 15061007: Added a PolicyDomainDescriptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | Annotate | Revision Log
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Returns the OAuth2 tokens obtained by the manager for the initial 65 // Returns the OAuth2 tokens obtained by the manager for the initial
66 // registration, if it had to perform a blocking policy fetch. 66 // registration, if it had to perform a blocking policy fetch.
67 const GaiaAuthConsumer::ClientOAuthResult& oauth2_tokens() const { 67 const GaiaAuthConsumer::ClientOAuthResult& oauth2_tokens() const {
68 return oauth2_login_tokens_; 68 return oauth2_login_tokens_;
69 } 69 }
70 70
71 // ConfigurationPolicyProvider: 71 // ConfigurationPolicyProvider:
72 virtual void Shutdown() OVERRIDE; 72 virtual void Shutdown() OVERRIDE;
73 virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE; 73 virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE;
74 virtual void RegisterPolicyDomain( 74 virtual void RegisterPolicyDomain(
75 PolicyDomain domain, 75 scoped_refptr<const PolicyDomainDescriptor> descriptor) OVERRIDE;
76 const std::set<std::string>& component_ids) OVERRIDE;
77 76
78 // CloudPolicyManager: 77 // CloudPolicyManager:
79 virtual scoped_ptr<PolicyBundle> CreatePolicyBundle() OVERRIDE; 78 virtual scoped_ptr<PolicyBundle> CreatePolicyBundle() OVERRIDE;
80 79
81 // CloudPolicyService::Observer: 80 // CloudPolicyService::Observer:
82 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; 81 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE;
83 82
84 // CloudPolicyClient::Observer: 83 // CloudPolicyClient::Observer:
85 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; 84 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE;
86 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; 85 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // The OAuth2 login tokens fetched by the |token_fetcher_|, which can be 130 // The OAuth2 login tokens fetched by the |token_fetcher_|, which can be
132 // retrieved using oauth2_tokens(). 131 // retrieved using oauth2_tokens().
133 GaiaAuthConsumer::ClientOAuthResult oauth2_login_tokens_; 132 GaiaAuthConsumer::ClientOAuthResult oauth2_login_tokens_;
134 133
135 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); 134 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS);
136 }; 135 };
137 136
138 } // namespace policy 137 } // namespace policy
139 138
140 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 139 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698