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

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

Powered by Google App Engine
This is Rietveld 408576698