Use lower case for getters

This commit is contained in:
Cheng Zhao 2015-12-11 21:21:02 +08:00
parent 67886cf513
commit 15cc8164b8
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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;
}