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

Side by Side Diff: chrome/browser/ui/app_list/chrome_signin_delegate.h

Issue 22825025: Remove SigninDelegateObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove from gyp file Created 7 years, 4 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_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/signin/signin_tracker.h"
11 #include "ui/app_list/signin_delegate.h" 10 #include "ui/app_list/signin_delegate.h"
12 11
13 class Profile; 12 class Profile;
14 13
15 class ChromeSigninDelegate : public app_list::SigninDelegate, 14 class ChromeSigninDelegate : public app_list::SigninDelegate {
16 public SigninTracker::Observer {
17 public: 15 public:
18 explicit ChromeSigninDelegate(Profile* profile); 16 explicit ChromeSigninDelegate(Profile* profile);
19 17
20 private: 18 private:
21 virtual ~ChromeSigninDelegate(); 19 virtual ~ChromeSigninDelegate();
22 20
23 bool IsActiveSignin(); 21 bool IsActiveSignin();
24 void FinishSignin(); 22 void FinishSignin();
25 23
26 // Overridden from app_list::SigninDelegate: 24 // Overridden from app_list::SigninDelegate:
27 virtual bool NeedSignin() OVERRIDE; 25 virtual bool NeedSignin() OVERRIDE;
28 virtual void ShowSignin() OVERRIDE; 26 virtual void ShowSignin() OVERRIDE;
29 virtual void OpenLearnMore() OVERRIDE; 27 virtual void OpenLearnMore() OVERRIDE;
30 virtual void OpenSettings() OVERRIDE; 28 virtual void OpenSettings() OVERRIDE;
31 virtual string16 GetSigninHeading() OVERRIDE; 29 virtual string16 GetSigninHeading() OVERRIDE;
32 virtual string16 GetSigninText() OVERRIDE; 30 virtual string16 GetSigninText() OVERRIDE;
33 virtual string16 GetSigninButtonText() OVERRIDE; 31 virtual string16 GetSigninButtonText() OVERRIDE;
34 virtual string16 GetLearnMoreLinkText() OVERRIDE; 32 virtual string16 GetLearnMoreLinkText() OVERRIDE;
35 virtual string16 GetSettingsLinkText() OVERRIDE; 33 virtual string16 GetSettingsLinkText() OVERRIDE;
36 34
37 // Overridden from SigninTracker::Observer:
38 virtual void SigninFailed(const GoogleServiceAuthError& error) OVERRIDE;
39 virtual void SigninSuccess() OVERRIDE;
40
41 Profile* profile_; 35 Profile* profile_;
42 36
43 scoped_ptr<SigninTracker> signin_tracker_;
44
45 DISALLOW_COPY_AND_ASSIGN(ChromeSigninDelegate); 37 DISALLOW_COPY_AND_ASSIGN(ChromeSigninDelegate);
46 }; 38 };
47 39
48 #endif // CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ 40 #endif // CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/chrome_signin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698