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

Side by Side Diff: webkit/support/test_webkit_platform_support.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
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/support/test_webkit_platform_support.h" 5 #include "webkit/support/test_webkit_platform_support.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/metrics/stats_counters.h" 10 #include "base/metrics/stats_counters.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 bool TestWebKitPlatformSupport::isLinkVisited(unsigned long long linkHash) { 186 bool TestWebKitPlatformSupport::isLinkVisited(unsigned long long linkHash) {
187 return false; 187 return false;
188 } 188 }
189 189
190 WebKit::WebMessagePortChannel* 190 WebKit::WebMessagePortChannel*
191 TestWebKitPlatformSupport::createMessagePortChannel() { 191 TestWebKitPlatformSupport::createMessagePortChannel() {
192 return new TestWebMessagePortChannel(); 192 return new TestWebMessagePortChannel();
193 } 193 }
194 194
195 void TestWebKitPlatformSupport::prefetchHostName(const WebKit::WebString&) {
196 }
197
198 WebKit::WebURLLoader* TestWebKitPlatformSupport::createURLLoader() { 195 WebKit::WebURLLoader* TestWebKitPlatformSupport::createURLLoader() {
199 return url_loader_factory_.CreateURLLoader( 196 return url_loader_factory_.CreateURLLoader(
200 webkit_glue::WebKitPlatformSupportImpl::createURLLoader()); 197 webkit_glue::WebKitPlatformSupportImpl::createURLLoader());
201 } 198 }
202 199
203 WebKit::WebData TestWebKitPlatformSupport::loadResource(const char* name) { 200 WebKit::WebData TestWebKitPlatformSupport::loadResource(const char* name) {
204 if (!strcmp(name, "deleteButton")) { 201 if (!strcmp(name, "deleteButton")) {
205 // Create a red 30x30 square. 202 // Create a red 30x30 square.
206 const char red_square[] = 203 const char red_square[] =
207 "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52" 204 "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 return view.release(); 442 return view.release();
446 } 443 }
447 444
448 WebKit::WebLayerTreeView* 445 WebKit::WebLayerTreeView*
449 TestWebKitPlatformSupport::createLayerTreeViewForTesting( 446 TestWebKitPlatformSupport::createLayerTreeViewForTesting(
450 TestViewType type) { 447 TestViewType type) {
451 DCHECK_EQ(TestViewTypeUnitTest, type); 448 DCHECK_EQ(TestViewTypeUnitTest, type);
452 return createLayerTreeViewForTesting(); 449 return createLayerTreeViewForTesting();
453 } 450 }
454 451
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698