Fix OnResourceResponse spelling error (issue #270).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@260 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
92cec88ffd
commit
572f9f13d6
|
@ -1102,10 +1102,10 @@ public:
|
|||
// modified as it arrives.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void OnResourceReponse(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url,
|
||||
CefRefPtr<CefResponse> response,
|
||||
CefRefPtr<CefContentFilter>& filter) {}
|
||||
virtual void OnResourceResponse(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url,
|
||||
CefRefPtr<CefResponse> response,
|
||||
CefRefPtr<CefContentFilter>& filter) {}
|
||||
|
||||
///
|
||||
// Called on the IO thread to handle requests for URLs with an unknown
|
||||
|
|
|
@ -937,7 +937,7 @@ typedef struct _cef_request_handler_t
|
|||
// received. Set |filter| if response content needs to be monitored and/or
|
||||
// modified as it arrives.
|
||||
///
|
||||
void (CEF_CALLBACK *on_resource_reponse)(struct _cef_request_handler_t* self,
|
||||
void (CEF_CALLBACK *on_resource_response)(struct _cef_request_handler_t* self,
|
||||
struct _cef_browser_t* browser, const cef_string_t* url,
|
||||
struct _cef_response_t* response,
|
||||
struct _cef_content_filter_t** filter);
|
||||
|
|
|
@ -217,7 +217,7 @@ class RequestProxy : public net::URLRequest::Delegate,
|
|||
response->SetStatus(info.headers->response_code());
|
||||
}
|
||||
response->SetMimeType(info.mime_type);
|
||||
handler->OnResourceReponse(browser_, url.spec(), response,
|
||||
handler->OnResourceResponse(browser_, url.spec(), response,
|
||||
content_filter_);
|
||||
|
||||
std::string content_disposition;
|
||||
|
@ -254,7 +254,7 @@ class RequestProxy : public net::URLRequest::Delegate,
|
|||
// Note: Doing this before notifying our peer ensures our load events get
|
||||
// dispatched in a manner consistent with DumpRenderTree (and also avoids a
|
||||
// race condition). If the order of the next 2 functions were reversed, the
|
||||
// peer could generate new requests in reponse to the received data, which
|
||||
// peer could generate new requests in response to the received data, which
|
||||
// when run on the io thread, could race against this function in doing
|
||||
// another InvokeLater. See bug 769249.
|
||||
CefThread::PostTask(CefThread::IO, FROM_HERE, NewRunnableMethod(
|
||||
|
|
|
@ -68,7 +68,7 @@ int CEF_CALLBACK request_handler_on_before_resource_load(
|
|||
return rv;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_handler_on_resource_reponse(
|
||||
void CEF_CALLBACK request_handler_on_resource_response(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* url, struct _cef_response_t* response,
|
||||
struct _cef_content_filter_t** filter)
|
||||
|
@ -83,7 +83,7 @@ void CEF_CALLBACK request_handler_on_resource_reponse(
|
|||
|
||||
CefRefPtr<CefContentFilter> filterPtr;
|
||||
|
||||
CefRequestHandlerCppToC::Get(self)->OnResourceReponse(
|
||||
CefRequestHandlerCppToC::Get(self)->OnResourceResponse(
|
||||
CefBrowserCToCpp::Wrap(browser), url, CefResponseCToCpp::Wrap(response),
|
||||
filterPtr);
|
||||
|
||||
|
@ -169,7 +169,7 @@ CefRequestHandlerCppToC::CefRequestHandlerCppToC(CefRequestHandler* cls)
|
|||
struct_.struct_.on_before_browse = request_handler_on_before_browse;
|
||||
struct_.struct_.on_before_resource_load =
|
||||
request_handler_on_before_resource_load;
|
||||
struct_.struct_.on_resource_reponse = request_handler_on_resource_reponse;
|
||||
struct_.struct_.on_resource_response = request_handler_on_resource_response;
|
||||
struct_.struct_.on_protocol_execution = request_handler_on_protocol_execution;
|
||||
struct_.struct_.get_download_handler = request_handler_get_download_handler;
|
||||
struct_.struct_.get_auth_credentials = request_handler_get_auth_credentials;
|
||||
|
|
|
@ -55,16 +55,16 @@ bool CefRequestHandlerCToCpp::OnBeforeResourceLoad(
|
|||
return (rv ? true : false);
|
||||
}
|
||||
|
||||
void CefRequestHandlerCToCpp::OnResourceReponse(CefRefPtr<CefBrowser> browser,
|
||||
void CefRequestHandlerCToCpp::OnResourceResponse(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url, CefRefPtr<CefResponse> response,
|
||||
CefRefPtr<CefContentFilter>& filter)
|
||||
{
|
||||
if (CEF_MEMBER_MISSING(struct_, on_resource_reponse))
|
||||
if (CEF_MEMBER_MISSING(struct_, on_resource_response))
|
||||
return;
|
||||
|
||||
cef_content_filter_t* filterRet = NULL;
|
||||
|
||||
struct_->on_resource_reponse(struct_,
|
||||
struct_->on_resource_response(struct_,
|
||||
CefBrowserCppToC::Wrap(browser), url.GetStruct(),
|
||||
CefResponseCppToC::Wrap(response), &filterRet);
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
CefRefPtr<CefRequest> request, CefString& redirectUrl,
|
||||
CefRefPtr<CefStreamReader>& resourceStream,
|
||||
CefRefPtr<CefResponse> response, int loadFlags) OVERRIDE;
|
||||
virtual void OnResourceReponse(CefRefPtr<CefBrowser> browser,
|
||||
virtual void OnResourceResponse(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url, CefRefPtr<CefResponse> response,
|
||||
CefRefPtr<CefContentFilter>& filter) OVERRIDE;
|
||||
virtual bool OnProtocolExecution(CefRefPtr<CefBrowser> browser,
|
||||
|
|
|
@ -166,10 +166,10 @@ public:
|
|||
CreateBrowser("http://tests/test_filter.html");
|
||||
}
|
||||
|
||||
virtual void OnResourceReponse(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url,
|
||||
CefRefPtr<CefResponse> response,
|
||||
CefRefPtr<CefContentFilter>& filter) OVERRIDE
|
||||
virtual void OnResourceResponse(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url,
|
||||
CefRefPtr<CefResponse> response,
|
||||
CefRefPtr<CefContentFilter>& filter) OVERRIDE
|
||||
{
|
||||
EXPECT_TRUE(CefCurrentlyOn(TID_UI));
|
||||
|
||||
|
|
Loading…
Reference in New Issue