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

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

Issue 2947413002: Restrict CM API interface request and message dispatch. (Closed)
Patch Set: Address nit from clamy@. Created 3 years, 5 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"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void OnMojoConnectionError();
61 62
62 mojom::CredentialManagerPtr mojo_cm_service_; 63 mojom::CredentialManagerAssociatedPtr mojo_cm_service_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient); 65 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient);
65 }; 66 };
66 67
67 } // namespace password_manager 68 } // namespace password_manager
68 69
69 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN T_H_ 70 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN T_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698