Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: content/child/webcrypto/status.h

Issue 348493005: Revert of [webcrypto] Give more descriptive error messages on Linux for unsupported functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/child/webcrypto/platform_crypto_nss.cc ('k') | content/child/webcrypto/status.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
154 153
155 // Something unexpected happened in the code, which implies there is a 154 // Something unexpected happened in the code, which implies there is a
156 // source-level bug. These should not happen, but safer to fail than simply 155 // source-level bug. These should not happen, but safer to fail than simply
157 // DCHECK. 156 // DCHECK.
158 static Status ErrorUnexpected(); 157 static Status ErrorUnexpected();
159 158
160 // The authentication tag length specified for AES-GCM encrypt/decrypt was 159 // The authentication tag length specified for AES-GCM encrypt/decrypt was
161 // not 32, 64, 96, 104, 112, 120, or 128. 160 // not 32, 64, 96, 104, 112, 120, or 128.
162 static Status ErrorInvalidAesGcmTagLength(); 161 static Status ErrorInvalidAesGcmTagLength();
163 162
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 Type type_; 202 Type type_;
204 blink::WebCryptoErrorType error_type_; 203 blink::WebCryptoErrorType error_type_;
205 std::string error_details_; 204 std::string error_details_;
206 }; 205 };
207 206
208 } // namespace webcrypto 207 } // namespace webcrypto
209 208
210 } // namespace content 209 } // namespace content
211 210
212 #endif // CONTENT_CHILD_WEBCRYPTO_STATUS_H_ 211 #endif // CONTENT_CHILD_WEBCRYPTO_STATUS_H_
OLDNEW
« no previous file with comments | « content/child/webcrypto/platform_crypto_nss.cc ('k') | content/child/webcrypto/status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698