| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIENT_H
_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIENT_H
_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIENT_H
_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIENT_H
_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "components/password_manager/content/public/interfaces/credential_manag
er.mojom.h" | 10 #include "components/password_manager/content/public/interfaces/credential_manag
er.mojom.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void dispatchStore( | 48 void dispatchStore( |
| 49 const blink::WebCredential& credential, | 49 const blink::WebCredential& credential, |
| 50 WebCredentialManagerClient::NotificationCallbacks* callbacks) override; | 50 WebCredentialManagerClient::NotificationCallbacks* callbacks) override; |
| 51 void dispatchRequireUserMediation(NotificationCallbacks* callbacks) override; | 51 void dispatchRequireUserMediation(NotificationCallbacks* callbacks) override; |
| 52 void dispatchGet(bool zero_click_only, | 52 void dispatchGet(bool zero_click_only, |
| 53 bool include_passwords, | 53 bool include_passwords, |
| 54 const blink::WebVector<blink::WebURL>& federations, | 54 const blink::WebVector<blink::WebURL>& federations, |
| 55 RequestCallbacks* callbacks) override; | 55 RequestCallbacks* callbacks) override; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // RenderViewObserver implementation. |
| 59 void OnDestruct() override; |
| 60 |
| 58 void ConnectToMojoCMIfNeeded(); | 61 void ConnectToMojoCMIfNeeded(); |
| 59 | 62 |
| 60 mojom::CredentialManagerPtr mojo_cm_service_; | 63 mojom::CredentialManagerPtr mojo_cm_service_; |
| 61 | 64 |
| 62 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient); | 65 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient); |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 } // namespace password_manager | 68 } // namespace password_manager |
| 66 | 69 |
| 67 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN
T_H_ | 70 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN
T_H_ |
| OLD | NEW |