Commit f4e03f7c authored by beidson@apple.com's avatar beidson@apple.com

2008-03-27 Brady Eidson <beidson@apple.com>

        Reviewed by Adam

        Change the "init from WebCore resource" version of WebResource to take PassRefPtr
        (more efficient)

        * WebView/WebResource.mm:
        (-[WebResource _initWithCoreResource:]):
        * WebView/WebResourceInternal.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 613193b7
2008-03-27 Brady Eidson <beidson@apple.com>
Reviewed by Adam
Change the "init from WebCore resource" version of WebResource to take PassRefPtr
(more efficient)
* WebView/WebResource.mm:
(-[WebResource _initWithCoreResource:]):
* WebView/WebResourceInternal.h:
2008-03-26 Brady Eidson <beidson@apple.com>
Build fix - accidentally checked in this change which was work in progress
......
......@@ -229,7 +229,7 @@ static NSString * const WebResourceResponseKey = @"WebResourceResponse"
@implementation WebResource (WebResourceInternal)
- (id)_initWithCoreResource:(WebCore::ArchiveResource *)coreResource
- (id)_initWithCoreResource:(PassRefPtr<ArchiveResource>)coreResource
{
self = [super init];
if (!self)
......
......@@ -28,13 +28,15 @@
#import "WebResource.h"
#import <wtf/PassRefPtr.h>
namespace WebCore {
class ArchiveResource;
}
@interface WebResource (WebResourceInternal)
- (id)_initWithCoreResource:(WebCore::ArchiveResource *)coreResource;
- (id)_initWithCoreResource:(WTF::PassRefPtr<WebCore::ArchiveResource>)coreResource;
- (WebCore::ArchiveResource *)_coreResource;
@end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment