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

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

Issue 1762603002: Switch components/password_manager code from IPC messages to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Impl done, unit_tests and browser_tests not ready yet Created 4 years, 9 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_TYPE_CONVERTERS_IMPL_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_PUBLIC_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 using BlinkWebCredentialPtr = scoped_ptr<blink::WebCredential>;
vabr (Chromium) 2016/03/09 16:26:29 Is there any special reason to use this alias? If
leonhsl(Using Gerrit) 2016/03/10 06:42:42 Done.
20
21 namespace mojo {
22
23 template <>
24 struct TypeConverter<password_manager::mojom::CredentialInfoPtr,
25 password_manager::CredentialInfo> {
26 static password_manager::mojom::CredentialInfoPtr Convert(
27 const password_manager::CredentialInfo& input);
28 };
29
30 template <>
31 struct TypeConverter<password_manager::CredentialInfo,
32 password_manager::mojom::CredentialInfoPtr> {
33 static password_manager::CredentialInfo Convert(
34 const password_manager::mojom::CredentialInfoPtr& input);
35 };
36
37 template <>
38 struct TypeConverter<password_manager::mojom::CredentialInfoPtr,
39 blink::WebCredential> {
40 static password_manager::mojom::CredentialInfoPtr Convert(
41 const blink::WebCredential& input);
42 };
43
44 template <>
45 struct TypeConverter<BlinkWebCredentialPtr,
46 password_manager::mojom::CredentialInfoPtr> {
47 static BlinkWebCredentialPtr Convert(
48 const password_manager::mojom::CredentialInfoPtr& input);
49 };
50
51 } // namespace mojo
52
53 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_PUBLIC_TYPE_CONVERTERS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698