OLD | NEW |
(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
_ |
OLD | NEW |