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

Side by Side Diff: components/password_manager/content/public/cpp/type_converters.h

Issue 1866643002: Reland: Switch components/password_manager code from IPC messages to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_PUBLIC_CPP_TYPE_CONVERTERS_IMPL_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_PUBLIC_CPP_TYPE_CONVERTERS_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "components/password_manager/content/public/interfaces/credential_manag er.mojom.h"
10
11 namespace blink {
12 class WebCredential;
13 }
14
15 namespace password_manager {
16 struct CredentialInfo;
17 }
18
19 namespace mojo {
20
21 template <>
22 struct TypeConverter<password_manager::mojom::CredentialInfoPtr,
23 password_manager::CredentialInfo> {
24 static password_manager::mojom::CredentialInfoPtr Convert(
25 const password_manager::CredentialInfo& input);
26 };
27
28 template <>
29 struct TypeConverter<password_manager::CredentialInfo,
30 password_manager::mojom::CredentialInfoPtr> {
31 static password_manager::CredentialInfo Convert(
32 const password_manager::mojom::CredentialInfoPtr& input);
33 };
34
35 template <>
36 struct TypeConverter<password_manager::mojom::CredentialInfoPtr,
37 blink::WebCredential> {
38 static password_manager::mojom::CredentialInfoPtr Convert(
39 const blink::WebCredential& input);
40 };
41
42 template <>
43 struct TypeConverter<scoped_ptr<blink::WebCredential>,
44 password_manager::mojom::CredentialInfoPtr> {
45 static scoped_ptr<blink::WebCredential> Convert(
46 const password_manager::mojom::CredentialInfoPtr& input);
47 };
48
49 } // namespace mojo
50
51 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_PUBLIC_CPP_TYPE_CONVERTERS_IMPL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698