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

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

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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
« cc/render_pass_sink.h ('K') | « net/http/http_pipelined_host.h ('k') | no next file » | 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_HOST_POOL_H_ 5 #ifndef NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_
6 #define NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ 6 #define NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 // assigns requests to the least loaded pipelined connection. 28 // assigns requests to the least loaded pipelined connection.
29 class NET_EXPORT_PRIVATE HttpPipelinedHostPool 29 class NET_EXPORT_PRIVATE HttpPipelinedHostPool
30 : public HttpPipelinedHost::Delegate { 30 : public HttpPipelinedHost::Delegate {
31 public: 31 public:
32 class Delegate { 32 class Delegate {
33 public: 33 public:
34 // Called when a HttpPipelinedHost has new capacity. Attempts to allocate 34 // Called when a HttpPipelinedHost has new capacity. Attempts to allocate
35 // any pending pipeline-capable requests to pipelines. 35 // any pending pipeline-capable requests to pipelines.
36 virtual void OnHttpPipelinedHostHasAdditionalCapacity( 36 virtual void OnHttpPipelinedHostHasAdditionalCapacity(
37 HttpPipelinedHost* host) = 0; 37 HttpPipelinedHost* host) = 0;
38
39 protected:
40 virtual ~Delegate() {}
38 }; 41 };
39 42
40 HttpPipelinedHostPool(Delegate* delegate, 43 HttpPipelinedHostPool(Delegate* delegate,
41 HttpPipelinedHost::Factory* factory, 44 HttpPipelinedHost::Factory* factory,
42 HttpServerProperties* http_server_properties_, 45 HttpServerProperties* http_server_properties_,
43 bool force_pipelining); 46 bool force_pipelining);
44 virtual ~HttpPipelinedHostPool(); 47 virtual ~HttpPipelinedHostPool();
45 48
46 // Returns true if pipelining might work for |key|. Generally, this returns 49 // Returns true if pipelining might work for |key|. Generally, this returns
47 // true, unless |key| is known to have failed pipelining recently. 50 // true, unless |key| is known to have failed pipelining recently.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 HostMap host_map_; 94 HostMap host_map_;
92 HttpServerProperties* http_server_properties_; 95 HttpServerProperties* http_server_properties_;
93 bool force_pipelining_; 96 bool force_pipelining_;
94 97
95 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool); 98 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool);
96 }; 99 };
97 100
98 } // namespace net 101 } // namespace net
99 102
100 #endif // NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ 103 #endif // NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_
OLDNEW
« cc/render_pass_sink.h ('K') | « net/http/http_pipelined_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698