// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_CRONET_CRONET_UPLOAD_DATA_STREAM_H_ #define COMPONENTS_CRONET_CRONET_UPLOAD_DATA_STREAM_H_ #include <stdint.h> #include "base/memory/raw_ptr.h" #include "base/memory/scoped_refptr.h" #include "base/memory/weak_ptr.h" #include "net/base/upload_data_stream.h" namespace net { class IOBuffer; } // namespace net namespace cronet { // The CronetUploadDataStream is created on a client thread, but afterwards, // lives and is deleted on the network thread. It's responsible for ensuring // only one read/rewind request sent to client is outstanding at a time. // The main complexity is around Reset/Initialize calls while there's a pending // read or rewind. class CronetUploadDataStream : public net::UploadDataStream { … }; } // namespace cronet #endif // COMPONENTS_CRONET_CRONET_UPLOAD_DATA_STREAM_H_