From 15cc8164b8edfe13682b823848ea0a7256499205 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 11 Dec 2015 21:21:02 +0800 Subject: [PATCH] Use lower case for getters --- atom/browser/net/atom_network_delegate.cc | 6 +++--- atom/browser/net/atom_network_delegate.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/atom/browser/net/atom_network_delegate.cc b/atom/browser/net/atom_network_delegate.cc index 9ec2fdafa02..d536b0f8a91 100644 --- a/atom/browser/net/atom_network_delegate.cc +++ b/atom/browser/net/atom_network_delegate.cc @@ -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 diff --git a/atom/browser/net/atom_network_delegate.h b/atom/browser/net/atom_network_delegate.h index 869c0ec09d2..72a69b1656b 100644 --- a/atom/browser/net/atom_network_delegate.h +++ b/atom/browser/net/atom_network_delegate.h @@ -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; }