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_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/extensions/api/passwords_private/passwords_private_dele
gate.h" |
| 12 #include "chrome/browser/ui/passwords/password_manager_presenter.h" |
11 #include "extensions/browser/extension_function.h" | 13 #include "extensions/browser/extension_function.h" |
12 | 14 |
13 namespace extensions { | 15 namespace extensions { |
14 | 16 |
15 class PasswordsPrivateCanPasswordAccountBeManagedFunction : | 17 class PasswordsPrivateCanPasswordAccountBeManagedFunction : |
16 public UIThreadExtensionFunction { | 18 public UIThreadExtensionFunction { |
17 public: | 19 public: |
18 PasswordsPrivateCanPasswordAccountBeManagedFunction() {} | 20 PasswordsPrivateCanPasswordAccountBeManagedFunction() {} |
19 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.canPasswordAccountBeManaged", | 21 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.canPasswordAccountBeManaged", |
20 PASSWORDSPRIVATE_CANPASSWORDACCOUNTBEMANAGED); | 22 PASSWORDSPRIVATE_CANPASSWORDACCOUNTBEMANAGED); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 protected: | 58 protected: |
57 ~PasswordsPrivateRemovePasswordExceptionFunction() override; | 59 ~PasswordsPrivateRemovePasswordExceptionFunction() override; |
58 | 60 |
59 // ExtensionFunction overrides. | 61 // ExtensionFunction overrides. |
60 ResponseAction Run() override; | 62 ResponseAction Run() override; |
61 | 63 |
62 private: | 64 private: |
63 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRemovePasswordExceptionFunction); | 65 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRemovePasswordExceptionFunction); |
64 }; | 66 }; |
65 | 67 |
66 class PasswordsPrivateGetPlaintextPasswordFunction : | 68 class PasswordsPrivateRequestPlaintextPasswordFunction : |
67 public UIThreadExtensionFunction { | 69 public UIThreadExtensionFunction { |
68 public: | 70 public: |
69 PasswordsPrivateGetPlaintextPasswordFunction() {} | 71 PasswordsPrivateRequestPlaintextPasswordFunction() {} |
70 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.GetPlaintextPassword", | 72 DECLARE_EXTENSION_FUNCTION("passwordsPrivate.requestPlaintextPassword", |
71 PASSWORDSPRIVATE_GETPLAINTEXTPASSWORD); | 73 PASSWORDSPRIVATE_REQUESTPLAINTEXTPASSWORD); |
72 | 74 |
73 protected: | 75 protected: |
74 ~PasswordsPrivateGetPlaintextPasswordFunction() override; | 76 ~PasswordsPrivateRequestPlaintextPasswordFunction() override; |
75 | 77 |
76 // ExtensionFunction overrides. | 78 // ExtensionFunction overrides. |
77 ResponseAction Run() override; | 79 ResponseAction Run() override; |
78 | 80 |
79 private: | 81 private: |
80 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateGetPlaintextPasswordFunction); | 82 DISALLOW_COPY_AND_ASSIGN(PasswordsPrivateRequestPlaintextPasswordFunction); |
81 }; | 83 }; |
82 | 84 |
83 } // namespace extensions | 85 } // namespace extensions |
84 | 86 |
85 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API
_H_ | 87 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_API
_H_ |
OLD | NEW |