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

Side by Side Diff: net/http/http_stream.h

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « net/http/http_server_properties_manager.h ('k') | net/http/http_stream_factory_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // HttpStream provides an abstraction for a basic http streams, SPDY, and QUIC. 5 // HttpStream provides an abstraction for a basic http streams, SPDY, and QUIC.
6 // The HttpStream subtype is expected to manage the underlying transport 6 // The HttpStream subtype is expected to manage the underlying transport
7 // appropriately. For example, a basic http stream will return the transport 7 // appropriately. For example, a basic http stream will return the transport
8 // socket to the pool for reuse. SPDY streams on the other hand leave the 8 // socket to the pool for reuse. SPDY streams on the other hand leave the
9 // transport socket management to the SpdySession. 9 // transport socket management to the SpdySession.
10 10
11 #ifndef NET_HTTP_HTTP_STREAM_H_ 11 #ifndef NET_HTTP_HTTP_STREAM_H_
12 #define NET_HTTP_HTTP_STREAM_H_ 12 #define NET_HTTP_HTTP_STREAM_H_
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
16 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
17 #include "net/base/upload_progress.h" 17 #include "net/base/upload_progress.h"
18 #include "net/http/http_stream_base.h" 18 #include "net/http/http_stream_base.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 class IOBuffer; 22 class IOBuffer;
23 23
24 class NET_EXPORT_PRIVATE HttpStream : public HttpStreamBase { 24 class NET_EXPORT_PRIVATE HttpStream : public HttpStreamBase {
25 public: 25 public:
26 HttpStream() {} 26 HttpStream() {}
27 virtual ~HttpStream() {} 27 ~HttpStream() override {}
28 28
29 // Queries the UploadDataStream for its progress (bytes sent). 29 // Queries the UploadDataStream for its progress (bytes sent).
30 virtual UploadProgress GetUploadProgress() const = 0; 30 virtual UploadProgress GetUploadProgress() const = 0;
31 31
32 // Returns a new (not initialized) stream using the same underlying 32 // Returns a new (not initialized) stream using the same underlying
33 // connection and invalidates the old stream - no further methods should be 33 // connection and invalidates the old stream - no further methods should be
34 // called on the old stream. The caller should ensure that the response body 34 // called on the old stream. The caller should ensure that the response body
35 // from the previous request is drained before calling this method. If the 35 // from the previous request is drained before calling this method. If the
36 // subclass does not support renewing the stream, NULL is returned. 36 // subclass does not support renewing the stream, NULL is returned.
37 virtual HttpStream* RenewStreamForAuth() = 0; 37 virtual HttpStream* RenewStreamForAuth() = 0;
38 38
39 private: 39 private:
40 DISALLOW_COPY_AND_ASSIGN(HttpStream); 40 DISALLOW_COPY_AND_ASSIGN(HttpStream);
41 }; 41 };
42 42
43 } // namespace net 43 } // namespace net
44 44
45 #endif // NET_HTTP_HTTP_STREAM_H_ 45 #endif // NET_HTTP_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties_manager.h ('k') | net/http/http_stream_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698