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

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

Issue 2651663003: Show human readable origin for Android apps (Closed)
Patch Set: Fix tests and nits 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 26 matching lines...) Expand all
37 37
38 // Gets the saved passwords list. 38 // Gets the saved passwords list.
39 using UiEntries = std::vector<api::passwords_private::PasswordUiEntry>; 39 using UiEntries = std::vector<api::passwords_private::PasswordUiEntry>;
40 using UiEntriesCallback = base::Callback<void(const UiEntries&)>; 40 using UiEntriesCallback = base::Callback<void(const UiEntries&)>;
41 virtual void GetSavedPasswordsList(const UiEntriesCallback& callback) = 0; 41 virtual void GetSavedPasswordsList(const UiEntriesCallback& callback) = 0;
42 42
43 // Sends the password exceptions list to the event router. 43 // Sends the password exceptions list to the event router.
44 virtual void SendPasswordExceptionsList() = 0; 44 virtual void SendPasswordExceptionsList() = 0;
45 45
46 // Gets the password exceptions list. 46 // Gets the password exceptions list.
47 using ExceptionPairs = std::vector<api::passwords_private::ExceptionPair>; 47 using ExceptionEntries = std::vector<api::passwords_private::ExceptionEntry>;
48 using ExceptionPairsCallback = base::Callback<void(const ExceptionPairs&)>; 48 using ExceptionEntriesCallback =
49 base::Callback<void(const ExceptionEntries&)>;
49 virtual void GetPasswordExceptionsList( 50 virtual void GetPasswordExceptionsList(
50 const ExceptionPairsCallback& callback) = 0; 51 const ExceptionEntriesCallback& callback) = 0;
51 52
52 // Removes the saved password entry corresponding to |origin_url| and 53 // Removes the saved password entry corresponding to |origin_url| and
53 // |username|. 54 // |username|.
54 // |origin_url| The human-readable origin for the URL where the password is 55 // |origin_url| The human-readable origin for the URL where the password is
55 // used/ should be obtained using GetHumanReadableOrigin(). 56 // used/ should be obtained using GetHumanReadableOrigin().
56 // |username| The username used in conjunction with the saved password. 57 // |username| The username used in conjunction with the saved password.
57 virtual void RemoveSavedPassword( 58 virtual void RemoveSavedPassword(
58 const std::string& origin_url, const std::string& username) = 0; 59 const std::string& origin_url, const std::string& username) = 0;
59 60
60 // Removes the saved password exception entry corresponding to 61 // Removes the saved password exception entry corresponding to
(...skipping 10 matching lines...) Expand all
71 // |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
72 // authentication dialog if necessary. 73 // authentication dialog if necessary.
73 virtual void RequestShowPassword(const std::string& origin_url, 74 virtual void RequestShowPassword(const std::string& origin_url,
74 const std::string& username, 75 const std::string& username,
75 content::WebContents* web_contents) = 0; 76 content::WebContents* web_contents) = 0;
76 }; 77 };
77 78
78 } // namespace extensions 79 } // namespace extensions
79 80
80 #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

Powered by Google App Engine
This is Rietveld 408576698