Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.h

Issue 2269953004: Implment BytesConsumer::tee (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 BytesConsumerForDataConsumerHandle_h 5 #ifndef BytesConsumerForDataConsumerHandle_h
6 #define BytesConsumerForDataConsumerHandle_h 6 #define BytesConsumerForDataConsumerHandle_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "modules/fetch/BytesConsumer.h" 9 #include "modules/fetch/BytesConsumer.h"
10 #include "modules/fetch/FetchFormDataConsumerHandle.h" 10 #include "modules/fetch/FetchFormDataConsumerHandle.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 DECLARE_TRACE(); 47 DECLARE_TRACE();
48 48
49 private: 49 private:
50 void close(); 50 void close();
51 void error(); 51 void error();
52 52
53 std::unique_ptr<FetchDataConsumerHandle::Reader> m_reader; 53 std::unique_ptr<FetchDataConsumerHandle::Reader> m_reader;
54 Member<BytesConsumer::Client> m_client; 54 Member<BytesConsumer::Client> m_client;
55 InternalState m_state = InternalState::Waiting; 55 InternalState m_state = InternalState::Waiting;
56 Error m_error; 56 Error m_error;
57 bool m_isInTwoPhaseRead = false;
58 bool m_hasPendingError = false;
57 }; 59 };
58 60
59 } // namespace blink 61 } // namespace blink
60 62
61 #endif // BytesConsumerForDataConsumerHandle_h 63 #endif // BytesConsumerForDataConsumerHandle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698