Update AtomResourceDispatcherHostDelegate
This commit is contained in:
parent
13a1d79ca6
commit
6eaa30e94c
2 changed files with 5 additions and 16 deletions
|
@ -64,17 +64,12 @@ AtomResourceDispatcherHostDelegate::AtomResourceDispatcherHostDelegate() {
|
||||||
|
|
||||||
bool AtomResourceDispatcherHostDelegate::HandleExternalProtocol(
|
bool AtomResourceDispatcherHostDelegate::HandleExternalProtocol(
|
||||||
const GURL& url,
|
const GURL& url,
|
||||||
int child_id,
|
content::ResourceRequestInfo* info) {
|
||||||
const content::ResourceRequestInfo::WebContentsGetter& web_contents_getter,
|
|
||||||
bool is_main_frame,
|
|
||||||
ui::PageTransition transition,
|
|
||||||
bool has_user_gesture,
|
|
||||||
content::ResourceContext* resource_context) {
|
|
||||||
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||||
base::Bind(&HandleExternalProtocolInUI,
|
base::Bind(&HandleExternalProtocolInUI,
|
||||||
url,
|
url,
|
||||||
web_contents_getter,
|
info->GetWebContentsGetterForRequest(),
|
||||||
has_user_gesture));
|
info->HasUserGesture()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,14 +15,8 @@ class AtomResourceDispatcherHostDelegate
|
||||||
AtomResourceDispatcherHostDelegate();
|
AtomResourceDispatcherHostDelegate();
|
||||||
|
|
||||||
// content::ResourceDispatcherHostDelegate:
|
// content::ResourceDispatcherHostDelegate:
|
||||||
bool HandleExternalProtocol(
|
bool HandleExternalProtocol(const GURL& url,
|
||||||
const GURL& url,
|
content::ResourceRequestInfo* info) override;
|
||||||
int child_id,
|
|
||||||
const content::ResourceRequestInfo::WebContentsGetter&,
|
|
||||||
bool is_main_frame,
|
|
||||||
ui::PageTransition transition,
|
|
||||||
bool has_user_gesture,
|
|
||||||
content::ResourceContext* resource_context) override;
|
|
||||||
content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
|
content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
|
||||||
net::AuthChallengeInfo* auth_info,
|
net::AuthChallengeInfo* auth_info,
|
||||||
net::URLRequest* request) override;
|
net::URLRequest* request) override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue