Home | History | Annotate | Download | only in extensions

Lines Matching refs:request

94 static void ExtractRequestInfo(net::URLRequest* request,
98 if (!request->GetUserData(NULL))
102 ResourceDispatcherHost::InfoForRequest(request);
199 // If non-empty, this contains the new URL that the request will redirect to.
202 // Time the request was issued. Used for logging purposes.
294 net::URLRequest* request,
304 ExtractRequestInfo(request, &tab_id, &window_id, &resource_type);
307 GetMatchingListeners(profile_id, keys::kOnBeforeRequest, request->url(),
312 // If this is an HTTP request, keep track of it. HTTP-specific events only
313 // have the request ID, so we'll need to look up the URLRequest from that.
314 if (request->url().SchemeIs(chrome::kHttpScheme) ||
315 request->url().SchemeIs(chrome::kHttpsScheme)) {
316 http_requests_[request->identifier()] = request;
322 base::Uint64ToString(request->identifier()));
323 dict->SetString(keys::kUrlKey, request->url().spec());
324 dict->SetString(keys::kMethodKey, request->method());
328 request->request_time().ToDoubleT() * 1000);
331 if (DispatchEvent(profile_id, event_router, request, callback, listeners,
333 blocked_requests_[request->identifier()].new_url = new_url;
353 net::URLRequest* request = iter->second;
357 GetMatchingListeners(profile_id, keys::kOnBeforeSendHeaders, request);
364 base::Uint64ToString(request->identifier()));
365 dict->SetString(keys::kUrlKey, request->url().spec());
367 request->request_time().ToDoubleT() * 1000);
368 // TODO(mpcomplete): request headers.
371 if (DispatchEvent(profile_id, event_router, request, callback, listeners,
378 ProfileId profile_id, net::URLRequest* request) {
379 http_requests_.erase(request->identifier());
380 blocked_requests_.erase(request->identifier());
386 net::URLRequest* request,
402 (*it)->blocked_requests.insert(request->identifier());
408 CHECK(blocked_requests_.find(request->identifier()) ==
410 blocked_requests_[request->identifier()].num_handlers_blocking =
412 blocked_requests_[request->identifier()].callback = callback;
413 blocked_requests_[request->identifier()].request_time =
414 request->request_time();
482 // Unblock any request that this event listener may have been blocking.
527 net::URLRequest* request) {
531 ExtractRequestInfo(request, &tab_id, &window_id, &resource_type);
534 profile_id, event_name, request->url(), tab_id, window_id, resource_type);
540 // It's possible that this request was deleted, or cancelled by a previous