diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 07:03:53 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 07:03:53 +0000 |
commit | 9e743cddfd631038fe6f1cdde050e18d61319ec6 (patch) | |
tree | 7ef974e43b23f570433fe819bcd07966165c517f /net/base/host_resolver.h | |
parent | 2e7aff66fe443c29b2fc14a776dca5512b0b4729 (diff) | |
download | chromium_src-9e743cddfd631038fe6f1cdde050e18d61319ec6.zip chromium_src-9e743cddfd631038fe6f1cdde050e18d61319ec6.tar.gz chromium_src-9e743cddfd631038fe6f1cdde050e18d61319ec6.tar.bz2 |
Generalize the net module's LoadLog facility from a passive container, to an event stream (NetLog).
This makes it possible to associate a single NetLog with a URLRequestContext, and then attach observers to that log to watch the stream of events.
This changelist attempts to do the most direct translation, so there will be subsequent iterations to clean up.
The user-visible behavior should remain unchanged.
BUG=37421
Review URL: http://codereview.chromium.org/848006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41689 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_resolver.h')
-rw-r--r-- | net/base/host_resolver.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h index c4cdef6..8f7bd09 100644 --- a/net/base/host_resolver.h +++ b/net/base/host_resolver.h @@ -18,9 +18,9 @@ class MessageLoop; namespace net { class AddressList; +class BoundNetLog; class HostCache; class HostResolverImpl; -class LoadLog; class NetworkChangeNotifier; // This class represents the task of resolving hostnames (or IP address @@ -137,12 +137,12 @@ class HostResolver : public base::RefCountedThreadSafe<HostResolver> { // the async request. This handle is not valid after the request has // completed. // - // Profiling information for the request is saved to |load_log| if non-NULL. + // Profiling information for the request is saved to |net_log| if non-NULL. virtual int Resolve(const RequestInfo& info, AddressList* addresses, CompletionCallback* callback, RequestHandle* out_req, - LoadLog* load_log) = 0; + const BoundNetLog& net_log) = 0; // Cancels the specified request. |req| is the handle returned by Resolve(). // After a request is cancelled, its completion callback will not be called. @@ -198,7 +198,7 @@ class SingleRequestHostResolver { int Resolve(const HostResolver::RequestInfo& info, AddressList* addresses, CompletionCallback* callback, - LoadLog* load_log); + const BoundNetLog& net_log); // Cancels the in-progress request, if any. This prevents the callback // from being invoked. Resolve() can be called again after cancelling. |