OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2013 Google, 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 18 matching lines...) Expand all Loading... |
29 #include "platform/text/SegmentedString.h" | 29 #include "platform/text/SegmentedString.h" |
30 #include "wtf/Allocator.h" | 30 #include "wtf/Allocator.h" |
31 #include "wtf/Vector.h" | 31 #include "wtf/Vector.h" |
32 #include "wtf/text/WTFString.h" | 32 #include "wtf/text/WTFString.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 typedef size_t HTMLInputCheckpoint; | 36 typedef size_t HTMLInputCheckpoint; |
37 | 37 |
38 class BackgroundHTMLInputStream { | 38 class BackgroundHTMLInputStream { |
39 DISALLOW_ALLOCATION(); | 39 DISALLOW_NEW(); |
40 WTF_MAKE_NONCOPYABLE(BackgroundHTMLInputStream); | 40 WTF_MAKE_NONCOPYABLE(BackgroundHTMLInputStream); |
41 public: | 41 public: |
42 BackgroundHTMLInputStream(); | 42 BackgroundHTMLInputStream(); |
43 | 43 |
44 void append(const String&); | 44 void append(const String&); |
45 void close(); | 45 void close(); |
46 | 46 |
47 SegmentedString& current() { return m_current; } | 47 SegmentedString& current() { return m_current; } |
48 | 48 |
49 // An HTMLInputCheckpoint is valid until the next call to rewindTo, at which | 49 // An HTMLInputCheckpoint is valid until the next call to rewindTo, at which |
(...skipping 26 matching lines...) Expand all Loading... |
76 size_t m_firstValidCheckpointIndex; | 76 size_t m_firstValidCheckpointIndex; |
77 size_t m_firstValidSegmentIndex; | 77 size_t m_firstValidSegmentIndex; |
78 size_t m_totalCheckpointTokenCount; | 78 size_t m_totalCheckpointTokenCount; |
79 | 79 |
80 void updateTotalCheckpointTokenCount(); | 80 void updateTotalCheckpointTokenCount(); |
81 }; | 81 }; |
82 | 82 |
83 } | 83 } |
84 | 84 |
85 #endif | 85 #endif |
OLD | NEW |