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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 21043002: remove implementation of obsolete WebKitPlatformSupport::prefetchHostName. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 7 years, 4 months 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 bool RendererWebKitPlatformSupportImpl::isLinkVisited( 314 bool RendererWebKitPlatformSupportImpl::isLinkVisited(
315 unsigned long long link_hash) { 315 unsigned long long link_hash) {
316 return GetContentClient()->renderer()->IsLinkVisited(link_hash); 316 return GetContentClient()->renderer()->IsLinkVisited(link_hash);
317 } 317 }
318 318
319 WebKit::WebMessagePortChannel* 319 WebKit::WebMessagePortChannel*
320 RendererWebKitPlatformSupportImpl::createMessagePortChannel() { 320 RendererWebKitPlatformSupportImpl::createMessagePortChannel() {
321 return new WebMessagePortChannelImpl(child_thread_loop_.get()); 321 return new WebMessagePortChannelImpl(child_thread_loop_.get());
322 } 322 }
323 323
324 void RendererWebKitPlatformSupportImpl::prefetchHostName(
325 const WebString& hostname) {
326 if (hostname.isEmpty())
327 return;
328
329 std::string hostname_utf8 = UTF16ToUTF8(hostname);
330 GetContentClient()->renderer()->PrefetchHostName(
331 hostname_utf8.data(), hostname_utf8.length());
332 }
333
334 WebKit::WebPrescientNetworking* 324 WebKit::WebPrescientNetworking*
335 RendererWebKitPlatformSupportImpl::prescientNetworking() { 325 RendererWebKitPlatformSupportImpl::prescientNetworking() {
336 return GetContentClient()->renderer()->GetPrescientNetworking(); 326 return GetContentClient()->renderer()->GetPrescientNetworking();
337 } 327 }
338 328
339 bool 329 bool
340 RendererWebKitPlatformSupportImpl::CheckPreparsedJsCachingEnabled() const { 330 RendererWebKitPlatformSupportImpl::CheckPreparsedJsCachingEnabled() const {
341 static bool checked = false; 331 static bool checked = false;
342 static bool result = false; 332 static bool result = false;
343 if (!checked) { 333 if (!checked) {
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 return; 1144 return;
1155 QuotaDispatcher::ThreadSpecificInstance( 1145 QuotaDispatcher::ThreadSpecificInstance(
1156 thread_safe_sender_.get(), 1146 thread_safe_sender_.get(),
1157 quota_message_filter_.get())->QueryStorageUsageAndQuota( 1147 quota_message_filter_.get())->QueryStorageUsageAndQuota(
1158 storage_partition, 1148 storage_partition,
1159 static_cast<quota::StorageType>(type), 1149 static_cast<quota::StorageType>(type),
1160 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1150 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1161 } 1151 }
1162 1152
1163 } // namespace content 1153 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | content/worker/worker_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698