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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayPiece.h

Issue 2768063003: Move files in wtf/ to platform/wtf/ (Part 11). (Closed)
Patch Set: Rebase. Created 3 years, 9 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 ArrayPiece_h 5 #ifndef ArrayPiece_h
6 #define ArrayPiece_h 6 #define ArrayPiece_h
7 7
8 #include "wtf/Allocator.h" 8 #include "platform/wtf/Allocator.h"
9 #include "wtf/Forward.h" 9 #include "platform/wtf/Forward.h"
10 #include "wtf/WTFExport.h" 10 #include "platform/wtf/WTFExport.h"
11 11
12 namespace WTF { 12 namespace WTF {
13 13
14 // This class is for passing around un-owned bytes as a pointer + length. 14 // This class is for passing around un-owned bytes as a pointer + length.
15 // It supports implicit conversion from several other data types. 15 // It supports implicit conversion from several other data types.
16 // 16 //
17 // ArrayPiece has the concept of being "null". This is different from an empty 17 // ArrayPiece has the concept of being "null". This is different from an empty
18 // byte range. It is invalid to call methods other than isNull() on such 18 // byte range. It is invalid to call methods other than isNull() on such
19 // instances. 19 // instances.
20 // 20 //
(...skipping 27 matching lines...) Expand all
48 void* m_data; 48 void* m_data;
49 unsigned m_byteLength; 49 unsigned m_byteLength;
50 bool m_isNull; 50 bool m_isNull;
51 }; 51 };
52 52
53 } // namespace WTF 53 } // namespace WTF
54 54
55 using WTF::ArrayPiece; 55 using WTF::ArrayPiece;
56 56
57 #endif // ArrayPiece_h 57 #endif // ArrayPiece_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698