chrome/browser/ui/webui/chrome_url_data_manager_backend.cc
// Gets mime type for data that is available from |source| by |path|.
// After that, notifies |job| that mime type is available. This method
// should be called on the UI thread, but notification is performed on
// the IO thread.
Gets mime type for data that is available from |source| by |path|.
After that, notifies |job| that mime type is available. This method
should be called on the UI thread, but notification is performed on
the IO thread.
Gets mime type for data that is available from |source| by |path| . After that notifies |job| that mime type is available . This method should be called on the UI thread but notification is performed on the IO thread .
void GetMimeTypeOnUI(ChromeURLDataManager::DataSource* source,
                     const std::string& path,
                     const base::WeakPtr<URLRequestChromeJob>& job) {
  DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
  std::string mime_type = source->GetMimeType(path);
  BrowserThread::PostTask(
      BrowserThread::IO, FROM_HERE,
      base::Bind(&URLRequestChromeJob::MimeTypeAvailable, job, mime_type));
}
void GetMimeTypeOnUI ( ChromeURLDataManager :: DataSource * source , const std :: string & path , const base :: WeakPtr < URLRequestChromeJob > & job ) { DCHECK ( BrowserThread :: CurrentlyOn ( BrowserThread :: UI ) ) ; std :: string mime_type = source -> GetMimeType ( path ) ; BrowserThread :: PostTask ( BrowserThread :: IO , FROM_HERE , base :: Bind ( & URLRequestChromeJob :: MimeTypeAvailable , job , mime_type ) ) ; }
Gets mime type for data that is available from |source| by |path|.
Gets mime type for data that is available from |source| by |path| .