| Index: chrome/browser/ui/views/profiles/signin_view_controller.h
|
| diff --git a/chrome/browser/ui/views/profiles/signin_view_controller.h b/chrome/browser/ui/views/profiles/signin_view_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..64548bae6b93e86da4d10aa1dbe6b92bd6ba3e45
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/profiles/signin_view_controller.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2015 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_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_
|
| +
|
| +#include "chrome/browser/ui/profile_chooser_constants.h"
|
| +#include "content/public/browser/web_contents_delegate.h"
|
| +
|
| +class Browser;
|
| +class Profile;
|
| +
|
| +namespace views {
|
| +class WebView;
|
| +class Widget;
|
| +};
|
| +
|
| +class SigninViewController : public content::WebContentsDelegate {
|
| + public:
|
| + SigninViewController() : modal_signin_widget_(nullptr) {}
|
| + static views::WebView* CreateGaiaWebView(WebContentsDelegate* delegate,
|
| + profiles::BubbleViewMode mode,
|
| + Profile* profile);
|
| + void ShowModalSignin(profiles::BubbleViewMode mode, Browser* browser);
|
| + void CloseModalSignin();
|
| + static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode);
|
| +
|
| + private:
|
| + views::Widget* modal_signin_widget_; // Not owned.
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_
|
|
|