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

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

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc 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 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_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA TE_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA TE_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA TE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool set_password_list_called_; 103 bool set_password_list_called_;
104 bool set_password_exception_list_called_; 104 bool set_password_exception_list_called_;
105 bool is_initialized_; 105 bool is_initialized_;
106 106
107 // Vector of callbacks which are queued up before the password store has been 107 // Vector of callbacks which are queued up before the password store has been
108 // initialized. Once both SetPasswordList() and SetPasswordExceptionList() 108 // initialized. Once both SetPasswordList() and SetPasswordExceptionList()
109 // have been called, this class is considered initialized and can these 109 // have been called, this class is considered initialized and can these
110 // callbacks are invoked. 110 // callbacks are invoked.
111 std::vector<base::Callback<void()>> pre_initialization_callbacks_; 111 std::vector<base::Callback<void()>> pre_initialization_callbacks_;
112 112
113 // User pref for storing accept languages.
114 std::string languages_;
115
116 // The WebContents used when invoking this API. Used to fetch the 113 // The WebContents used when invoking this API. Used to fetch the
117 // NativeWindow for the window where the API was called. 114 // NativeWindow for the window where the API was called.
118 content::WebContents* web_contents_; 115 content::WebContents* web_contents_;
119 116
120 // The observers. 117 // The observers.
121 base::ObserverList<Observer> observers_; 118 base::ObserverList<Observer> observers_;
122 119
123 // Map from origin URL and username to the index of |password_list_| at which 120 // Map from origin URL and username to the index of |password_list_| at which
124 // the corresponding entry resides. 121 // the corresponding entry resides.
125 std::map<std::string, size_t> login_pair_to_index_map_; 122 std::map<std::string, size_t> login_pair_to_index_map_;
126 123
127 // Map from password exception URL to the index of |password_exception_list_| 124 // Map from password exception URL to the index of |password_exception_list_|
128 // at which the correponding entry resides. 125 // at which the correponding entry resides.
129 std::map<std::string, size_t> exception_url_to_index_map_; 126 std::map<std::string, size_t> exception_url_to_index_map_;
130 127
131 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateDelegateImpl); 128 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateDelegateImpl);
132 }; 129 };
133 130
134 } // namespace extensions 131 } // namespace extensions
135 132
136 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL EGATE_IMPL_H_ 133 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL EGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698