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

Side by Side Diff: chrome/browser/password_manager/password_store_win.h

Issue 825773003: PasswordStore: Use ScopedVector to express ownership of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use assignment instead of construction Created 5 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 4
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/scoped_vector.h"
9 #include "components/password_manager/core/browser/password_store_default.h" 10 #include "components/password_manager/core/browser/password_store_default.h"
10 11
11 class PasswordWebDataService; 12 class PasswordWebDataService;
12 13
13 namespace autofill { 14 namespace autofill {
14 struct PasswordForm; 15 struct PasswordForm;
15 } 16 }
16 17
17 namespace password_manager { 18 namespace password_manager {
18 class LoginDatabase; 19 class LoginDatabase;
(...skipping 22 matching lines...) Expand all
41 42
42 // Invoked from Shutdown, but run on the DB thread. 43 // Invoked from Shutdown, but run on the DB thread.
43 void ShutdownOnDBThread(); 44 void ShutdownOnDBThread();
44 45
45 virtual void GetLoginsImpl( 46 virtual void GetLoginsImpl(
46 const autofill::PasswordForm& form, 47 const autofill::PasswordForm& form,
47 AuthorizationPromptPolicy prompt_policy, 48 AuthorizationPromptPolicy prompt_policy,
48 const ConsumerCallbackRunner& callback_runner) override; 49 const ConsumerCallbackRunner& callback_runner) override;
49 50
50 void GetIE7LoginIfNecessary( 51 void GetIE7LoginIfNecessary(
51 const autofill::PasswordForm& form, 52 const autofill::PasswordForm& form,
52 const ConsumerCallbackRunner& callback_runner, 53 const ConsumerCallbackRunner& callback_runner,
53 const std::vector<autofill::PasswordForm*>& matched_forms); 54 ScopedVector<autofill::PasswordForm> matched_forms);
54 55
55 scoped_ptr<DBHandler> db_handler_; 56 scoped_ptr<DBHandler> db_handler_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin); 58 DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin);
58 }; 59 };
59 60
60 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ 61 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_mac_unittest.cc ('k') | chrome/browser/password_manager/password_store_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698