OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 EventSourceParser_h | 5 #ifndef EventSourceParser_h |
6 #define EventSourceParser_h | 6 #define EventSourceParser_h |
7 | 7 |
| 8 #include <memory> |
8 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
9 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
10 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
11 #include "wtf/text/AtomicString.h" | 12 #include "wtf/text/AtomicString.h" |
12 #include "wtf/text/TextCodec.h" | 13 #include "wtf/text/TextCodec.h" |
13 #include "wtf/text/WTFString.h" | 14 #include "wtf/text/WTFString.h" |
14 #include <memory> | |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class MODULES_EXPORT EventSourceParser final | 18 class MODULES_EXPORT EventSourceParser final |
19 : public GarbageCollectedFinalized<EventSourceParser> { | 19 : public GarbageCollectedFinalized<EventSourceParser> { |
20 public: | 20 public: |
21 class MODULES_EXPORT Client : public GarbageCollectedMixin { | 21 class MODULES_EXPORT Client : public GarbageCollectedMixin { |
22 public: | 22 public: |
23 virtual ~Client() {} | 23 virtual ~Client() {} |
24 virtual void onMessageEvent(const AtomicString& type, | 24 virtual void onMessageEvent(const AtomicString& type, |
(...skipping 30 matching lines...) Expand all Loading... |
55 std::unique_ptr<TextCodec> m_codec; | 55 std::unique_ptr<TextCodec> m_codec; |
56 | 56 |
57 bool m_isRecognizingCRLF = false; | 57 bool m_isRecognizingCRLF = false; |
58 bool m_isRecognizingBOM = true; | 58 bool m_isRecognizingBOM = true; |
59 bool m_isStopped = false; | 59 bool m_isStopped = false; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
63 | 63 |
64 #endif // EventSourceParser_h | 64 #endif // EventSourceParser_h |
OLD | NEW |