| 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 "platform/wtf/Vector.h" |
| 11 #include "wtf/text/AtomicString.h" | 12 #include "platform/wtf/text/AtomicString.h" |
| 12 #include "wtf/text/TextCodec.h" | 13 #include "platform/wtf/text/TextCodec.h" |
| 13 #include "wtf/text/WTFString.h" | 14 #include "platform/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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 std::unique_ptr<TextCodec> codec_; | 56 std::unique_ptr<TextCodec> codec_; |
| 57 | 57 |
| 58 bool is_recognizing_crlf_ = false; | 58 bool is_recognizing_crlf_ = false; |
| 59 bool is_recognizing_bom_ = true; | 59 bool is_recognizing_bom_ = true; |
| 60 bool is_stopped_ = false; | 60 bool is_stopped_ = false; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // EventSourceParser_h | 65 #endif // EventSourceParser_h |
| OLD | NEW |