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

Side by Side Diff: chrome/browser/ui/cocoa/passwords/password_prompt_view_bridge.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698