OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BASE_HOST_RESOLVER_IMPL_H_ | 5 #ifndef NET_BASE_HOST_RESOLVER_IMPL_H_ |
6 #define NET_BASE_HOST_RESOLVER_IMPL_H_ | 6 #define NET_BASE_HOST_RESOLVER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // Clears the request trace log. | 107 // Clears the request trace log. |
108 void ClearRequestsTrace(); | 108 void ClearRequestsTrace(); |
109 | 109 |
110 // Starts/ends capturing requests to a trace log. | 110 // Starts/ends capturing requests to a trace log. |
111 void EnableRequestsTracing(bool enable); | 111 void EnableRequestsTracing(bool enable); |
112 | 112 |
113 bool IsRequestsTracingEnabled() const; | 113 bool IsRequestsTracingEnabled() const; |
114 | 114 |
115 // Gets a copy of the requests trace log. | 115 // Gets a copy of the requests trace log. |
116 bool GetRequestsTrace(std::vector<NetLog::Entry>* entries); | 116 bool GetRequestsTrace(CapturingNetLog::EntryList* entries); |
117 | 117 |
118 // Applies a set of constraints for requests that belong to the specified | 118 // Applies a set of constraints for requests that belong to the specified |
119 // pool. NOTE: Don't call this after requests have been already been started. | 119 // pool. NOTE: Don't call this after requests have been already been started. |
120 // | 120 // |
121 // |pool_index| -- Specifies which pool these constraints should be applied | 121 // |pool_index| -- Specifies which pool these constraints should be applied |
122 // to. | 122 // to. |
123 // |max_outstanding_jobs| -- How many concurrent jobs are allowed for this | 123 // |max_outstanding_jobs| -- How many concurrent jobs are allowed for this |
124 // pool. | 124 // pool. |
125 // |max_pending_requests| -- How many requests can be enqueued for this pool | 125 // |max_pending_requests| -- How many requests can be enqueued for this pool |
126 // before we start dropping requests. Dropped | 126 // before we start dropping requests. Dropped |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 261 |
262 // The last un-cancelled IPv6ProbeJob (if any). | 262 // The last un-cancelled IPv6ProbeJob (if any). |
263 scoped_refptr<IPv6ProbeJob> ipv6_probe_job_; | 263 scoped_refptr<IPv6ProbeJob> ipv6_probe_job_; |
264 | 264 |
265 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); | 265 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); |
266 }; | 266 }; |
267 | 267 |
268 } // namespace net | 268 } // namespace net |
269 | 269 |
270 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ | 270 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ |
OLD | NEW |