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

Side by Side Diff: chrome/browser/chromeos/login/oauth2_login_manager.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // OAuth2 specialization of OAuthLoginManager. 28 // OAuth2 specialization of OAuthLoginManager.
29 class OAuth2LoginManager : public OAuthLoginManager, 29 class OAuth2LoginManager : public OAuthLoginManager,
30 public content::NotificationObserver, 30 public content::NotificationObserver,
31 public OAuth2LoginVerifier::Delegate, 31 public OAuth2LoginVerifier::Delegate,
32 public OAuth2TokenFetcher::Delegate { 32 public OAuth2TokenFetcher::Delegate {
33 public: 33 public:
34 explicit OAuth2LoginManager(OAuthLoginManager::Delegate* delegate); 34 explicit OAuth2LoginManager(OAuthLoginManager::Delegate* delegate);
35 virtual ~OAuth2LoginManager(); 35 virtual ~OAuth2LoginManager();
36 36
37 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 37 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
38 38
39 // OAuthLoginManager overrides. 39 // OAuthLoginManager overrides.
40 virtual void RestoreSession( 40 virtual void RestoreSession(
41 Profile* user_profile, 41 Profile* user_profile,
42 net::URLRequestContextGetter* auth_request_context, 42 net::URLRequestContextGetter* auth_request_context,
43 SessionRestoreStrategy restore_strategy, 43 SessionRestoreStrategy restore_strategy,
44 const std::string& oauth2_refresh_token, 44 const std::string& oauth2_refresh_token,
45 const std::string& auth_code) OVERRIDE; 45 const std::string& auth_code) OVERRIDE;
46 virtual void ContinueSessionRestore() OVERRIDE; 46 virtual void ContinueSessionRestore() OVERRIDE;
47 virtual void Stop() OVERRIDE; 47 virtual void Stop() OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 std::string refresh_token_; 117 std::string refresh_token_;
118 // Authorization code for fetching OAuth2 tokens. 118 // Authorization code for fetching OAuth2 tokens.
119 std::string auth_code_; 119 std::string auth_code_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager); 121 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager);
122 }; 122 };
123 123
124 } // namespace chromeos 124 } // namespace chromeos
125 125
126 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_ 126 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_to_mobile_service.cc ('k') | chrome/browser/chromeos/login/oauth2_login_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698