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

Side by Side Diff: Source/wtf/ArrayBufferView.h

Issue 87963002: Improve Crypto::getRandomValues exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: DEBUG. Created 7 years 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 | « Source/modules/crypto/Crypto.cpp ('k') | Source/wtf/ArrayBufferView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 TypeUint8Clamped, 45 TypeUint8Clamped,
46 TypeInt16, 46 TypeInt16,
47 TypeUint16, 47 TypeUint16,
48 TypeInt32, 48 TypeInt32,
49 TypeUint32, 49 TypeUint32,
50 TypeFloat32, 50 TypeFloat32,
51 TypeFloat64, 51 TypeFloat64,
52 TypeDataView 52 TypeDataView
53 }; 53 };
54 virtual ViewType getType() const = 0; 54 virtual ViewType getType() const = 0;
55 const char* typeName();
55 56
56 PassRefPtr<ArrayBuffer> buffer() const 57 PassRefPtr<ArrayBuffer> buffer() const
57 { 58 {
58 return m_buffer; 59 return m_buffer;
59 } 60 }
60 61
61 void* baseAddress() const 62 void* baseAddress() const
62 { 63 {
63 return m_baseAddress; 64 return m_baseAddress;
64 } 65 }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 end = start; 201 end = start;
201 *offset = static_cast<unsigned>(start); 202 *offset = static_cast<unsigned>(start);
202 *length = static_cast<unsigned>(end - start); 203 *length = static_cast<unsigned>(end - start);
203 } 204 }
204 205
205 } // namespace WTF 206 } // namespace WTF
206 207
207 using WTF::ArrayBufferView; 208 using WTF::ArrayBufferView;
208 209
209 #endif // ArrayBufferView_h 210 #endif // ArrayBufferView_h
OLDNEW
« no previous file with comments | « Source/modules/crypto/Crypto.cpp ('k') | Source/wtf/ArrayBufferView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698