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

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

Issue 502343002: Add account_id to signin manager notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isauth
Patch Set: Fix android trybots Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // once the policy fetch is complete, passing true if the policy fetch 76 // once the policy fetch is complete, passing true if the policy fetch
77 // succeeded. 77 // succeeded.
78 void FetchPolicyForSignedInUser( 78 void FetchPolicyForSignedInUser(
79 const std::string& username, 79 const std::string& username,
80 const std::string& dm_token, 80 const std::string& dm_token,
81 const std::string& client_id, 81 const std::string& client_id,
82 scoped_refptr<net::URLRequestContextGetter> profile_request_context, 82 scoped_refptr<net::URLRequestContextGetter> profile_request_context,
83 const PolicyFetchCallback& callback); 83 const PolicyFetchCallback& callback);
84 84
85 // SigninManagerBase::Observer implementation: 85 // SigninManagerBase::Observer implementation:
86 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; 86 virtual void GoogleSignedOut(const std::string& account_id,
87 const std::string& username) OVERRIDE;
87 88
88 // content::NotificationObserver implementation: 89 // content::NotificationObserver implementation:
89 virtual void Observe(int type, 90 virtual void Observe(int type,
90 const content::NotificationSource& source, 91 const content::NotificationSource& source,
91 const content::NotificationDetails& details) OVERRIDE; 92 const content::NotificationDetails& details) OVERRIDE;
92 93
93 // CloudPolicyService::Observer implementation: 94 // CloudPolicyService::Observer implementation:
94 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; 95 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE;
95 96
96 // CloudPolicyClient::Observer implementation: 97 // CloudPolicyClient::Observer implementation:
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 scoped_refptr<net::URLRequestContextGetter> system_request_context_; 176 scoped_refptr<net::URLRequestContextGetter> system_request_context_;
176 177
177 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_; 178 base::WeakPtrFactory<UserPolicySigninServiceBase> weak_factory_;
178 179
179 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase); 180 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceBase);
180 }; 181 };
181 182
182 } // namespace policy 183 } // namespace policy
183 184
184 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_ 185 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698