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/signin/oauth2_login_manager.h

Issue 1900033005: Simplify some CloudPrintProxy code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 8 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
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 }; 61 };
62 62
63 class Observer { 63 class Observer {
64 public: 64 public:
65 virtual ~Observer() {} 65 virtual ~Observer() {}
66 66
67 // Raised when merge session state changes. 67 // Raised when merge session state changes.
68 virtual void OnSessionRestoreStateChanged(Profile* user_profile, 68 virtual void OnSessionRestoreStateChanged(Profile* user_profile,
69 SessionRestoreState state) {} 69 SessionRestoreState state) {}
70 70
71 // Raised when a new OAuth2 refresh token is avaialble. 71 // Raised when a new OAuth2 refresh token is available.
72 virtual void OnNewRefreshTokenAvaiable(Profile* user_profile) {} 72 virtual void OnNewRefreshTokenAvaiable(Profile* user_profile) {}
73 73
74 // Raised when session's GAIA credentials (SID+LSID) are available to 74 // Raised when session's GAIA credentials (SID+LSID) are available to
75 // other signed in services. 75 // other signed in services.
76 virtual void OnSessionAuthenticated(Profile* user_profile) {} 76 virtual void OnSessionAuthenticated(Profile* user_profile) {}
77 }; 77 };
78 78
79 explicit OAuth2LoginManager(Profile* user_profile); 79 explicit OAuth2LoginManager(Profile* user_profile);
80 ~OAuth2LoginManager() override; 80 ~OAuth2LoginManager() override;
81 81
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // TODO(zelidrag|gspencer): Figure out how to get rid of ProfileHelper so we 253 // TODO(zelidrag|gspencer): Figure out how to get rid of ProfileHelper so we
254 // can change the line below to base::ObserverList<Observer, true>. 254 // can change the line below to base::ObserverList<Observer, true>.
255 base::ObserverList<Observer, false> observer_list_; 255 base::ObserverList<Observer, false> observer_list_;
256 256
257 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager); 257 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager);
258 }; 258 };
259 259
260 } // namespace chromeos 260 } // namespace chromeos
261 261
262 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ 262 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698