chrome/browser/google_apis/test_server/http_server_unittest.cc
// Gets the content type from the given URLFetcher.
Gets the content type from the given URLFetcher.
Gets the content type from the given URLFetcher .
std::string GetContentTypeFromFetcher(const net::URLFetcher& fetcher) {
  const net::HttpResponseHeaders* headers = fetcher.GetResponseHeaders();
  if (headers) {
    std::string content_type;
    if (headers->GetMimeType(&content_type))
      return content_type;
  }
  return "";
}
std :: string GetContentTypeFromFetcher ( const net :: URLFetcher & fetcher ) { const net :: HttpResponseHeaders * headers = fetcher . GetResponseHeaders ( ) ; if ( headers ) { std :: string content_type ; if ( headers -> GetMimeType ( & content_type ) ) return content_type ; } return " " ; }
Gets the content type from the given URLFetcher.
Gets the content type from the given URLFetcher .