19.1.3日報:chromium 判斷檔案下載的幾個點
阿新 • • 發佈:2019-01-14
昨天搞定了精簡+合併dll的版本。
1,content::CommonNavigationParams::CommonNavigationParams
content::NavigationEntryImpl::ConstructCommonNavigation
content::NavigatorImpl::NavigateToEntry
content::NavigatorImpl::NavigateToPendingEntry
content::NavigationControllerImpl::NavigateToPendingEnt
content::NavigationControllerImpl::NavigateToPendingEnt
content::NavigationControllerImpl::LoadEntry
content::NavigationControllerImpl::LoadURLWithParams
content::NavigationControllerImpl::LoadURL
這裡會判斷是否為IsViewSourceMode,如果是view source 模式,不允許下載
2,WebURLRequestToResourceType會分析load type。
ResourceDispatcherHostImpl::BeginRequest裡判斷如果是RESOURCE_TYPE_MAIN_FRAME之類的,才允許下載
3,MimeTypeResourceHandler::SelectNextHandler裡會判斷mime