that code shows Chrome using the file extension to look up a content type from the windows registry, so it's clearly showing Chrome using the file extension to determine content type. The fact that the DB of extension to type is provided by the OS, doesn't alter the fact that Chrome is using it. Adrien Adam Barth wrote: > On Sat, Jun 13, 2009 at 2:57 PM, Adrien de Croy<adrien@qbik.com> wrote: > >> Do you have any information about such APIs in windows? I'd be keen to look >> into them further. I thought I knew win32 API pretty well, and I'm unaware >> of any function to return the content-type for a file. >> > > Looks like they're just setting in the registry: > > http://src.chromium.org/viewvc/chrome/trunk/src/net/base/platform_mime_util_win.cc > > Adam > -- Adrien de Croy - WinGate Proxy Server - http://www.wingate.comReceived on Sunday, 14 June 2009 00:58:33 UTC
This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:19 UTC