Use lower case for getters
This commit is contained in:
parent
67886cf513
commit
15cc8164b8
2 changed files with 4 additions and 4 deletions
|
@ -128,7 +128,7 @@ void OnBeforeURLRequestResponse(
|
|||
const AtomNetworkDelegate::BlockingResponse& result) {
|
||||
if (!result.redirect_url.is_empty())
|
||||
*new_url = result.redirect_url;
|
||||
callback.Run(result.Code());
|
||||
callback.Run(result.code());
|
||||
}
|
||||
|
||||
void OnBeforeSendHeadersResponse(
|
||||
|
@ -137,7 +137,7 @@ void OnBeforeSendHeadersResponse(
|
|||
const AtomNetworkDelegate::BlockingResponse& result) {
|
||||
if (!result.request_headers.IsEmpty())
|
||||
*headers = result.request_headers;
|
||||
callback.Run(result.Code());
|
||||
callback.Run(result.code());
|
||||
}
|
||||
|
||||
void OnHeadersReceivedResponse(
|
||||
|
@ -156,7 +156,7 @@ void OnHeadersReceivedResponse(
|
|||
(*override_response_headers)->AddHeader(key + ": " + value);
|
||||
}
|
||||
}
|
||||
callback.Run(result.Code());
|
||||
callback.Run(result.code());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -51,7 +51,7 @@ class AtomNetworkDelegate : public brightray::NetworkDelegate {
|
|||
BlockingResponse() : cancel(false) {}
|
||||
~BlockingResponse() {}
|
||||
|
||||
int Code() const {
|
||||
int code() const {
|
||||
return cancel ? net::ERR_BLOCKED_BY_CLIENT : net::OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue