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

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

Issue 160552: Update a bug number referenced by some TODOs, to point at the new bug for tra... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Sync Created 11 years, 4 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 | « no previous file | net/base/host_resolver_impl.cc » ('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) 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_H_ 5 #ifndef NET_BASE_HOST_RESOLVER_H_
6 #define NET_BASE_HOST_RESOLVER_H_ 6 #define NET_BASE_HOST_RESOLVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 virtual void CancelRequest(RequestHandle req) = 0; 119 virtual void CancelRequest(RequestHandle req) = 0;
120 120
121 // Adds an observer to this resolver. The observer will be notified of the 121 // Adds an observer to this resolver. The observer will be notified of the
122 // start and completion of all requests (excluding cancellation). |observer| 122 // start and completion of all requests (excluding cancellation). |observer|
123 // must remain valid for the duration of this HostResolver's lifetime. 123 // must remain valid for the duration of this HostResolver's lifetime.
124 virtual void AddObserver(Observer* observer) = 0; 124 virtual void AddObserver(Observer* observer) = 0;
125 125
126 // Unregisters an observer previously added by AddObserver(). 126 // Unregisters an observer previously added by AddObserver().
127 virtual void RemoveObserver(Observer* observer) = 0; 127 virtual void RemoveObserver(Observer* observer) = 0;
128 128
129 // TODO(eroman): temp hack for http://crbug.com/15513 129 // TODO(eroman): temp hack for http://crbug.com/18373
130 virtual void Shutdown() = 0; 130 virtual void Shutdown() = 0;
131 131
132 DISALLOW_COPY_AND_ASSIGN(HostResolver); 132 DISALLOW_COPY_AND_ASSIGN(HostResolver);
133 }; 133 };
134 134
135 // This class represents the task of resolving a hostname (or IP address 135 // This class represents the task of resolving a hostname (or IP address
136 // literal) to an AddressList object. It wraps HostResolver to resolve only a 136 // literal) to an AddressList object. It wraps HostResolver to resolve only a
137 // single hostname at a time and cancels this request when going out of scope. 137 // single hostname at a time and cancels this request when going out of scope.
138 class SingleRequestHostResolver { 138 class SingleRequestHostResolver {
139 public: 139 public:
(...skipping 28 matching lines...) Expand all
168 }; 168 };
169 169
170 // Creates a HostResolver implementation that queries the underlying system. 170 // Creates a HostResolver implementation that queries the underlying system.
171 // (Except if a unit-test has changed the global HostResolverProc using 171 // (Except if a unit-test has changed the global HostResolverProc using
172 // ScopedHostResolverProc to intercept requests to the system). 172 // ScopedHostResolverProc to intercept requests to the system).
173 HostResolver* CreateSystemHostResolver(); 173 HostResolver* CreateSystemHostResolver();
174 174
175 } // namespace net 175 } // namespace net
176 176
177 #endif // NET_BASE_HOST_RESOLVER_H_ 177 #endif // NET_BASE_HOST_RESOLVER_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698