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

Side by Side Diff: ios/chrome/browser/passwords/password_controller.h

Issue 1861593005: Convert //ios 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ 4 #ifndef IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_
5 #define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ 5 #define IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_
6 6
7 #import <Foundation/NSObject.h> 7 #import <Foundation/NSObject.h>
8 8
9 #include <memory>
10
9 #import "ios/chrome/browser/autofill/form_suggestion_provider.h" 11 #import "ios/chrome/browser/autofill/form_suggestion_provider.h"
10 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_client.h" 12 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_client.h"
11 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_driver.h" 13 #import "ios/chrome/browser/passwords/ios_chrome_password_manager_driver.h"
12 #import "ios/web/public/web_state/web_state_observer_bridge.h" 14 #import "ios/web/public/web_state/web_state_observer_bridge.h"
13 15
14 @protocol FormInputAccessoryViewProvider; 16 @protocol FormInputAccessoryViewProvider;
15 @protocol PasswordsUiDelegate; 17 @protocol PasswordsUiDelegate;
16 @class PasswordGenerationAgent; 18 @class PasswordGenerationAgent;
17 19
18 namespace password_manager { 20 namespace password_manager {
(...skipping 28 matching lines...) Expand all
47 password_manager::PasswordManagerDriver* passwordManagerDriver; 49 password_manager::PasswordManagerDriver* passwordManagerDriver;
48 50
49 // |webState| should not be nil. 51 // |webState| should not be nil.
50 - (instancetype)initWithWebState:(web::WebState*)webState 52 - (instancetype)initWithWebState:(web::WebState*)webState
51 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate; 53 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate;
52 54
53 // This is just for testing. 55 // This is just for testing.
54 - (instancetype) 56 - (instancetype)
55 initWithWebState:(web::WebState*)webState 57 initWithWebState:(web::WebState*)webState
56 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate 58 passwordsUiDelegate:(id<PasswordsUiDelegate>)UIDelegate
57 client:(scoped_ptr<password_manager::PasswordManagerClient>) 59 client:(std::unique_ptr<password_manager::PasswordManagerClient>)
58 passwordManagerClient NS_DESIGNATED_INITIALIZER; 60 passwordManagerClient NS_DESIGNATED_INITIALIZER;
59 61
60 - (instancetype)init NS_UNAVAILABLE; 62 - (instancetype)init NS_UNAVAILABLE;
61 63
62 // Releases all tab-specific members. Must be called when the Tab is closing, 64 // Releases all tab-specific members. Must be called when the Tab is closing,
63 // otherwise invalid memory might be accessed during destruction. 65 // otherwise invalid memory might be accessed during destruction.
64 - (void)detach; 66 - (void)detach;
65 67
66 // Uses JavaScript to find password forms using the |webState_| and fills 68 // Uses JavaScript to find password forms using the |webState_| and fills
67 // them with the |username| and |password|. |completionHandler|, if not nil, 69 // them with the |username| and |password|. |completionHandler|, if not nil,
68 // is called once per form filled. 70 // is called once per form filled.
69 - (void)findAndFillPasswordForms:(NSString*)username 71 - (void)findAndFillPasswordForms:(NSString*)username
70 password:(NSString*)password 72 password:(NSString*)password
71 completionHandler:(void (^)(BOOL))completionHandler; 73 completionHandler:(void (^)(BOOL))completionHandler;
72 74
73 @end 75 @end
74 76
75 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_ 77 #endif // IOS_CHROME_BROWSER_PASSWORDS_PASSWORD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698