OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_APP_LIST_SIGNIN_DELEGATE_H_ |
| 6 #define UI_APP_LIST_SIGNIN_DELEGATE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/observer_list.h" |
| 10 #include "ui/app_list/app_list_export.h" |
| 11 |
| 12 namespace content { |
| 13 class BrowserContext; |
| 14 class WebContents; |
| 15 } |
| 16 |
| 17 namespace app_list { |
| 18 |
| 19 class SigninDelegateObserver; |
| 20 |
| 21 class APP_LIST_EXPORT SigninDelegate { |
| 22 public: |
| 23 SigninDelegate(); |
| 24 virtual ~SigninDelegate(); |
| 25 |
| 26 virtual bool NeedSignin() = 0; |
| 27 virtual content::WebContents* PrepareForSignin() = 0; |
| 28 |
| 29 void AddObserver(SigninDelegateObserver* observer); |
| 30 void RemoveObserver(SigninDelegateObserver* observer); |
| 31 |
| 32 protected: |
| 33 void NotifySigninSuccess(); |
| 34 |
| 35 private: |
| 36 ObserverList<SigninDelegateObserver, true> observers_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(SigninDelegate); |
| 39 }; |
| 40 |
| 41 } // namespace app_list |
| 42 |
| 43 #endif // UI_APP_LIST_SIGNIN_DELEGATE_H_ |
OLD | NEW |