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

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

Issue 12340017: Revert 183647 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 10 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_OAUTH_LOGIN_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_
7 7
8 #include <string>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/chromeos/cros/cert_library.h" 12 #include "chrome/browser/chromeos/cros/cert_library.h"
11 #include "chrome/browser/chromeos/cros/cros_library.h" 13 #include "chrome/browser/chromeos/cros/cros_library.h"
12 #include "chrome/browser/chromeos/login/oauth1_login_verifier.h" 14 #include "chrome/browser/chromeos/login/oauth1_login_verifier.h"
13 #include "chrome/browser/chromeos/login/oauth1_token_fetcher.h" 15 #include "chrome/browser/chromeos/login/oauth1_token_fetcher.h"
14 #include "chrome/browser/chromeos/login/oauth2_login_verifier.h" 16 #include "chrome/browser/chromeos/login/oauth2_login_verifier.h"
15 #include "chrome/browser/chromeos/login/oauth2_policy_fetcher.h" 17 #include "chrome/browser/chromeos/login/oauth2_policy_fetcher.h"
16 #include "chrome/browser/chromeos/login/oauth2_token_fetcher.h" 18 #include "chrome/browser/chromeos/login/oauth2_token_fetcher.h"
17 #include "chrome/browser/chromeos/login/policy_oauth_fetcher.h" 19 #include "chrome/browser/chromeos/login/policy_oauth_fetcher.h"
(...skipping 18 matching lines...) Expand all
36 // stored OAuth tokens and populate cookie jar with GAIA credentials. 38 // stored OAuth tokens and populate cookie jar with GAIA credentials.
37 SESSION_RESTORE_IN_PROGRESS, 39 SESSION_RESTORE_IN_PROGRESS,
38 // Session restore is completed. 40 // Session restore is completed.
39 SESSION_RESTORE_DONE, 41 SESSION_RESTORE_DONE,
40 }; 42 };
41 43
42 class Delegate { 44 class Delegate {
43 public: 45 public:
44 virtual ~Delegate() {} 46 virtual ~Delegate() {}
45 47
46 // Raised when merge session is completed.
47 virtual void OnCompletedMergeSession() = 0;
48
49 // Raised when cookie jar authentication is successfully completed. 48 // Raised when cookie jar authentication is successfully completed.
50 virtual void OnCompletedAuthentication(Profile* user_profile) = 0; 49 virtual void OnCompletedAuthentication(Profile* user_profile) = 0;
51 50
52 // Raised when stored OAuth(1|2) tokens are found and authentication 51 // Raised when stored OAuth(1|2) tokens are found and authentication
53 // profile is no longer needed. 52 // profile is no longer needed.
54 virtual void OnFoundStoredTokens() = 0; 53 virtual void OnFoundStoredTokens() = 0;
55 54
56 // Raised when policy tokens are retrieved. 55 // Raised when policy tokens are retrieved.
57 virtual void OnRestoredPolicyTokens() {} 56 virtual void OnRestoredPolicyTokens() {}
58 }; 57 };
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 scoped_refptr<net::URLRequestContextGetter> auth_request_context_; 92 scoped_refptr<net::URLRequestContextGetter> auth_request_context_;
94 bool restore_from_auth_cookies_; 93 bool restore_from_auth_cookies_;
95 SessionRestoreState state_; 94 SessionRestoreState state_;
96 95
97 DISALLOW_COPY_AND_ASSIGN(OAuthLoginManager); 96 DISALLOW_COPY_AND_ASSIGN(OAuthLoginManager);
98 }; 97 };
99 98
100 } // namespace chromeos 99 } // namespace chromeos
101 100
102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_ 101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/oauth2_login_manager.cc ('k') | chrome/browser/chromeos/login/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698