| Index: net/dns/host_resolver.h
|
| diff --git a/net/dns/host_resolver.h b/net/dns/host_resolver.h
|
| index 5c371e43ad533e66ed0f366c36f5f17bb73e1bf7..fdb39ef2e8e28fbea55a19f95a7810841f359958 100644
|
| --- a/net/dns/host_resolver.h
|
| +++ b/net/dns/host_resolver.h
|
| @@ -186,6 +186,16 @@ class NET_EXPORT HostResolver {
|
| // nullptr if it's configured to always use the system host resolver.
|
| virtual std::unique_ptr<base::Value> GetDnsConfigAsValue() const;
|
|
|
| + typedef base::Callback<void(std::unique_ptr<const base::Value>)>
|
| + PersistCallback;
|
| + // Configures the HostResolver to be able to persist data (e.g. observed
|
| + // performance) between sessions. |persist_callback| is a callback that will
|
| + // be called when the HostResolver wants to persist data; |old_data| is the
|
| + // data last persisted by the resolver on the previous session.
|
| + virtual void InitializePersistence(
|
| + const PersistCallback& persist_callback,
|
| + std::unique_ptr<const base::Value> old_data);
|
| +
|
| // Creates a HostResolver implementation that queries the underlying system.
|
| // (Except if a unit-test has changed the global HostResolverProc using
|
| // ScopedHostResolverProc to intercept requests to the system).
|
|
|