Chromium Code Reviews| Index: chromecast/renderer/prescient_networking_dispatcher.h |
| diff --git a/chrome/renderer/net/prescient_networking_dispatcher.h b/chromecast/renderer/prescient_networking_dispatcher.h |
| similarity index 50% |
| copy from chrome/renderer/net/prescient_networking_dispatcher.h |
| copy to chromecast/renderer/prescient_networking_dispatcher.h |
| index 4449307d0a50da1e70b65fce62bb8217a072c50b..495febe7a40d187b4619c22aa6bc4f36fb0cc9b0 100644 |
| --- a/chrome/renderer/net/prescient_networking_dispatcher.h |
| +++ b/chromecast/renderer/prescient_networking_dispatcher.h |
| @@ -1,24 +1,31 @@ |
| -// 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 CHROMECAST_RENDERER_PRESCIENT_NETWORKING_DISPATCHER_H_ |
| +#define CHROMECAST_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 chromecast { |
| +namespace shell { |
| + |
| class PrescientNetworkingDispatcher : public blink::WebPrescientNetworking { |
|
Deprecated (see juliatuttle)
2014/12/08 17:04:33
It looks like you're copying this from chrome/rend
gunsch
2014/12/08 17:41:56
Done.
|
| 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 shell |
| +} // namespace chromecast |
| + |
| +#endif // CHROMECAST_RENDERER_PRESCIENT_NETWORKING_DISPATCHER_H_ |