From 863c342a6f8bba3f301c9a258cdb4ddfc98849f2 Mon Sep 17 00:00:00 2001 From: toshok Date: Tue, 11 Aug 2009 19:43:11 +0000 Subject: [PATCH] r: jeff in class/System.Windows.Browser/System.Windows.Browser.Net/: 2009-08-10 Chris Toshok * BrowserHttpWebRequestInternal.cs: make progress_delegate internal so BrowserHttpWebRequest can set it. * BrowserHttpWebRequest.cs (GetResponse): pass along our progress delegate to the internal webrequest. git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/moon@139733 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- .../System.Windows.Browser.Net/BrowserHttpWebRequest.cs | 2 ++ .../System.Windows.Browser.Net/BrowserHttpWebRequestInternal.cs | 3 +-- class/System.Windows.Browser/System.Windows.Browser.Net/ChangeLog | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/class/System.Windows.Browser/System.Windows.Browser.Net/BrowserHttpWebRequest.cs b/class/System.Windows.Browser/System.Windows.Browser.Net/BrowserHttpWebRequest.cs index 26399683f..ee43f6c33 100644 --- a/class/System.Windows.Browser/System.Windows.Browser.Net/BrowserHttpWebRequest.cs +++ b/class/System.Windows.Browser/System.Windows.Browser.Net/BrowserHttpWebRequest.cs @@ -144,6 +144,8 @@ namespace System.Windows.Browser.Net { return async_result; } + wreq.progress_delegate = progress_delegate; + return wreq.BeginGetResponse (new AsyncCallback (EndCallback), wreq); } diff --git a/class/System.Windows.Browser/System.Windows.Browser.Net/BrowserHttpWebRequestInternal.cs b/class/System.Windows.Browser/System.Windows.Browser.Net/BrowserHttpWebRequestInternal.cs index e02a747c4..0cb1e6d69 100644 --- a/class/System.Windows.Browser/System.Windows.Browser.Net/BrowserHttpWebRequestInternal.cs +++ b/class/System.Windows.Browser/System.Windows.Browser.Net/BrowserHttpWebRequestInternal.cs @@ -61,8 +61,7 @@ namespace System.Windows.Browser.Net { WebHeaderCollection headers; - //NOTE: This field name needs to stay in sync with WebRequest_2_1.cs in Systme.Net - Delegate progress_delegate; + internal Delegate progress_delegate; public BrowserHttpWebRequestInternal (Uri uri) { diff --git a/class/System.Windows.Browser/System.Windows.Browser.Net/ChangeLog b/class/System.Windows.Browser/System.Windows.Browser.Net/ChangeLog index 00533fb1b..36ab5fb65 100644 --- a/class/System.Windows.Browser/System.Windows.Browser.Net/ChangeLog +++ b/class/System.Windows.Browser/System.Windows.Browser.Net/ChangeLog @@ -1,3 +1,11 @@ +2009-08-10 Chris Toshok + + * BrowserHttpWebRequestInternal.cs: make progress_delegate + internal so BrowserHttpWebRequest can set it. + + * BrowserHttpWebRequest.cs (GetResponse): pass along our progress + delegate to the internal webrequest. + 2009-07-21 Sebastien Pouliot * ClientAccessPolicyParser.cs, FlashCrossDomainPolicyParser.cs: -- 2.11.4.GIT