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

Unified Diff: components/dns_prefetch/renderer/prescient_networking_dispatcher.h

Issue 785693002: Adds DNS prefetch support to Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetch-browser
Patch Set: add blink dep to gyp/gn Created 6 years 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « components/dns_prefetch/renderer/DEPS ('k') | components/dns_prefetch/renderer/prescient_networking_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698