Bug 46185 - [WIN] Add internetHandle to WebCoreSynchronousLoader.
Summary: [WIN] Add internetHandle to WebCoreSynchronousLoader.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Patrick R. Gansterer
URL:
Keywords:
Depends on:
Blocks: 43712
  Show dependency treegraph
 
Reported: 2010-09-21 07:21 PDT by Patrick R. Gansterer
Modified: 2010-09-22 00:37 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.46 KB, patch)
2010-09-21 07:23 PDT, Patrick R. Gansterer
aroben: review+
aroben: commit-queue-
Details | Formatted Diff | Diff
Patch (3.34 KB, patch)
2010-09-21 09:03 PDT, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick R. Gansterer 2010-09-21 07:21:24 PDT
see patch
Comment 1 Patrick R. Gansterer 2010-09-21 07:23:25 PDT
Created attachment 68237 [details]
Patch
Comment 2 Adam Roben (:aroben) 2010-09-21 07:54:48 PDT
Comment on attachment 68237 [details]
Patch

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

> WebCore/platform/network/win/ResourceHandleWin.cpp:87
> +static HINTERNET asynchronousInternetHandle(const String& userAgent)
> +{
> +    static HINTERNET internetHandle = 0;
> +
> +    if (!internetHandle)
> +        internetHandle = createInternetHandle(userAgent, true);
> +
> +    return internetHandle;
> +}

You can do this more simply:

static HINTERNET internetHandle = createInternetHandle(userAgent, true);
return internetHandle;

> WebCore/platform/network/win/ResourceHandleWin.cpp:188
>      , m_response(response)
>      , m_data(data)
>  {
> +    m_internetHandle = createInternetHandle(userAgent, false);
> +}

Why not put this in the initializer list?
Comment 3 Patrick R. Gansterer 2010-09-21 09:03:00 PDT
Created attachment 68245 [details]
Patch
Comment 4 WebKit Commit Bot 2010-09-22 00:37:30 PDT
Comment on attachment 68245 [details]
Patch

Clearing flags on attachment: 68245

Committed r68020: <http://trac.webkit.org/changeset/68020>
Comment 5 WebKit Commit Bot 2010-09-22 00:37:35 PDT
All reviewed patches have been landed.  Closing bug.