| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COCOA_PASSWORDS_PASSWORD_PROMPT_VIEW_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORD_PROMPT_VIEW_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORD_PROMPT_VIEW_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORD_PROMPT_VIEW_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" | 11 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" |
| 11 #import "chrome/browser/ui/cocoa/passwords/password_prompt_bridge_interface.h" | 12 #import "chrome/browser/ui/cocoa/passwords/password_prompt_bridge_interface.h" |
| 12 #include "chrome/browser/ui/passwords/password_dialog_prompts.h" | 13 #include "chrome/browser/ui/passwords/password_dialog_prompts.h" |
| 13 | 14 |
| 14 @class AccountChooserViewController; | 15 @class AccountChooserViewController; |
| 15 | 16 |
| 16 class PasswordPromptViewBridge : public AccountChooserPrompt, | 17 class PasswordPromptViewBridge : public AccountChooserPrompt, |
| 17 public AutoSigninFirstRunPrompt, | 18 public AutoSigninFirstRunPrompt, |
| 18 public ConstrainedWindowMacDelegate, | 19 public ConstrainedWindowMacDelegate, |
| 19 public PasswordPromptBridgeInterface { | 20 public PasswordPromptBridgeInterface { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 void PerformClose() override; | 37 void PerformClose() override; |
| 37 PasswordDialogController* GetDialogController() override; | 38 PasswordDialogController* GetDialogController() override; |
| 38 net::URLRequestContextGetter* GetRequestContext() const override; | 39 net::URLRequestContextGetter* GetRequestContext() const override; |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 void ShowWindow(); | 42 void ShowWindow(); |
| 42 | 43 |
| 43 PasswordDialogController* controller_; | 44 PasswordDialogController* controller_; |
| 44 content::WebContents* web_contents_; | 45 content::WebContents* web_contents_; |
| 45 | 46 |
| 46 scoped_ptr<ConstrainedWindowMac> constrained_window_; | 47 std::unique_ptr<ConstrainedWindowMac> constrained_window_; |
| 47 base::scoped_nsobject<NSViewController<PasswordPromptViewInterface>> | 48 base::scoped_nsobject<NSViewController<PasswordPromptViewInterface>> |
| 48 view_controller_; | 49 view_controller_; |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORD_PROMPT_VIEW_BRIDGE_H_ | 52 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORD_PROMPT_VIEW_BRIDGE_H_ |
| OLD | NEW |