| Index: components/dns_prefetch/renderer/prescient_networking_dispatcher.cc
|
| diff --git a/chrome/renderer/net/prescient_networking_dispatcher.cc b/components/dns_prefetch/renderer/prescient_networking_dispatcher.cc
|
| similarity index 58%
|
| rename from chrome/renderer/net/prescient_networking_dispatcher.cc
|
| rename to components/dns_prefetch/renderer/prescient_networking_dispatcher.cc
|
| index be42b3ec0ee3c8d5e6d693abf096aa9689f0a0ae..6ce8b667bacc47294bff7bad8db754d93a624bce 100644
|
| --- a/chrome/renderer/net/prescient_networking_dispatcher.cc
|
| +++ b/components/dns_prefetch/renderer/prescient_networking_dispatcher.cc
|
| @@ -1,12 +1,12 @@
|
| -// 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.
|
|
|
| -#include "chrome/renderer/net/prescient_networking_dispatcher.h"
|
| +#include "components/dns_prefetch/renderer/prescient_networking_dispatcher.h"
|
|
|
| -#include "base/strings/utf_string_conversions.h"
|
| +#include "base/logging.h"
|
|
|
| -using blink::WebPrescientNetworking;
|
| +namespace dns_prefetch {
|
|
|
| PrescientNetworkingDispatcher::PrescientNetworkingDispatcher() {
|
| }
|
| @@ -16,9 +16,12 @@ PrescientNetworkingDispatcher::~PrescientNetworkingDispatcher() {
|
|
|
| void PrescientNetworkingDispatcher::prefetchDNS(
|
| const blink::WebString& hostname) {
|
| + VLOG(2) << "Prefetch DNS: " << hostname.utf8();
|
| if (hostname.isEmpty())
|
| return;
|
|
|
| - std::string hostname_utf8 = base::UTF16ToUTF8(hostname);
|
| + std::string hostname_utf8 = hostname.utf8();
|
| net_predictor_.Resolve(hostname_utf8.data(), hostname_utf8.length());
|
| }
|
| +
|
| +} // namespace dns_prefetch
|
|
|