mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
When NetworkService is enabled requests created using CefFrame::CreateURLRequest will call CefRequestHandler::GetAuthCredentials for the associated browser after calling CefURLRequestClient::GetAuthCredentials if that call returns false.
This commit is contained in:
@ -9,10 +9,28 @@
|
||||
|
||||
#include "include/cef_urlrequest.h"
|
||||
|
||||
#include "base/optional.h"
|
||||
|
||||
namespace content {
|
||||
struct GlobalRequestID;
|
||||
}
|
||||
|
||||
class CefBrowserURLRequest : public CefURLRequest {
|
||||
public:
|
||||
class Context;
|
||||
|
||||
// TODO(network): After the old network code path is deleted move the
|
||||
// CefURLRequestClient::GetAuthCredentials callback to the context thread and
|
||||
// return just the CefBrowserURLRequest object here. The *Client object can
|
||||
// then be retrieved by calling GetClient() from the required thread.
|
||||
using RequestInfo = std::pair<CefRefPtr<CefBrowserURLRequest>,
|
||||
CefRefPtr<CefURLRequestClient>>;
|
||||
|
||||
// Retrieve the request objects, if any, associated with |request_id|.
|
||||
static base::Optional<RequestInfo> FromRequestID(int32_t request_id);
|
||||
static base::Optional<RequestInfo> FromRequestID(
|
||||
const content::GlobalRequestID& request_id);
|
||||
|
||||
// If |frame| is nullptr requests can still be intercepted but no
|
||||
// browser/frame will be associated with them.
|
||||
CefBrowserURLRequest(CefRefPtr<CefFrame> frame,
|
||||
|
Reference in New Issue
Block a user