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

Side by Side Diff: net/base/host_resolver_impl.h

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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/base/gzip_filter.h ('k') | net/base/listen_socket.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Adds a pending request |req| to |pool|. 264 // Adds a pending request |req| to |pool|.
265 int EnqueueRequest(JobPool* pool, Request* req); 265 int EnqueueRequest(JobPool* pool, Request* req);
266 266
267 // Cancels all jobs. 267 // Cancels all jobs.
268 void CancelAllJobs(); 268 void CancelAllJobs();
269 269
270 // Aborts all in progress jobs (but might start new ones). 270 // Aborts all in progress jobs (but might start new ones).
271 void AbortAllInProgressJobs(); 271 void AbortAllInProgressJobs();
272 272
273 // NetworkChangeNotifier::IPAddressObserver methods: 273 // NetworkChangeNotifier::IPAddressObserver methods:
274 virtual void OnIPAddressChanged(); 274 virtual void OnIPAddressChanged() OVERRIDE;
275 275
276 // Helper methods to get and set max_retry_attempts_. 276 // Helper methods to get and set max_retry_attempts_.
277 size_t max_retry_attempts() const { 277 size_t max_retry_attempts() const {
278 return max_retry_attempts_; 278 return max_retry_attempts_;
279 } 279 }
280 void set_max_retry_attempts(const size_t max_retry_attempts) { 280 void set_max_retry_attempts(const size_t max_retry_attempts) {
281 max_retry_attempts_ = max_retry_attempts; 281 max_retry_attempts_ = max_retry_attempts;
282 } 282 }
283 283
284 // Helper methods for unit tests to get and set unresponsive_delay_. 284 // Helper methods for unit tests to get and set unresponsive_delay_.
285 base::TimeDelta unresponsive_delay() const { return unresponsive_delay_; } 285 base::TimeDelta unresponsive_delay() const { return unresponsive_delay_; }
286 void set_unresponsive_delay(const base::TimeDelta& unresponsive_delay) { 286 void set_unresponsive_delay(const base::TimeDelta& unresponsive_delay) {
287 unresponsive_delay_ = unresponsive_delay; 287 unresponsive_delay_ = unresponsive_delay;
288 } 288 }
289 289
290 // Helper methods to get and set retry_factor_. 290 // Helper methods to get and set retry_factor_.
291 uint32 retry_factor() const { 291 uint32 retry_factor() const {
292 return retry_factor_; 292 return retry_factor_;
293 } 293 }
294 void set_retry_factor(const uint32 retry_factor) { 294 void set_retry_factor(const uint32 retry_factor) {
295 retry_factor_ = retry_factor; 295 retry_factor_ = retry_factor;
296 } 296 }
297 297
298 // NetworkChangeNotifier::OnDNSChanged methods: 298 // NetworkChangeNotifier::OnDNSChanged methods:
299 virtual void OnDNSChanged(); 299 virtual void OnDNSChanged() OVERRIDE;
300 300
301 // Cache of host resolution results. 301 // Cache of host resolution results.
302 scoped_ptr<HostCache> cache_; 302 scoped_ptr<HostCache> cache_;
303 303
304 // Map from hostname to outstanding job. 304 // Map from hostname to outstanding job.
305 JobMap jobs_; 305 JobMap jobs_;
306 306
307 // Maximum number of concurrent jobs allowed, across all pools. Each job may 307 // Maximum number of concurrent jobs allowed, across all pools. Each job may
308 // create multiple concurrent resolve attempts for the hostname. 308 // create multiple concurrent resolve attempts for the hostname.
309 size_t max_jobs_; 309 size_t max_jobs_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 HostResolverFlags additional_resolver_flags_; 358 HostResolverFlags additional_resolver_flags_;
359 359
360 NetLog* net_log_; 360 NetLog* net_log_;
361 361
362 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); 362 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl);
363 }; 363 };
364 364
365 } // namespace net 365 } // namespace net
366 366
367 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ 367 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_
OLDNEW
« no previous file with comments | « net/base/gzip_filter.h ('k') | net/base/listen_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698