| OLD | NEW |
| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/observer_list_threadsafe.h" | 15 #include "base/observer_list_threadsafe.h" |
| 16 #include "chrome/browser/ui/passwords/password_manager_presenter.h" | 16 #include "chrome/browser/ui/passwords/password_manager_presenter.h" |
| 17 #include "chrome/browser/ui/passwords/password_ui_view.h" | 17 #include "chrome/browser/ui/passwords/password_ui_view.h" |
| 18 #include "chrome/common/extensions/api/passwords_private.h" | 18 #include "chrome/common/extensions/api/passwords_private.h" |
| 19 #include "components/keyed_service/core/keyed_service.h" | 19 #include "components/keyed_service/core/keyed_service.h" |
| 20 #include "extensions/browser/extension_function.h" | 20 #include "extensions/browser/extension_function.h" |
| 21 | 21 |
| 22 class Profile; | |
| 23 | |
| 24 namespace base { | |
| 25 class Value; | |
| 26 } | |
| 27 | |
| 28 namespace content { | 22 namespace content { |
| 29 class WebContents; | 23 class WebContents; |
| 30 } | 24 } |
| 31 | 25 |
| 32 namespace extensions { | 26 namespace extensions { |
| 33 | 27 |
| 34 // Delegate used by the chrome.passwordsPrivate API to facilitate removing saved | 28 // Delegate used by the chrome.passwordsPrivate API to facilitate removing saved |
| 35 // passwords and password exceptions and to notify listeners when these values | 29 // passwords and password exceptions and to notify listeners when these values |
| 36 // have changed. | 30 // have changed. |
| 37 class PasswordsPrivateDelegate : public KeyedService { | 31 class PasswordsPrivateDelegate : public KeyedService { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // |native_window| The Chrome host window; will be used to show an OS-level | 71 // |native_window| The Chrome host window; will be used to show an OS-level |
| 78 // authentication dialog if necessary. | 72 // authentication dialog if necessary. |
| 79 virtual void RequestShowPassword(const std::string& origin_url, | 73 virtual void RequestShowPassword(const std::string& origin_url, |
| 80 const std::string& username, | 74 const std::string& username, |
| 81 content::WebContents* web_contents) = 0; | 75 content::WebContents* web_contents) = 0; |
| 82 }; | 76 }; |
| 83 | 77 |
| 84 } // namespace extensions | 78 } // namespace extensions |
| 85 | 79 |
| 86 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL
EGATE_H_ | 80 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL
EGATE_H_ |
| OLD | NEW |