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

Side by Side Diff: components/password_manager/content/renderer/credential_manager_client.h

Issue 2864493003: Deprecate CredentialRequestOptions.unmediated in favor mediation enum (Closed)
Patch Set: Rebase Created 3 years, 7 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 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"
11 #include "content/public/renderer/render_view_observer.h" 11 #include "content/public/renderer/render_view_observer.h"
12 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h" 12 #include "third_party/WebKit/public/platform/WebCredentialManagerClient.h"
13 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" 13 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h"
14 #include "third_party/WebKit/public/platform/WebCredentialMediationRequirement.h "
14 #include "third_party/WebKit/public/platform/WebVector.h" 15 #include "third_party/WebKit/public/platform/WebVector.h"
15 16
16 namespace blink { 17 namespace blink {
17 class WebCredential; 18 class WebCredential;
18 class WebURL; 19 class WebURL;
19 } 20 }
20 21
21 namespace content { 22 namespace content {
22 class RenderView; 23 class RenderView;
23 } 24 }
(...skipping 16 matching lines...) Expand all
40 public content::RenderViewObserver { 41 public content::RenderViewObserver {
41 public: 42 public:
42 explicit CredentialManagerClient(content::RenderView* render_view); 43 explicit CredentialManagerClient(content::RenderView* render_view);
43 ~CredentialManagerClient() override; 44 ~CredentialManagerClient() override;
44 45
45 // blink::WebCredentialManagerClient: 46 // blink::WebCredentialManagerClient:
46 void DispatchStore( 47 void DispatchStore(
47 const blink::WebCredential& credential, 48 const blink::WebCredential& credential,
48 WebCredentialManagerClient::NotificationCallbacks* callbacks) override; 49 WebCredentialManagerClient::NotificationCallbacks* callbacks) override;
49 void DispatchRequireUserMediation(NotificationCallbacks* callbacks) override; 50 void DispatchRequireUserMediation(NotificationCallbacks* callbacks) override;
50 void DispatchGet(bool zero_click_only, 51 void DispatchGet(blink::WebCredentialMediationRequirement mediation,
51 bool include_passwords, 52 bool include_passwords,
52 const blink::WebVector<blink::WebURL>& federations, 53 const blink::WebVector<blink::WebURL>& federations,
53 RequestCallbacks* callbacks) override; 54 RequestCallbacks* callbacks) override;
54 55
55 private: 56 private:
56 // RenderViewObserver implementation. 57 // RenderViewObserver implementation.
57 void OnDestruct() override; 58 void OnDestruct() override;
58 59
59 void ConnectToMojoCMIfNeeded(); 60 void ConnectToMojoCMIfNeeded();
60 61
61 mojom::CredentialManagerPtr mojo_cm_service_; 62 mojom::CredentialManagerPtr mojo_cm_service_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient); 64 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient);
64 }; 65 };
65 66
66 } // namespace password_manager 67 } // namespace password_manager
67 68
68 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN T_H_ 69 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN T_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698