Bug 152371

Summary: Progress towards implementing downloads with NetworkSession
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Description Alex Christensen 2015-12-16 18:14:13 PST
Progress towards implementing downloads with NetworkSession
Comment 1 Alex Christensen 2015-12-16 18:14:54 PST
Created attachment 267518 [details]
Patch
Comment 2 Darin Adler 2015-12-16 21:23:30 PST
Comment on attachment 267518 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=267518&action=review

> Source/WebKit2/Shared/Downloads/Download.h:65
> +#if !USE(NETWORK_SESSION)
> +class ResourceHandle;
> +#endif

Seems unnecessary to put a conditional on a forward declaration. Also not great to have the #if in the middle like this. Normally we would put something in a separate paragraph. But I suggest just leaving this in unconditionally.
Comment 3 Alex Christensen 2015-12-16 23:10:00 PST
(In reply to comment #2)
> Comment on attachment 267518 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=267518&action=review
> 
> > Source/WebKit2/Shared/Downloads/Download.h:65
> > +#if !USE(NETWORK_SESSION)
> > +class ResourceHandle;
> > +#endif
> 
> Seems unnecessary to put a conditional on a forward declaration. Also not
> great to have the #if in the middle like this. Normally we would put
> something in a separate paragraph. But I suggest just leaving this in
> unconditionally.

I am trying to make sure to never use ResourceHandle in WebKit2 when using NetworkSession, but one ResourceHandle forward declaration doesn't hurt.

Committed to http://trac.webkit.org/changeset/194211