| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_WEBCRYPTO_STATUS_H_ | 5 #ifndef COMPONENTS_WEBCRYPTO_STATUS_H_ |
| 6 #define COMPONENTS_WEBCRYPTO_STATUS_H_ | 6 #define COMPONENTS_WEBCRYPTO_STATUS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include "third_party/WebKit/public/platform/WebCrypto.h" | 11 #include "third_party/WebKit/public/platform/WebCrypto.h" |
| 10 | 12 |
| 11 namespace webcrypto { | 13 namespace webcrypto { |
| 12 | 14 |
| 13 // Status indicates whether an operation completed successfully, or with an | 15 // Status indicates whether an operation completed successfully, or with an |
| 14 // error. The error is used for verification in unit-tests, as well as for | 16 // error. The error is used for verification in unit-tests, as well as for |
| 15 // display to the user. | 17 // display to the user. |
| 16 // | 18 // |
| 17 // As such, it is important that errors DO NOT reveal any sensitive material | 19 // As such, it is important that errors DO NOT reveal any sensitive material |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 explicit Status(Type type); | 281 explicit Status(Type type); |
| 280 | 282 |
| 281 Type type_; | 283 Type type_; |
| 282 blink::WebCryptoErrorType error_type_; | 284 blink::WebCryptoErrorType error_type_; |
| 283 std::string error_details_; | 285 std::string error_details_; |
| 284 }; | 286 }; |
| 285 | 287 |
| 286 } // namespace webcrypto | 288 } // namespace webcrypto |
| 287 | 289 |
| 288 #endif // COMPONENTS_WEBCRYPTO_STATUS_H_ | 290 #endif // COMPONENTS_WEBCRYPTO_STATUS_H_ |
| OLD | NEW |