Chromium Code Reviews| Index: chrome/renderer/net/prescient_networking_dispatcher.cc |
| diff --git a/chrome/renderer/net/prescient_networking_dispatcher.cc b/chrome/renderer/net/prescient_networking_dispatcher.cc |
| index e97c167e39d2301a6e52c016912eda82c3b9a9d2..446fe0af73c14ed23300fb3587d8f02a0770d314 100644 |
| --- a/chrome/renderer/net/prescient_networking_dispatcher.cc |
| +++ b/chrome/renderer/net/prescient_networking_dispatcher.cc |
| @@ -4,7 +4,9 @@ |
| #include "chrome/renderer/net/prescient_networking_dispatcher.h" |
| +#include "base/strings/utf_string_conversions.h" |
| #include "chrome/common/render_messages.h" |
| +#include "content/public/common/content_client.h" |
|
Nico
2013/05/30 00:44:57
What do you need this for?
kouhei (in TOK)
2013/05/30 00:54:08
We don't need this.
Thank you for pointing this o
|
| #include "content/public/renderer/render_thread.h" |
| using WebKit::WebPrescientNetworking; |
| @@ -12,6 +14,16 @@ using WebKit::WebPrescientNetworking; |
| PrescientNetworkingDispatcher::~PrescientNetworkingDispatcher() { |
| } |
| +void PrescientNetworkingDispatcher::prefetchDNS( |
| + const WebKit::WebString& hostname) { |
| + if (hostname.isEmpty()) |
| + return; |
| + |
| + std::string hostname_utf8; |
| + UTF16ToUTF8(hostname.data(), hostname.length(), &hostname_utf8); |
| + net_predictor_.Resolve(hostname_utf8.data(), hostname_utf8.length()); |
| +} |
| + |
| void PrescientNetworkingDispatcher::preconnect( |
| const WebKit::WebURL& url, |
| WebKit::WebPreconnectMotivation motivation) { |