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

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

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « media/filters/ffmpeg_glue.h ('k') | net/http/http_pipelined_host.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 #ifndef NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ 5 #ifndef NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ 6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
7 7
8 #include "net/base/net_export.h" 8 #include "net/base/net_export.h"
9 #include "net/base/net_log.h" 9 #include "net/base/net_log.h"
10 #include "net/socket/ssl_client_socket.h" 10 #include "net/socket/ssl_client_socket.h"
(...skipping 12 matching lines...) Expand all
23 enum Feedback { 23 enum Feedback {
24 OK, 24 OK,
25 PIPELINE_SOCKET_ERROR, 25 PIPELINE_SOCKET_ERROR,
26 OLD_HTTP_VERSION, 26 OLD_HTTP_VERSION,
27 MUST_CLOSE_CONNECTION, 27 MUST_CLOSE_CONNECTION,
28 AUTHENTICATION_REQUIRED, 28 AUTHENTICATION_REQUIRED,
29 }; 29 };
30 30
31 class Delegate { 31 class Delegate {
32 public: 32 public:
33 virtual ~Delegate() {}
34
35 // Called when a pipeline has newly available capacity. This may be because 33 // Called when a pipeline has newly available capacity. This may be because
36 // the first request has been sent and the pipeline is now active. Or, it 34 // the first request has been sent and the pipeline is now active. Or, it
37 // may be because a request successfully completed. 35 // may be because a request successfully completed.
38 virtual void OnPipelineHasCapacity(HttpPipelinedConnection* pipeline) = 0; 36 virtual void OnPipelineHasCapacity(HttpPipelinedConnection* pipeline) = 0;
39 37
40 // Called every time a pipeline receives headers. Lets the delegate know if 38 // Called every time a pipeline receives headers. Lets the delegate know if
41 // the headers indicate that pipelining can be used. 39 // the headers indicate that pipelining can be used.
42 virtual void OnPipelineFeedback(HttpPipelinedConnection* pipeline, 40 virtual void OnPipelineFeedback(HttpPipelinedConnection* pipeline,
43 Feedback feedback) = 0; 41 Feedback feedback) = 0;
44 }; 42 };
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // True if this connection was NPN negotiated. 84 // True if this connection was NPN negotiated.
87 virtual bool was_npn_negotiated() const = 0; 85 virtual bool was_npn_negotiated() const = 0;
88 86
89 // Protocol negotiated with the server. 87 // Protocol negotiated with the server.
90 virtual NextProto protocol_negotiated() const = 0; 88 virtual NextProto protocol_negotiated() const = 0;
91 }; 89 };
92 90
93 } // namespace net 91 } // namespace net
94 92
95 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ 93 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_glue.h ('k') | net/http/http_pipelined_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698