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

Side by Side Diff: components/password_manager/core/browser/test_password_store.h

Issue 866983003: GetLoginsRequest: Use ScopedVector to express ownership of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@324291_scopedvector
Patch Set: Fix Mac unittest 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // PasswordStore interface 43 // PasswordStore interface
44 PasswordStoreChangeList AddLoginImpl( 44 PasswordStoreChangeList AddLoginImpl(
45 const autofill::PasswordForm& form) override; 45 const autofill::PasswordForm& form) override;
46 PasswordStoreChangeList UpdateLoginImpl( 46 PasswordStoreChangeList UpdateLoginImpl(
47 const autofill::PasswordForm& form) override; 47 const autofill::PasswordForm& form) override;
48 PasswordStoreChangeList RemoveLoginImpl( 48 PasswordStoreChangeList RemoveLoginImpl(
49 const autofill::PasswordForm& form) override; 49 const autofill::PasswordForm& form) override;
50 void GetLoginsImpl(const autofill::PasswordForm& form, 50 void GetLoginsImpl(const autofill::PasswordForm& form,
51 PasswordStore::AuthorizationPromptPolicy prompt_policy, 51 PasswordStore::AuthorizationPromptPolicy prompt_policy,
52 const ConsumerCallbackRunner& runner) override; 52 const ConsumerCallbackRunner& runner) override;
53 void GetAutofillableLoginsImpl( 53 void GetAutofillableLoginsImpl(scoped_ptr<GetLoginsRequest> request) override;
54 PasswordStore::GetLoginsRequest* request) override;
55 54
56 // Unused portions of PasswordStore interface 55 // Unused portions of PasswordStore interface
57 void ReportMetricsImpl(const std::string& sync_username, 56 void ReportMetricsImpl(const std::string& sync_username,
58 bool custom_passphrase_sync_enabled) override {} 57 bool custom_passphrase_sync_enabled) override {}
59 PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( 58 PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl(
60 base::Time begin, 59 base::Time begin,
61 base::Time end) override; 60 base::Time end) override;
62 PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( 61 PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl(
63 base::Time delete_begin, 62 base::Time delete_begin,
64 base::Time delete_end) override; 63 base::Time delete_end) override;
65 void GetBlacklistLoginsImpl( 64 void GetBlacklistLoginsImpl(scoped_ptr<GetLoginsRequest> request) override {}
vasilii 2015/02/05 19:23:27 If we follow the guide line then the method isn't
vabr (Chromium) 2015/02/06 14:16:05 Agreed. Also done for ReportMetricsImpl for consis
66 PasswordStore::GetLoginsRequest* request) override {}
67 bool FillAutofillableLogins( 65 bool FillAutofillableLogins(
68 ScopedVector<autofill::PasswordForm>* forms) override; 66 ScopedVector<autofill::PasswordForm>* forms) override;
69 bool FillBlacklistLogins( 67 bool FillBlacklistLogins(
70 ScopedVector<autofill::PasswordForm>* forms) override; 68 ScopedVector<autofill::PasswordForm>* forms) override;
71 69
72 private: 70 private:
73 PasswordMap stored_passwords_; 71 PasswordMap stored_passwords_;
74 72
75 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); 73 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore);
76 }; 74 };
77 75
78 } // namespace password_manager 76 } // namespace password_manager
79 77
80 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ 78 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698