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

Side by Side Diff: chrome/browser/policy/cloud/user_policy_signin_service.h

Issue 49783006: policy: Remove SigninManager from UserCloudPolicyStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 1 month 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_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // CloudPolicyService::Observer implementation: 53 // CloudPolicyService::Observer implementation:
54 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; 54 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE;
55 55
56 // BrowserContextKeyedService implementation: 56 // BrowserContextKeyedService implementation:
57 virtual void Shutdown() OVERRIDE; 57 virtual void Shutdown() OVERRIDE;
58 58
59 protected: 59 protected:
60 // UserPolicySigninServiceBase implementation: 60 // UserPolicySigninServiceBase implementation:
61 virtual void InitializeUserCloudPolicyManager( 61 virtual void InitializeUserCloudPolicyManager(
62 const std::string& username,
62 scoped_ptr<CloudPolicyClient> client) OVERRIDE; 63 scoped_ptr<CloudPolicyClient> client) OVERRIDE;
63 64
64 virtual void PrepareForUserCloudPolicyManagerShutdown() OVERRIDE; 65 virtual void PrepareForUserCloudPolicyManagerShutdown() OVERRIDE;
65 virtual void ShutdownUserCloudPolicyManager() OVERRIDE; 66 virtual void ShutdownUserCloudPolicyManager() OVERRIDE;
66 67
67 private: 68 private:
68 // Fetches an OAuth token to allow the cloud policy service to register with 69 // Fetches an OAuth token to allow the cloud policy service to register with
69 // the cloud policy server. |oauth_login_token| should contain an OAuth login 70 // the cloud policy server. |oauth_login_token| should contain an OAuth login
70 // refresh token that can be downscoped to get an access token for the 71 // refresh token that can be downscoped to get an access token for the
71 // device_management service. 72 // device_management service.
(...skipping 15 matching lines...) Expand all
87 // Weak pointer to the token service we use to authenticate during 88 // Weak pointer to the token service we use to authenticate during
88 // CloudPolicyClient registration. 89 // CloudPolicyClient registration.
89 ProfileOAuth2TokenService* oauth2_token_service_; 90 ProfileOAuth2TokenService* oauth2_token_service_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninService); 92 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninService);
92 }; 93 };
93 94
94 } // namespace policy 95 } // namespace policy
95 96
96 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_H_ 97 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698