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/common/credential_manager.mojom.h" | 10 #include "components/password_manager/content/common/credential_manager.mojom.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 class CredentialManagerClient : public blink::WebCredentialManagerClient, | 40 class CredentialManagerClient : public blink::WebCredentialManagerClient, |
41 public content::RenderViewObserver { | 41 public content::RenderViewObserver { |
42 public: | 42 public: |
43 explicit CredentialManagerClient(content::RenderView* render_view); | 43 explicit CredentialManagerClient(content::RenderView* render_view); |
44 ~CredentialManagerClient() override; | 44 ~CredentialManagerClient() override; |
45 | 45 |
46 // blink::WebCredentialManagerClient: | 46 // blink::WebCredentialManagerClient: |
47 void DispatchStore( | 47 void DispatchStore( |
48 const blink::WebCredential& credential, | 48 const blink::WebCredential& credential, |
49 WebCredentialManagerClient::NotificationCallbacks* callbacks) override; | 49 WebCredentialManagerClient::NotificationCallbacks* callbacks) override; |
50 void DispatchRequireUserMediation(NotificationCallbacks* callbacks) override; | 50 void DispatchPreventSilentAccess(NotificationCallbacks* callbacks) override; |
51 void DispatchGet(blink::WebCredentialMediationRequirement mediation, | 51 void DispatchGet(blink::WebCredentialMediationRequirement mediation, |
52 bool include_passwords, | 52 bool include_passwords, |
53 const blink::WebVector<blink::WebURL>& federations, | 53 const blink::WebVector<blink::WebURL>& federations, |
54 RequestCallbacks* callbacks) override; | 54 RequestCallbacks* callbacks) override; |
55 | 55 |
56 private: | 56 private: |
57 // RenderViewObserver implementation. | 57 // RenderViewObserver implementation. |
58 void OnDestruct() override; | 58 void OnDestruct() override; |
59 | 59 |
60 void ConnectToMojoCMIfNeeded(); | 60 void ConnectToMojoCMIfNeeded(); |
61 | 61 |
62 mojom::CredentialManagerPtr mojo_cm_service_; | 62 mojom::CredentialManagerPtr mojo_cm_service_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient); | 64 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace password_manager | 67 } // namespace password_manager |
68 | 68 |
69 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN
T_H_ | 69 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN
T_H_ |
OLD | NEW |