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

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

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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) 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"
11 #include "chrome/browser/chromeos/login/oauth2_login_verifier.h" 11 #include "chrome/browser/chromeos/login/oauth2_login_verifier.h"
12 #include "chrome/browser/chromeos/login/oauth2_token_fetcher.h" 12 #include "chrome/browser/chromeos/login/oauth2_token_fetcher.h"
13 #include "chrome/browser/chromeos/login/oauth_login_manager.h" 13 #include "chrome/browser/chromeos/login/oauth_login_manager.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "net/url_request/url_request_context_getter.h" 16 #include "net/url_request/url_request_context_getter.h"
17 17
18 class GoogleServiceAuthError; 18 class GoogleServiceAuthError;
19 class PrefRegistrySyncable;
20 class Profile; 19 class Profile;
21 class TokenService; 20 class TokenService;
22 21
22 namespace user_prefs {
23 class PrefRegistrySyncable;
24 }
25
23 namespace chromeos { 26 namespace chromeos {
24 27
25 // OAuth2 specialization of OAuthLoginManager. 28 // OAuth2 specialization of OAuthLoginManager.
26 class OAuth2LoginManager : public OAuthLoginManager, 29 class OAuth2LoginManager : public OAuthLoginManager,
27 public content::NotificationObserver, 30 public content::NotificationObserver,
28 public OAuth2LoginVerifier::Delegate, 31 public OAuth2LoginVerifier::Delegate,
29 public OAuth2TokenFetcher::Delegate { 32 public OAuth2TokenFetcher::Delegate {
30 public: 33 public:
31 explicit OAuth2LoginManager(OAuthLoginManager::Delegate* delegate); 34 explicit OAuth2LoginManager(OAuthLoginManager::Delegate* delegate);
32 virtual ~OAuth2LoginManager(); 35 virtual ~OAuth2LoginManager();
33 36
34 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 37 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
35 38
36 // OAuthLoginManager overrides. 39 // OAuthLoginManager overrides.
37 virtual void RestoreSession( 40 virtual void RestoreSession(
38 Profile* user_profile, 41 Profile* user_profile,
39 net::URLRequestContextGetter* auth_request_context, 42 net::URLRequestContextGetter* auth_request_context,
40 SessionRestoreStrategy restore_strategy, 43 SessionRestoreStrategy restore_strategy,
41 const std::string& oauth2_refresh_token, 44 const std::string& oauth2_refresh_token,
42 const std::string& auth_code) OVERRIDE; 45 const std::string& auth_code) OVERRIDE;
43 virtual void ContinueSessionRestore() OVERRIDE; 46 virtual void ContinueSessionRestore() OVERRIDE;
44 virtual void Stop() OVERRIDE; 47 virtual void Stop() OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 std::string refresh_token_; 117 std::string refresh_token_;
115 // Authorization code for fetching OAuth2 tokens. 118 // Authorization code for fetching OAuth2 tokens.
116 std::string auth_code_; 119 std::string auth_code_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager); 121 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager);
119 }; 122 };
120 123
121 } // namespace chromeos 124 } // namespace chromeos
122 125
123 #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/chromeos/language_preferences.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