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

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

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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/WebVector.h" 14 #include "third_party/WebKit/public/platform/WebVector.h"
15 15
16 namespace blink { 16 namespace blink {
17 class WebCredential; 17 class WebCredential;
18 class WebURL; 18 class WebURL;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 class RenderView; 22 class RenderView;
23 } 23 }
24 24
25 namespace password_manager { 25 namespace password_manager {
26 26
27 struct CredentialInfo;
28
29 // The CredentialManagerClient implements the Blink platform interface 27 // The CredentialManagerClient implements the Blink platform interface
30 // WebCredentialManagerClient, and acts as an intermediary between Blink-side 28 // WebCredentialManagerClient, and acts as an intermediary between Blink-side
31 // calls to 'navigator.credential.*' and the password manager internals which 29 // calls to 'navigator.credential.*' and the password manager internals which
32 // live in the browser process. 30 // live in the browser process.
33 // 31 //
34 // One instance of CredentialManagerClient is created per RenderView, 32 // One instance of CredentialManagerClient is created per RenderView,
35 // acts as RenderViewObserver so it can send messages to the browser process, 33 // acts as RenderViewObserver so it can send messages to the browser process,
36 // and route responses to itself. 34 // and route responses to itself.
37 // Once RenderView is gone away, the instance will be deleted. 35 // Once RenderView is gone away, the instance will be deleted.
38 // 36 //
(...skipping 22 matching lines...) Expand all
61 void ConnectToMojoCMIfNeeded(); 59 void ConnectToMojoCMIfNeeded();
62 60
63 mojom::CredentialManagerPtr mojo_cm_service_; 61 mojom::CredentialManagerPtr mojo_cm_service_;
64 62
65 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient); 63 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient);
66 }; 64 };
67 65
68 } // namespace password_manager 66 } // namespace password_manager
69 67
70 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN T_H_ 68 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN T_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698