| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 it = std::lower_bound(begin, end, algorithm_name.Impl(), | 187 it = std::lower_bound(begin, end, algorithm_name.Impl(), |
| 188 &AlgorithmNameComparator<LChar>); | 188 &AlgorithmNameComparator<LChar>); |
| 189 else | 189 else |
| 190 it = std::lower_bound(begin, end, algorithm_name.Impl(), | 190 it = std::lower_bound(begin, end, algorithm_name.Impl(), |
| 191 &AlgorithmNameComparator<UChar>); | 191 &AlgorithmNameComparator<UChar>); |
| 192 | 192 |
| 193 if (it == end) | 193 if (it == end) |
| 194 return false; | 194 return false; |
| 195 | 195 |
| 196 if (it->algorithm_name_length != algorithm_name.length() || | 196 if (it->algorithm_name_length != algorithm_name.length() || |
| 197 !EqualIgnoringCase(algorithm_name, it->algorithm_name)) | 197 !DeprecatedEqualIgnoringCase(algorithm_name, it->algorithm_name)) |
| 198 return false; | 198 return false; |
| 199 | 199 |
| 200 id = it->algorithm_id; | 200 id = it->algorithm_id; |
| 201 return true; | 201 return true; |
| 202 } | 202 } |
| 203 | 203 |
| 204 void SetTypeError(const String& message, AlgorithmError* error) { | 204 void SetTypeError(const String& message, AlgorithmError* error) { |
| 205 error->error_type = kWebCryptoErrorTypeType; | 205 error->error_type = kWebCryptoErrorTypeType; |
| 206 error->error_details = message; | 206 error->error_details = message; |
| 207 } | 207 } |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 } // namespace | 1093 } // namespace |
| 1094 | 1094 |
| 1095 bool NormalizeAlgorithm(const AlgorithmIdentifier& raw, | 1095 bool NormalizeAlgorithm(const AlgorithmIdentifier& raw, |
| 1096 WebCryptoOperation op, | 1096 WebCryptoOperation op, |
| 1097 WebCryptoAlgorithm& algorithm, | 1097 WebCryptoAlgorithm& algorithm, |
| 1098 AlgorithmError* error) { | 1098 AlgorithmError* error) { |
| 1099 return ParseAlgorithmIdentifier(raw, op, algorithm, ErrorContext(), error); | 1099 return ParseAlgorithmIdentifier(raw, op, algorithm, ErrorContext(), error); |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 } // namespace blink | 1102 } // namespace blink |
| OLD | NEW |