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

Unified Diff: chrome/browser/ui/app_list/chrome_signin_delegate.h

Issue 12095027: [win] Add signin support for the app launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cros test Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/chrome_signin_delegate.h
diff --git a/chrome/browser/ui/app_list/chrome_signin_delegate.h b/chrome/browser/ui/app_list/chrome_signin_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..3b4d1eb0e1cc6e59e37b43bf403db8308d81d7cd
--- /dev/null
+++ b/chrome/browser/ui/app_list/chrome_signin_delegate.h
@@ -0,0 +1,48 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_
+#define CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/signin/signin_tracker.h"
+#include "chrome/browser/ui/webui/signin/login_ui_service.h"
+#include "ui/app_list/signin_delegate.h"
+
+class Profile;
+
+class ChromeSigninDelegate : public app_list::SigninDelegate,
+ public LoginUIService::LoginUI,
+ public SigninTracker::Observer {
+ public:
+ explicit ChromeSigninDelegate(Profile* profile);
+
+ private:
+ virtual ~ChromeSigninDelegate();
+
+ bool IsActiveSignin();
+ void FinishSignin();
+
+ // Overridden from app_list::SigninDelegate:
+ virtual bool NeedSignin() OVERRIDE;
+ virtual content::WebContents* PrepareForSignin() OVERRIDE;
+
+ // Overridden from LoginUIService::LoginUI:
+ virtual void FocusUI() OVERRIDE;
+ virtual void CloseUI() OVERRIDE;
+
+ // Overridden from SigninTracker::Observer:
+ virtual void GaiaCredentialsValid() OVERRIDE;
+ virtual void SigninFailed(const GoogleServiceAuthError& error) OVERRIDE;
+ virtual void SigninSuccess() OVERRIDE;
+
+ Profile* profile_;
+
+ scoped_ptr<SigninTracker> signin_tracker_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeSigninDelegate);
+};
+
+#endif // CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_
« 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