summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/network/cf/DNSCFNet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/network/cf/DNSCFNet.cpp')
-rw-r--r--WebCore/platform/network/cf/DNSCFNet.cpp27
1 files changed, 3 insertions, 24 deletions
diff --git a/WebCore/platform/network/cf/DNSCFNet.cpp b/WebCore/platform/network/cf/DNSCFNet.cpp
index 9ae15cb..bf21ab1 100644
--- a/WebCore/platform/network/cf/DNSCFNet.cpp
+++ b/WebCore/platform/network/cf/DNSCFNet.cpp
@@ -1,6 +1,5 @@
/*
* Copyright (C) 2008 Collin Jackson <collinj@webkit.org>
- * Copyright (C) 2009 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -27,33 +26,13 @@
#include "config.h"
#include "DNS.h"
-#include "PlatformString.h"
-#include <wtf/RetainPtr.h>
-
-#ifdef BUILDING_ON_TIGER
-// This function is available on Tiger, but not declared in the CFRunLoop.h header on Tiger.
-extern "C" CFRunLoopRef CFRunLoopGetMain();
-#endif
+#include "NotImplemented.h"
namespace WebCore {
-static void clientCallback(CFHostRef theHost, CFHostInfoType, const CFStreamError*, void*)
-{
- CFRelease(theHost);
-}
-
-void prefetchDNS(const String& hostname)
+void prefetchDNS(const String&)
{
- RetainPtr<CFStringRef> hostnameCF(AdoptCF, hostname.createCFString());
- RetainPtr<CFHostRef> host(AdoptCF, CFHostCreateWithName(0, hostnameCF.get()));
- if (!host)
- return;
- CFHostClientContext context = { 0, 0, 0, 0, 0 };
- Boolean result = CFHostSetClient(host.get(), clientCallback, &context);
- ASSERT_UNUSED(result, result);
- CFHostScheduleWithRunLoop(host.get(), CFRunLoopGetMain(), kCFRunLoopCommonModes);
- CFHostStartInfoResolution(host.get(), kCFHostAddresses, 0);
- host.releaseRef(); // The host will be released from clientCallback().
+ notImplemented();
}
}