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

Side by Side Diff: chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h

Issue 2844963003: Introduce extensions::CreateUrlCollectionFromForm (Closed)
Patch Set: Add Unittest File Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA TE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA TE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA TE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA TE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Gets the password exceptions list. 46 // Gets the password exceptions list.
47 using ExceptionEntries = std::vector<api::passwords_private::ExceptionEntry>; 47 using ExceptionEntries = std::vector<api::passwords_private::ExceptionEntry>;
48 using ExceptionEntriesCallback = 48 using ExceptionEntriesCallback =
49 base::Callback<void(const ExceptionEntries&)>; 49 base::Callback<void(const ExceptionEntries&)>;
50 virtual void GetPasswordExceptionsList( 50 virtual void GetPasswordExceptionsList(
51 const ExceptionEntriesCallback& callback) = 0; 51 const ExceptionEntriesCallback& callback) = 0;
52 52
53 // Removes the saved password entry corresponding to |origin_url| and 53 // Removes the saved password entry corresponding to |origin_url| and
54 // |username|. 54 // |username|.
55 // |origin_url| The human-readable origin for the URL where the password is 55 // |origin_url| The origin for the URL where the password is used/ should be
vabr (Chromium) 2017/04/27 11:49:37 typo: / -> ;
jdoerrie 2017/04/27 14:49:32 Done.
56 // used/ should be obtained using GetHumanReadableOrigin(). 56 // obtained using CreateUrlCollectionFromForm().origin.
57 // |username| The username used in conjunction with the saved password. 57 // |username| The username used in conjunction with the saved password.
58 virtual void RemoveSavedPassword( 58 virtual void RemoveSavedPassword(
59 const std::string& origin_url, const std::string& username) = 0; 59 const std::string& origin_url, const std::string& username) = 0;
60 60
61 // Removes the saved password exception entry corresponding to 61 // Removes the saved password exception entry corresponding to
62 // |exception_url|. 62 // |exception_url|.
63 // |exception_url| The URL corresponding to the exception to remove; should 63 // |exception_url| The URL corresponding to the exception to remove; should
64 // be obtained using GetHumanReadableOrigin(). 64 // be obtained using CreateUrlCollectionFromForm().origin.
65 virtual void RemovePasswordException(const std::string& exception_url) = 0; 65 virtual void RemovePasswordException(const std::string& exception_url) = 0;
66 66
67 // Requests the plain text password for entry corresponding to |origin_url| 67 // Requests the plain text password for entry corresponding to |origin_url|
68 // and |username|. 68 // and |username|.
69 // |origin_url| The human-readable origin for the URL where the password is 69 // |origin_url| The origin for the URL where the password is used; should be
70 // used; should be obtained using GetHumanReadableOrigin(). 70 // obtained using CreateUrlCollectionFromForm().origin.
71 // |username| The username used in conjunction with the saved password. 71 // |username| The username used in conjunction with the saved password.
72 // |native_window| The Chrome host window; will be used to show an OS-level 72 // |native_window| The Chrome host window; will be used to show an OS-level
73 // authentication dialog if necessary. 73 // authentication dialog if necessary.
74 virtual void RequestShowPassword(const std::string& origin_url, 74 virtual void RequestShowPassword(const std::string& origin_url,
75 const std::string& username, 75 const std::string& username,
76 content::WebContents* web_contents) = 0; 76 content::WebContents* web_contents) = 0;
77 }; 77 };
78 78
79 } // namespace extensions 79 } // namespace extensions
80 80
81 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL EGATE_H_ 81 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL EGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698