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

Unified Diff: ui/app_list/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
« no previous file with comments | « ui/app_list/app_list_view_delegate.h ('k') | ui/app_list/signin_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/signin_delegate.h
diff --git a/ui/app_list/signin_delegate.h b/ui/app_list/signin_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa2409338bce27aba703ad8fd888a6519ef5c0e1
--- /dev/null
+++ b/ui/app_list/signin_delegate.h
@@ -0,0 +1,43 @@
+// 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 UI_APP_LIST_SIGNIN_DELEGATE_H_
+#define UI_APP_LIST_SIGNIN_DELEGATE_H_
+
+#include "base/basictypes.h"
+#include "base/observer_list.h"
+#include "ui/app_list/app_list_export.h"
+
+namespace content {
+class BrowserContext;
+class WebContents;
+}
+
+namespace app_list {
+
+class SigninDelegateObserver;
+
+class APP_LIST_EXPORT SigninDelegate {
+ public:
+ SigninDelegate();
+ virtual ~SigninDelegate();
+
+ virtual bool NeedSignin() = 0;
+ virtual content::WebContents* PrepareForSignin() = 0;
+
+ void AddObserver(SigninDelegateObserver* observer);
+ void RemoveObserver(SigninDelegateObserver* observer);
+
+ protected:
+ void NotifySigninSuccess();
+
+ private:
+ ObserverList<SigninDelegateObserver, true> observers_;
+
+ DISALLOW_COPY_AND_ASSIGN(SigninDelegate);
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_SIGNIN_DELEGATE_H_
« no previous file with comments | « ui/app_list/app_list_view_delegate.h ('k') | ui/app_list/signin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698