| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CompositeDataConsumerHandle_h | 5 #ifndef CompositeDataConsumerHandle_h |
| 6 #define CompositeDataConsumerHandle_h | 6 #define CompositeDataConsumerHandle_h |
| 7 | 7 |
| 8 #include "public/platform/WebDataConsumerHandle.h" | 8 #include "public/platform/WebDataConsumerHandle.h" |
| 9 #include "wtf/OwnPtr.h" | 9 #include "wtf/OwnPtr.h" |
| 10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // This function should be called on the thread on which this object | 28 // This function should be called on the thread on which this object |
| 29 // was created. |handle| must not be null and must not be locked. | 29 // was created. |handle| must not be null and must not be locked. |
| 30 void update(PassOwnPtr<WebDataConsumerHandle> /* handle */); | 30 void update(PassOwnPtr<WebDataConsumerHandle> /* handle */); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 class Context; | 33 class Context; |
| 34 class ReaderImpl; | 34 class ReaderImpl; |
| 35 Reader* obtainReaderInternal(Client*) override; | 35 Reader* obtainReaderInternal(Client*) override; |
| 36 | 36 |
| 37 const char* debugName() const override { return "CompositeDataConsumerHandle
"; } |
| 38 |
| 37 explicit CompositeDataConsumerHandle(PassOwnPtr<WebDataConsumerHandle>); | 39 explicit CompositeDataConsumerHandle(PassOwnPtr<WebDataConsumerHandle>); |
| 38 | 40 |
| 39 RefPtr<Context> m_context; | 41 RefPtr<Context> m_context; |
| 40 }; | 42 }; |
| 41 | 43 |
| 42 } // namespace blink | 44 } // namespace blink |
| 43 | 45 |
| 44 #endif // CompositeDataConsumerHandle_h | 46 #endif // CompositeDataConsumerHandle_h |
| OLD | NEW |