| Index: components/dns_prefetch/renderer/prescient_networking_dispatcher.h
|
| diff --git a/chrome/renderer/net/prescient_networking_dispatcher.h b/components/dns_prefetch/renderer/prescient_networking_dispatcher.h
|
| similarity index 50%
|
| rename from chrome/renderer/net/prescient_networking_dispatcher.h
|
| rename to components/dns_prefetch/renderer/prescient_networking_dispatcher.h
|
| index 4449307d0a50da1e70b65fce62bb8217a072c50b..fbb383c13454a72597aecde10f0638fb4da130b1 100644
|
| --- a/chrome/renderer/net/prescient_networking_dispatcher.h
|
| +++ b/components/dns_prefetch/renderer/prescient_networking_dispatcher.h
|
| @@ -1,24 +1,29 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_RENDERER_NET_PRESCIENT_NETWORKING_DISPATCHER_H_
|
| -#define CHROME_RENDERER_NET_PRESCIENT_NETWORKING_DISPATCHER_H_
|
| +#ifndef COMPONENTS_DNS_PREFETCH_RENDERER_PRESCIENT_NETWORKING_DISPATCHER_H_
|
| +#define COMPONENTS_DNS_PREFETCH_RENDERER_PRESCIENT_NETWORKING_DISPATCHER_H_
|
|
|
| -#include "base/compiler_specific.h"
|
| +#include "base/macros.h"
|
| #include "components/dns_prefetch/renderer/renderer_net_predictor.h"
|
| #include "third_party/WebKit/public/platform/WebPrescientNetworking.h"
|
|
|
| +namespace dns_prefetch {
|
| +
|
| class PrescientNetworkingDispatcher : public blink::WebPrescientNetworking {
|
| public:
|
| PrescientNetworkingDispatcher();
|
| - virtual ~PrescientNetworkingDispatcher();
|
| + ~PrescientNetworkingDispatcher() override;
|
| +
|
| + void prefetchDNS(const blink::WebString& hostname) override;
|
|
|
| - virtual void prefetchDNS(const blink::WebString& hostname) override;
|
| private:
|
| dns_prefetch::RendererNetPredictor net_predictor_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(PrescientNetworkingDispatcher);
|
| };
|
|
|
| -#endif // CHROME_RENDERER_NET_PRESCIENT_NETWORKING_DISPATCHER_H_
|
| +} // namespace dns_prefetch
|
| +
|
| +#endif // COMPONENTS_DNS_PREFETCH_RENDERER_PRESCIENT_NETWORKING_DISPATCHER_H_
|
|
|