Home | History | Annotate | Download | only in url_request

Lines Matching refs:request

35 // This stores the values of the Set-Cookie headers received during the request.
66 // factories to be queried. If no factory handles the request, then the
68 typedef URLRequestJob* (ProtocolFactory)(URLRequest* request,
71 // HTTP request/response header IDs (via some preprocessor fun) for use with
93 // Called for every request made. Should return a new job to handle the
94 // request if it should be intercepted, or NULL to allow the request to
96 virtual URLRequestJob* MaybeIntercept(URLRequest* request) = 0;
99 // the request delegate being informed of the redirect. Can return a new
104 virtual URLRequestJob* MaybeInterceptRedirect(URLRequest* request,
108 // the request delegate being informed of the response. This is also
115 virtual URLRequestJob* MaybeInterceptResponse(URLRequest* request);
119 // on which the request's Start() method is called. See above for the
137 // Read() returns false, the caller can check the Request's status() to see
146 // request's Cancel method to prevent the redirect from being followed.
150 // When this function is called, the request will still contain the
152 // If the delegate does not cancel the request and |*defer_redirect| is
153 // false, then the redirect will be followed, and the request's URL will be
155 // request and |*defer_redirect| is true, then the redirect will be
161 virtual void OnReceivedRedirect(URLRequest* request,
166 // call request->SetAuth() with the user's credentials once it obtains them,
167 // or request->CancelAuth() to cancel the login and display the error page.
168 // When it does so, the request will be reissued, restarting the sequence
170 virtual void OnAuthRequired(URLRequest* request,
175 // request->ContinueWithCertificate() with the client certificate the user
176 // selected, or request->ContinueWithCertificate(NULL) to continue the SSL
179 URLRequest* request,
185 // safe thing and Cancel() the request or decide to proceed by calling
188 virtual void OnSSLCertificateError(URLRequest* request,
195 virtual void OnGetCookies(URLRequest* request, bool blocked_by_policy);
200 virtual void OnSetCookie(URLRequest* request,
206 // callback when the request has completed. If an error occurred, the
207 // request->status() will be set. On success, all redirects have been
210 // response headers if this is a request for a HTTP resource.
211 virtual void OnResponseStarted(URLRequest* request) = 0;
218 // If an error occurred, request->status() will contain the error,
220 virtual void OnReadCompleted(URLRequest* request, int bytes_read) = 0;
223 // Initialize an URL request.
227 // then the request will be effectively canceled and the delegate
231 // The user data allows the clients to associate data with this request.
233 // This request will TAKE OWNERSHIP of the given data pointer, and will
234 // delete the object if it is changed or the request is destroyed.
274 // The original url is the url used to initialize the request, and it may
275 // differ from the url if the request was redirected.
277 // The chain of urls traversed by this request. If the request had no
291 // The request method, as an uppercase string. "GET" is the default value.
292 // The request method may only be changed before Start() is called and
297 // The referrer URL for the request. This header may actually be suppressed
298 // from the underlying network request for security reasons (e.g., a HTTPS
299 // URL will not be sent as the referrer for a HTTP request). The referrer
306 // The delegate of the request. This value may be changed at any time,
311 // The data comprising the request message body is specified as a sequence of
315 // SetRequestHeaderBy{Id,Name} to set the Content-Type of the request to the
332 // Indicates that the request body should be sent using chunked transfer
336 // Appends the given bytes to the request's upload data to be sent
351 // Returns true if the request has a non-empty message body to upload.
354 // Set an extra request header by ID or name. These methods may only be
361 // Sets all extra request headers. Any extra request headers set by other
370 // Returns the current load state for the request.
434 // Returns the cookie values included in the response, if the request is one
435 // that can have cookies. Returns true if the request is a cookie-bearing
456 // Access the LOAD_* flags modifying this request (see load_flags.h).
460 // Returns true if the request is "pending" (i.e., if Start() has been called,
464 // Returns the error status of the request.
467 // Returns a globally unique identifier for this request.
470 // This method is called to start the request. The delegate will receive
471 // a OnResponseStarted callback when the request is started.
475 // cancel the request. This method may be called many times, and it has
477 // methods of the delegate will be called after the request has been
482 // Cancels the request and sets the error to |os_error| (see net_error_list.h
486 // Cancels the request and sets the error to |os_error| (see net_error_list.h
487 // for values) and attaches |ssl_info| as the SSLInfo for that request. This
489 // request.
498 // the caller receives the OnReadComplete callback. Unless the request was
512 // If a read error occurs, Read returns false and the request->status
516 // If this request is being cached by the HTTP cache, stop subsequent caching.
518 // for the same resource. The typical example is a request that results in
529 // SetAuth will reissue the request with the given credentials.
535 // instruct this URLRequest to continue with the request with the
540 // URLRequest to ignore the current error and continue with the request. To
541 // cancel the request instead, call Cancel().
544 // Used to specify the context (cookie store, cache) for this request.
553 // Returns the priority level for this request.
577 // Allow the URLRequestJob to redirect this request. Returns OK if
588 // Allow an interceptor's URLRequestJob to restart this request.
598 // Resumes or blocks a request paused by the NetworkDelegate::OnBeforeRequest
599 // handler. If |blocked| is true, the request is blocked and an error page is
601 // and OnBeforeRequest returns true (signalling that the request should be
612 // Detaches the job from this request in preparation for this object going
617 // Cancels the request and set the error and ssl info for this request to the
621 // Contextual information used for this request (can be NULL). This contains
626 // Tracks the time spent in various load states throughout this request.
637 int load_flags_; // Flags indicating the request type for the load;
663 // first transaction in a request involving redirects.
666 // The priority level for this request. Objects like ClientSocketPool use
670 // A globally unique identifier for this request.
675 // Callback passed to the network delegate to notify us when a blocked request