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

Side by Side Diff: net/http/http_pipelined_host_pool.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 | « net/http/http_pipelined_host_impl.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 #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"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "net/http/http_pipelined_host.h" 13 #include "net/http/http_pipelined_host.h"
14 #include "net/http/http_pipelined_host_capability.h" 14 #include "net/http/http_pipelined_host_capability.h"
15 15
16 namespace base { 16 namespace base {
17 class Value; 17 class Value;
18 } 18 }
19 19
20 namespace net { 20 namespace net {
21 21
22 class HostPortPair; 22 class HostPortPair;
23 class HttpPipelinedStream; 23 class HttpPipelinedStream;
24 class HttpServerProperties; 24 class HttpServerProperties;
25 25
26 // Manages all of the pipelining state for specific host with active pipelined 26 // Manages all of the pipelining state for specific host with active pipelined
27 // HTTP requests. Manages connection jobs, constructs pipelined streams, and 27 // HTTP requests. Manages connection jobs, constructs pipelined streams, and
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 NON_EXPORTED_BASE(HttpPipelinedHost::Delegate) { 30 : public HttpPipelinedHost::Delegate {
31 public: 31 public:
32 class Delegate { 32 class Delegate {
33 public: 33 public:
34 virtual ~Delegate() {}
35
36 // Called when a HttpPipelinedHost has new capacity. Attempts to allocate 34 // Called when a HttpPipelinedHost has new capacity. Attempts to allocate
37 // any pending pipeline-capable requests to pipelines. 35 // any pending pipeline-capable requests to pipelines.
38 virtual void OnHttpPipelinedHostHasAdditionalCapacity( 36 virtual void OnHttpPipelinedHostHasAdditionalCapacity(
39 HttpPipelinedHost* host) = 0; 37 HttpPipelinedHost* host) = 0;
40 }; 38 };
41 39
42 HttpPipelinedHostPool(Delegate* delegate, 40 HttpPipelinedHostPool(Delegate* delegate,
43 HttpPipelinedHost::Factory* factory, 41 HttpPipelinedHost::Factory* factory,
44 HttpServerProperties* http_server_properties_, 42 HttpServerProperties* http_server_properties_,
45 bool force_pipelining); 43 bool force_pipelining);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 HostMap host_map_; 91 HostMap host_map_;
94 HttpServerProperties* http_server_properties_; 92 HttpServerProperties* http_server_properties_;
95 bool force_pipelining_; 93 bool force_pipelining_;
96 94
97 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool); 95 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool);
98 }; 96 };
99 97
100 } // namespace net 98 } // namespace net
101 99
102 #endif // NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ 100 #endif // NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_
OLDNEW
« no previous file with comments | « net/http/http_pipelined_host_impl.h ('k') | net/http/http_stream_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698