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

Side by Side Diff: chrome/browser/policy/browser_policy_connector.h

Issue 7785032: Revert 98987 - Pass user_affiliation request parameter on user cloud policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/task.h" 14 #include "base/task.h"
15 #include "chrome/browser/policy/cloud_policy_data_store.h"
16 #include "chrome/browser/policy/enterprise_install_attributes.h" 15 #include "chrome/browser/policy/enterprise_install_attributes.h"
17 #include "content/common/notification_observer.h" 16 #include "content/common/notification_observer.h"
18 #include "content/common/notification_registrar.h" 17 #include "content/common/notification_registrar.h"
19 18
20 class FilePath; 19 class FilePath;
21 class TestingBrowserProcess; 20 class TestingBrowserProcess;
22 class TokenService; 21 class TokenService;
23 22
24 namespace policy { 23 namespace policy {
25 24
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 const NotificationDetails& details) OVERRIDE; 127 const NotificationDetails& details) OVERRIDE;
129 128
130 // Initializes the device cloud policy infrasturcture. 129 // Initializes the device cloud policy infrasturcture.
131 void InitializeDevicePolicy(); 130 void InitializeDevicePolicy();
132 131
133 // Activates the device cloud policy subsystem. This will be posted as a task 132 // Activates the device cloud policy subsystem. This will be posted as a task
134 // from InitializeDevicePolicy since it needs to wait for the message loops to 133 // from InitializeDevicePolicy since it needs to wait for the message loops to
135 // be running. 134 // be running.
136 void InitializeDevicePolicySubsystem(); 135 void InitializeDevicePolicySubsystem();
137 136
138 // Works out the user affiliation by checking the given |user_name| against
139 // the installation attributes.
140 policy::CloudPolicyDataStore::UserAffiliation GetUserAffiliation(
141 const std::string& user_name);
142
143 static BrowserPolicyConnector* CreateForTests(); 137 static BrowserPolicyConnector* CreateForTests();
144 static ConfigurationPolicyProvider* CreateManagedPlatformProvider(); 138 static ConfigurationPolicyProvider* CreateManagedPlatformProvider();
145 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider(); 139 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider();
146 140
147 scoped_ptr<ConfigurationPolicyProvider> managed_platform_provider_; 141 scoped_ptr<ConfigurationPolicyProvider> managed_platform_provider_;
148 scoped_ptr<ConfigurationPolicyProvider> recommended_platform_provider_; 142 scoped_ptr<ConfigurationPolicyProvider> recommended_platform_provider_;
149 143
150 scoped_ptr<CloudPolicyProvider> managed_cloud_provider_; 144 scoped_ptr<CloudPolicyProvider> managed_cloud_provider_;
151 scoped_ptr<CloudPolicyProvider> recommended_cloud_provider_; 145 scoped_ptr<CloudPolicyProvider> recommended_cloud_provider_;
152 146
(...skipping 15 matching lines...) Expand all
168 // Weak reference to the TokenService we are listening to for user cloud 162 // Weak reference to the TokenService we are listening to for user cloud
169 // policy authentication tokens. 163 // policy authentication tokens.
170 TokenService* token_service_; 164 TokenService* token_service_;
171 165
172 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 166 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
173 }; 167 };
174 168
175 } // namespace policy 169 } // namespace policy
176 170
177 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 171 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698