OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_WEB_WEB_STATE_JS_CREDENTIAL_UTIL_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_JS_CREDENTIAL_UTIL_H_ |
6 #define IOS_WEB_WEB_STATE_JS_CREDENTIAL_UTIL_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_JS_CREDENTIAL_UTIL_H_ |
7 | 7 |
8 namespace base { | 8 namespace base { |
9 class DictionaryValue; | 9 class DictionaryValue; |
10 } // namespace base | 10 } // namespace base |
11 | 11 |
12 namespace web { | 12 namespace web { |
13 | 13 |
14 struct Credential; | 14 struct Credential; |
15 | 15 |
16 // Populates |credential| from |value|, returning true if successful and false | 16 // Populates |credential| from |value|, returning true if successful and false |
(...skipping 20 matching lines...) Expand all Loading... |
37 // not be modified and false will be returned. |credential| must not be null. | 37 // not be modified and false will be returned. |credential| must not be null. |
38 bool DictionaryValueToCredential(const base::DictionaryValue& value, | 38 bool DictionaryValueToCredential(const base::DictionaryValue& value, |
39 Credential* credential); | 39 Credential* credential); |
40 | 40 |
41 // Serializes |credential| to |value|. | 41 // Serializes |credential| to |value|. |
42 void CredentialToDictionaryValue(const Credential& credential, | 42 void CredentialToDictionaryValue(const Credential& credential, |
43 base::DictionaryValue* value); | 43 base::DictionaryValue* value); |
44 | 44 |
45 } // namespace web | 45 } // namespace web |
46 | 46 |
47 #endif // IOS_WEB_WEB_STATE_JS_CREDENTIAL_UTIL_H_ | 47 #endif // IOS_WEB_PUBLIC_WEB_STATE_JS_CREDENTIAL_UTIL_H_ |
OLD | NEW |