blob: be42b3ec0ee3c8d5e6d693abf096aa9689f0a0ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2013 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 "base/strings/utf_string_conversions.h"
using blink::WebPrescientNetworking;
PrescientNetworkingDispatcher::PrescientNetworkingDispatcher() {
}
PrescientNetworkingDispatcher::~PrescientNetworkingDispatcher() {
}
void PrescientNetworkingDispatcher::prefetchDNS(
const blink::WebString& hostname) {
if (hostname.isEmpty())
return;
std::string hostname_utf8 = base::UTF16ToUTF8(hostname);
net_predictor_.Resolve(hostname_utf8.data(), hostname_utf8.length());
}
|