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 #include "components/password_manager/content/renderer/credential_manager_client
.h" | 5 #include "components/password_manager/content/renderer/credential_manager_client
.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "components/password_manager/core/common/credential_manager_types.h" | 15 #include "components/password_manager/core/common/credential_manager_types.h" |
16 #include "content/public/renderer/render_frame.h" | 16 #include "content/public/renderer/render_frame.h" |
17 #include "content/public/renderer/render_view.h" | 17 #include "content/public/renderer/render_view.h" |
18 #include "services/shell/public/cpp/interface_provider.h" | 18 #include "services/service_manager/public/cpp/interface_provider.h" |
19 #include "third_party/WebKit/public/platform/WebCredential.h" | 19 #include "third_party/WebKit/public/platform/WebCredential.h" |
20 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" | 20 #include "third_party/WebKit/public/platform/WebCredentialManagerError.h" |
21 #include "third_party/WebKit/public/platform/WebFederatedCredential.h" | 21 #include "third_party/WebKit/public/platform/WebFederatedCredential.h" |
22 #include "third_party/WebKit/public/platform/WebPasswordCredential.h" | 22 #include "third_party/WebKit/public/platform/WebPasswordCredential.h" |
23 #include "third_party/WebKit/public/web/WebView.h" | 23 #include "third_party/WebKit/public/web/WebView.h" |
24 | 24 |
25 namespace password_manager { | 25 namespace password_manager { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 content::RenderFrame* main_frame = render_view()->GetMainRenderFrame(); | 246 content::RenderFrame* main_frame = render_view()->GetMainRenderFrame(); |
247 main_frame->GetRemoteInterfaces()->GetInterface(&mojo_cm_service_); | 247 main_frame->GetRemoteInterfaces()->GetInterface(&mojo_cm_service_); |
248 } | 248 } |
249 | 249 |
250 void CredentialManagerClient::OnDestruct() { | 250 void CredentialManagerClient::OnDestruct() { |
251 delete this; | 251 delete this; |
252 } | 252 } |
253 | 253 |
254 } // namespace password_manager | 254 } // namespace password_manager |
OLD | NEW |