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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMArrayPiece.h

Issue 1875343002: Move WTF classes related to typed arrays to wtf/typed_arrays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 DOMArrayPiece_h 5 #ifndef DOMArrayPiece_h
6 #define DOMArrayPiece_h 6 #define DOMArrayPiece_h
7 7
8 #include "core/dom/DOMArrayBuffer.h" 8 #include "core/dom/DOMArrayBuffer.h"
9 #include "core/dom/DOMArrayBufferView.h" 9 #include "core/dom/DOMArrayBufferView.h"
10 #include "wtf/ArrayPiece.h" 10 #include "wtf/typed_arrays/ArrayPiece.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ArrayBufferOrArrayBufferView; 14 class ArrayBufferOrArrayBufferView;
15 15
16 // This class is for passing around un-owned bytes as a pointer + length. 16 // This class is for passing around un-owned bytes as a pointer + length.
17 // It supports implicit conversion from several other data types. 17 // It supports implicit conversion from several other data types.
18 // 18 //
19 // ArrayPiece has the concept of being "null". This is different from an empty 19 // ArrayPiece has the concept of being "null". This is different from an empty
20 // byte range. It is invalid to call methods other than isNull() on such 20 // byte range. It is invalid to call methods other than isNull() on such
(...skipping 27 matching lines...) Expand all
48 48
49 bool operator==(const DOMArrayBufferView& other) const 49 bool operator==(const DOMArrayBufferView& other) const
50 { 50 {
51 return byteLength() == other.byteLength() && memcmp(data(), other.baseAd dress(), byteLength()) == 0; 51 return byteLength() == other.byteLength() && memcmp(data(), other.baseAd dress(), byteLength()) == 0;
52 } 52 }
53 }; 53 };
54 54
55 } // namespace blink 55 } // namespace blink
56 56
57 #endif // DOMArrayPiece_h 57 #endif // DOMArrayPiece_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMArrayBufferView.h ('k') | third_party/WebKit/Source/core/dom/DOMDataView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698