Re: [webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-25 Thread Sam Weinig
It doesn't look like they have have exposed API to do this yet.  Please file an 
enhancement request at bugs.webkit.org.

-Sam

On May 24, 2011, at 8:33 PM, naren.me...@gmail.com wrote:

 Thanks for the response, Sam.
 
 On Tue, May 24, 2011 at 10:19 PM, Sam Weinig wei...@apple.com wrote:
 It depends what port you are using,
 
 I am using WebKit2-GTK port.
 Any idea, how it can be done in that ?
 
 -- Naren
 
 but the general idea is that you should be able to get a MIME type from the 
 WKURLResponseRef.  On the Mac for instance, we can get an NSURLReponse out 
 of a  WKURLResponseRef using WKURLResponseCopyNSURLResponse and copy the 
 MIME type from that.
 
 -Sam
 
 
 
 
 
 
 On May 24, 2011, at 5:42 AM, naren.me...@gmail.com wrote:
 
 Hi,
 
 I am trying to implement the functionality for decidePolicyForResponse 
 function.
 For that, I require the mimeType based on the WKURLResponseRef.
 
 In previous implementation of WebKit we used to pass the mimeType
 explicitly as one of the parameters of the callback function.
 But it has been changed, and so I am not able to find out a way to do
 that and got stuck.
 
 Can any of you tell me how it can be done or point me to a sample code
 where its done ??
 
 Regards,
 Naren
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
 
 

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-24 Thread naren . mehra
Hi,

I am trying to implement the functionality for decidePolicyForResponse function.
For that, I require the mimeType based on the WKURLResponseRef.

In previous implementation of WebKit we used to pass the mimeType
explicitly as one of the parameters of the callback function.
But it has been changed, and so I am not able to find out a way to do
that and got stuck.

Can any of you tell me how it can be done or point me to a sample code
where its done ??

Regards,
Naren
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-24 Thread naren . mehra
Thanks for the response, Sam.

On Tue, May 24, 2011 at 10:19 PM, Sam Weinig wei...@apple.com wrote:
 It depends what port you are using,

I am using WebKit2-GTK port.
Any idea, how it can be done in that ?

-- Naren

 but the general idea is that you should be able to get a MIME type from the 
 WKURLResponseRef.  On the Mac for instance, we can get an NSURLReponse out of 
 a  WKURLResponseRef using WKURLResponseCopyNSURLResponse and copy the MIME 
 type from that.

 -Sam






 On May 24, 2011, at 5:42 AM, naren.me...@gmail.com wrote:

 Hi,

 I am trying to implement the functionality for decidePolicyForResponse 
 function.
 For that, I require the mimeType based on the WKURLResponseRef.

 In previous implementation of WebKit we used to pass the mimeType
 explicitly as one of the parameters of the callback function.
 But it has been changed, and so I am not able to find out a way to do
 that and got stuck.

 Can any of you tell me how it can be done or point me to a sample code
 where its done ??

 Regards,
 Naren
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to get mimeType for decidePolicyForResponse ??

2011-05-24 Thread Aneesh Bhasin
Hi..

On Wed, May 25, 2011 at 9:03 AM,  naren.me...@gmail.com wrote:
 Thanks for the response, Sam.

 On Tue, May 24, 2011 at 10:19 PM, Sam Weinig wei...@apple.com wrote:
 It depends what port you are using,

 I am using WebKit2-GTK port.
 Any idea, how it can be done in that ?

 -- Naren


Adding webkit-gtk mailing list in the loop..



 but the general idea is that you should be able to get a MIME type from the 
 WKURLResponseRef.  On the Mac for instance, we can get an NSURLReponse out 
 of a  WKURLResponseRef using WKURLResponseCopyNSURLResponse and copy the 
 MIME type from that.

 -Sam

Regards,
Aneesh
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev