| 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 CONTENT_CHILD_WEBCRYPTO_STATUS_H_ |    5 #ifndef CONTENT_CHILD_WEBCRYPTO_STATUS_H_ | 
|    6 #define CONTENT_CHILD_WEBCRYPTO_STATUS_H_ |    6 #define CONTENT_CHILD_WEBCRYPTO_STATUS_H_ | 
|    7  |    7  | 
|    8 #include <string> |    8 #include <string> | 
|    9 #include "content/common/content_export.h" |    9 #include "content/common/content_export.h" | 
|   10 #include "third_party/WebKit/public/platform/WebCrypto.h" |   10 #include "third_party/WebKit/public/platform/WebCrypto.h" | 
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  143  |  143  | 
|  144   // The data provided to an encrypt/decrypt/sign/verify operation was too |  144   // The data provided to an encrypt/decrypt/sign/verify operation was too | 
|  145   // small. This usually represents an algorithm restriction (for instance |  145   // small. This usually represents an algorithm restriction (for instance | 
|  146   // AES-KW requires a minimum of 24 bytes input data). |  146   // AES-KW requires a minimum of 24 bytes input data). | 
|  147   static Status ErrorDataTooSmall(); |  147   static Status ErrorDataTooSmall(); | 
|  148  |  148  | 
|  149   // Something was unsupported or unimplemented. This can mean the algorithm in |  149   // Something was unsupported or unimplemented. This can mean the algorithm in | 
|  150   // question was unsupported, some parameter combination was unsupported, or |  150   // question was unsupported, some parameter combination was unsupported, or | 
|  151   // something has not yet been implemented. |  151   // something has not yet been implemented. | 
|  152   static Status ErrorUnsupported(); |  152   static Status ErrorUnsupported(); | 
 |  153   static Status ErrorUnsupported(const std::string message); | 
|  153  |  154  | 
|  154   // Something unexpected happened in the code, which implies there is a |  155   // Something unexpected happened in the code, which implies there is a | 
|  155   // source-level bug. These should not happen, but safer to fail than simply |  156   // source-level bug. These should not happen, but safer to fail than simply | 
|  156   // DCHECK. |  157   // DCHECK. | 
|  157   static Status ErrorUnexpected(); |  158   static Status ErrorUnexpected(); | 
|  158  |  159  | 
|  159   // The authentication tag length specified for AES-GCM encrypt/decrypt was |  160   // The authentication tag length specified for AES-GCM encrypt/decrypt was | 
|  160   // not 32, 64, 96, 104, 112, 120, or 128. |  161   // not 32, 64, 96, 104, 112, 120, or 128. | 
|  161   static Status ErrorInvalidAesGcmTagLength(); |  162   static Status ErrorInvalidAesGcmTagLength(); | 
|  162  |  163  | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  202   Type type_; |  203   Type type_; | 
|  203   blink::WebCryptoErrorType error_type_; |  204   blink::WebCryptoErrorType error_type_; | 
|  204   std::string error_details_; |  205   std::string error_details_; | 
|  205 }; |  206 }; | 
|  206  |  207  | 
|  207 }  // namespace webcrypto |  208 }  // namespace webcrypto | 
|  208  |  209  | 
|  209 }  // namespace content |  210 }  // namespace content | 
|  210  |  211  | 
|  211 #endif  // CONTENT_CHILD_WEBCRYPTO_STATUS_H_ |  212 #endif  // CONTENT_CHILD_WEBCRYPTO_STATUS_H_ | 
| OLD | NEW |