Title: [166318] trunk/Source/WebKit2
Revision
166318
Author
aes...@apple.com
Date
2014-03-26 14:32:19 -0700 (Wed, 26 Mar 2014)

Log Message

[Cocoa] Expose DownloadProxy::cancel()
https://bugs.webkit.org/show_bug.cgi?id=130799

Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/_WKDownload.h:
* UIProcess/API/Cocoa/_WKDownload.mm:
(-[_WKDownload cancel]):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (166317 => 166318)


--- trunk/Source/WebKit2/ChangeLog	2014-03-26 21:20:01 UTC (rev 166317)
+++ trunk/Source/WebKit2/ChangeLog	2014-03-26 21:32:19 UTC (rev 166318)
@@ -1,3 +1,14 @@
+2014-03-26  Andy Estes  <aes...@apple.com>
+
+        [Cocoa] Expose DownloadProxy::cancel()
+        https://bugs.webkit.org/show_bug.cgi?id=130799
+
+        Reviewed by Dan Bernstein.
+
+        * UIProcess/API/Cocoa/_WKDownload.h:
+        * UIProcess/API/Cocoa/_WKDownload.mm:
+        (-[_WKDownload cancel]):
+
 2014-03-26  Timothy Hatcher  <timo...@apple.com>
 
         Propagate the hiddenFromInspector flag on ResourceRequest in

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKDownload.h (166317 => 166318)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKDownload.h	2014-03-26 21:20:01 UTC (rev 166317)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKDownload.h	2014-03-26 21:32:19 UTC (rev 166318)
@@ -32,6 +32,8 @@
 WK_API_CLASS
 @interface _WKDownload : NSObject
 
+- (void)cancel;
+
 @property (nonatomic, readonly) NSURLRequest *request;
 
 @end

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKDownload.mm (166317 => 166318)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKDownload.mm	2014-03-26 21:20:01 UTC (rev 166317)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/_WKDownload.mm	2014-03-26 21:32:19 UTC (rev 166318)
@@ -41,6 +41,11 @@
     [super dealloc];
 }
 
+- (void)cancel
+{
+    _download->cancel();
+}
+
 - (NSURLRequest *)request
 {
     return _download->request().nsURLRequest(WebCore::DoNotUpdateHTTPBody);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to