parent
66128a7152
commit
3f4f774838
4 changed files with 8 additions and 9 deletions
|
@ -80,7 +80,7 @@ bool AtomResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
|
||||||
GURL* origin,
|
GURL* origin,
|
||||||
std::string* payload) {
|
std::string* payload) {
|
||||||
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||||
const content::ResourceRequestInfo* info =
|
content::ResourceRequestInfo* info =
|
||||||
content::ResourceRequestInfo::ForRequest(request);
|
content::ResourceRequestInfo::ForRequest(request);
|
||||||
|
|
||||||
int render_process_host_id;
|
int render_process_host_id;
|
||||||
|
|
|
@ -20,12 +20,11 @@ using content::BrowserThread;
|
||||||
|
|
||||||
namespace atom {
|
namespace atom {
|
||||||
|
|
||||||
LoginHandler::LoginHandler(
|
LoginHandler::LoginHandler(net::URLRequest* request,
|
||||||
net::URLRequest* request,
|
const net::AuthChallengeInfo& auth_info,
|
||||||
const net::AuthChallengeInfo& auth_info,
|
net::NetworkDelegate::AuthCallback callback,
|
||||||
net::NetworkDelegate::AuthCallback callback,
|
net::AuthCredentials* credentials,
|
||||||
net::AuthCredentials* credentials,
|
content::ResourceRequestInfo* resource_request_info)
|
||||||
const content::ResourceRequestInfo* resource_request_info)
|
|
||||||
: credentials_(credentials),
|
: credentials_(credentials),
|
||||||
auth_info_(&auth_info),
|
auth_info_(&auth_info),
|
||||||
auth_callback_(std::move(callback)),
|
auth_callback_(std::move(callback)),
|
||||||
|
|
|
@ -26,7 +26,7 @@ class LoginHandler : public base::RefCountedThreadSafe<LoginHandler> {
|
||||||
const net::AuthChallengeInfo& auth_info,
|
const net::AuthChallengeInfo& auth_info,
|
||||||
net::NetworkDelegate::AuthCallback callback,
|
net::NetworkDelegate::AuthCallback callback,
|
||||||
net::AuthCredentials* credentials,
|
net::AuthCredentials* credentials,
|
||||||
const content::ResourceRequestInfo* resource_request_info);
|
content::ResourceRequestInfo* resource_request_info);
|
||||||
|
|
||||||
// The auth is cancelled, must be called on UI thread.
|
// The auth is cancelled, must be called on UI thread.
|
||||||
void CancelAuth();
|
void CancelAuth();
|
||||||
|
|
|
@ -101,7 +101,7 @@ void ToDictionary(base::DictionaryValue* details, net::URLRequest* request) {
|
||||||
FillRequestDetails(details, request);
|
FillRequestDetails(details, request);
|
||||||
details->SetInteger("id", request->identifier());
|
details->SetInteger("id", request->identifier());
|
||||||
details->SetDouble("timestamp", base::Time::Now().ToDoubleT() * 1000);
|
details->SetDouble("timestamp", base::Time::Now().ToDoubleT() * 1000);
|
||||||
const auto* info = content::ResourceRequestInfo::ForRequest(request);
|
auto* info = content::ResourceRequestInfo::ForRequest(request);
|
||||||
if (info) {
|
if (info) {
|
||||||
details->SetString("resourceType",
|
details->SetString("resourceType",
|
||||||
ResourceTypeToString(info->GetResourceType()));
|
ResourceTypeToString(info->GetResourceType()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue