Changeset 243016 in webkit


Ignore:
Timestamp:
Mar 15, 2019 3:18:21 PM (5 years ago)
Author:
achristensen@apple.com
Message:

_WKDownload should conform to NSCopying protocol
https://bugs.webkit.org/show_bug.cgi?id=195718

Reviewed by Tim Horton.

This will allow us to use it as keys in NSMutableDictionaries, which Safari already kind of does.

  • UIProcess/API/Cocoa/_WKDownload.h:
  • UIProcess/API/Cocoa/_WKDownload.mm:

(-[_WKDownload copyWithZone:]):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243015 r243016  
     12019-03-15  Alex Christensen  <achristensen@webkit.org>
     2
     3        _WKDownload should conform to NSCopying protocol
     4        https://bugs.webkit.org/show_bug.cgi?id=195718
     5
     6        Reviewed by Tim Horton.
     7
     8        This will allow us to use it as keys in NSMutableDictionaries, which Safari already kind of does.
     9
     10        * UIProcess/API/Cocoa/_WKDownload.h:
     11        * UIProcess/API/Cocoa/_WKDownload.mm:
     12        (-[_WKDownload copyWithZone:]):
     13
    1142019-03-15  Dean Jackson  <dino@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKDownload.h

    r242339 r243016  
    3131
    3232WK_CLASS_AVAILABLE(macosx(10.10), ios(8.0))
    33 @interface _WKDownload : NSObject
     33@interface _WKDownload : NSObject <NSCopying>
    3434
    3535- (void)cancel;
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKDownload.mm

    r242339 r243016  
    8484}
    8585
     86- (id)copyWithZone:(NSZone *)zone
     87{
     88    return [self retain];
     89}
     90
    8691#pragma mark WKObject protocol implementation
    8792
Note: See TracChangeset for help on using the changeset viewer.