OLD | NEW |
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 BodyStreamBuffer_h | 5 #ifndef BodyStreamBuffer_h |
6 #define BodyStreamBuffer_h | 6 #define BodyStreamBuffer_h |
7 | 7 |
8 #include "core/dom/DOMException.h" | 8 #include "core/dom/DOMException.h" |
9 #include "platform/blob/BlobData.h" | 9 #include "platform/blob/BlobData.h" |
10 #include "platform/heap/Heap.h" | 10 #include "platform/heap/Heap.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // observer was already registered | 52 // observer was already registered |
53 bool readAllAndCreateBlobHandle(const String& contentType, BlobHandleCreator
Client*); | 53 bool readAllAndCreateBlobHandle(const String& contentType, BlobHandleCreator
Client*); |
54 | 54 |
55 // When an observer was registered this function fails and returns false. | 55 // When an observer was registered this function fails and returns false. |
56 bool registerObserver(Observer*); | 56 bool registerObserver(Observer*); |
57 void unregisterObserver(); | 57 void unregisterObserver(); |
58 bool isObserverRegistered() const { return m_observer.get(); } | 58 bool isObserverRegistered() const { return m_observer.get(); } |
59 void trace(Visitor*); | 59 void trace(Visitor*); |
60 | 60 |
61 private: | 61 private: |
62 Deque<RefPtr<DOMArrayBuffer> > m_queue; | 62 Deque<RefPtr<DOMArrayBuffer>> m_queue; |
63 bool m_isClosed; | 63 bool m_isClosed; |
64 RefPtrWillBeMember<DOMException> m_exception; | 64 RefPtrWillBeMember<DOMException> m_exception; |
65 Member<Observer> m_observer; | 65 Member<Observer> m_observer; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace blink | 68 } // namespace blink |
69 | 69 |
70 #endif // BodyStreamBuffer_h | 70 #endif // BodyStreamBuffer_h |
OLD | NEW |