Fixing build: removing constness on net::HttpResponseHeaders as otherwise we would need a change in libchromiumcontent.
This commit is contained in:
parent
6f5b0a28c5
commit
de29f2dde5
6 changed files with 12 additions and 12 deletions
|
@ -322,7 +322,7 @@ void URLRequest::OnAuthenticationRequired(
|
||||||
}
|
}
|
||||||
|
|
||||||
void URLRequest::OnResponseStarted(
|
void URLRequest::OnResponseStarted(
|
||||||
scoped_refptr<const net::HttpResponseHeaders> response_headers) {
|
scoped_refptr<net::HttpResponseHeaders> response_headers) {
|
||||||
if (request_state_.Canceled() ||
|
if (request_state_.Canceled() ||
|
||||||
request_state_.Failed() ||
|
request_state_.Failed() ||
|
||||||
request_state_.Closed()) {
|
request_state_.Closed()) {
|
||||||
|
@ -394,7 +394,7 @@ std::string URLRequest::StatusMessage() const {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
scoped_refptr<const net::HttpResponseHeaders>
|
scoped_refptr<net::HttpResponseHeaders>
|
||||||
URLRequest::RawResponseHeaders() const {
|
URLRequest::RawResponseHeaders() const {
|
||||||
return response_headers_;
|
return response_headers_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ class URLRequest : public mate::EventEmitter<URLRequest> {
|
||||||
void OnAuthenticationRequired(
|
void OnAuthenticationRequired(
|
||||||
scoped_refptr<const net::AuthChallengeInfo> auth_info);
|
scoped_refptr<const net::AuthChallengeInfo> auth_info);
|
||||||
void OnResponseStarted(
|
void OnResponseStarted(
|
||||||
scoped_refptr<const net::HttpResponseHeaders> response_headers);
|
scoped_refptr<net::HttpResponseHeaders> response_headers);
|
||||||
void OnResponseData(scoped_refptr<const net::IOBufferWithSize> data);
|
void OnResponseData(scoped_refptr<const net::IOBufferWithSize> data);
|
||||||
void OnResponseCompleted();
|
void OnResponseCompleted();
|
||||||
void OnRequestError(const std::string& error);
|
void OnRequestError(const std::string& error);
|
||||||
|
@ -178,7 +178,7 @@ class URLRequest : public mate::EventEmitter<URLRequest> {
|
||||||
bool CanReadHeaders() const;
|
bool CanReadHeaders() const;
|
||||||
int StatusCode() const;
|
int StatusCode() const;
|
||||||
std::string StatusMessage() const;
|
std::string StatusMessage() const;
|
||||||
scoped_refptr<const net::HttpResponseHeaders> RawResponseHeaders() const;
|
scoped_refptr<net::HttpResponseHeaders> RawResponseHeaders() const;
|
||||||
uint32_t ResponseHttpVersionMajor() const;
|
uint32_t ResponseHttpVersionMajor() const;
|
||||||
uint32_t ResponseHttpVersionMinor() const;
|
uint32_t ResponseHttpVersionMinor() const;
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ class URLRequest : public mate::EventEmitter<URLRequest> {
|
||||||
|
|
||||||
// Used to implement pin/unpin.
|
// Used to implement pin/unpin.
|
||||||
v8::Global<v8::Object> wrapper_;
|
v8::Global<v8::Object> wrapper_;
|
||||||
scoped_refptr<const net::HttpResponseHeaders> response_headers_;
|
scoped_refptr<net::HttpResponseHeaders> response_headers_;
|
||||||
base::WeakPtrFactory<URLRequest> weak_ptr_factory_;
|
base::WeakPtrFactory<URLRequest> weak_ptr_factory_;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -249,7 +249,7 @@ void AtomURLRequest::OnResponseStarted(net::URLRequest* request) {
|
||||||
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
||||||
DCHECK_EQ(request, request_.get());
|
DCHECK_EQ(request, request_.get());
|
||||||
|
|
||||||
scoped_refptr<const net::HttpResponseHeaders> response_headers =
|
scoped_refptr<net::HttpResponseHeaders> response_headers =
|
||||||
request->response_headers();
|
request->response_headers();
|
||||||
const auto& status = request_->status();
|
const auto& status = request_->status();
|
||||||
if (status.is_success()) {
|
if (status.is_success()) {
|
||||||
|
@ -358,7 +358,7 @@ void AtomURLRequest::InformDelegateAuthenticationRequired(
|
||||||
}
|
}
|
||||||
|
|
||||||
void AtomURLRequest::InformDelegateResponseStarted(
|
void AtomURLRequest::InformDelegateResponseStarted(
|
||||||
scoped_refptr<const net::HttpResponseHeaders> response_headers) const {
|
scoped_refptr<net::HttpResponseHeaders> response_headers) const {
|
||||||
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
||||||
if (delegate_)
|
if (delegate_)
|
||||||
delegate_->OnResponseStarted(response_headers);
|
delegate_->OnResponseStarted(response_headers);
|
||||||
|
|
|
@ -72,7 +72,7 @@ class AtomURLRequest : public base::RefCountedThreadSafe<AtomURLRequest>,
|
||||||
void InformDelegateAuthenticationRequired(
|
void InformDelegateAuthenticationRequired(
|
||||||
scoped_refptr<net::AuthChallengeInfo> auth_info) const;
|
scoped_refptr<net::AuthChallengeInfo> auth_info) const;
|
||||||
void InformDelegateResponseStarted(
|
void InformDelegateResponseStarted(
|
||||||
scoped_refptr<const net::HttpResponseHeaders>) const;
|
scoped_refptr<net::HttpResponseHeaders>) const;
|
||||||
void InformDelegateResponseData(
|
void InformDelegateResponseData(
|
||||||
scoped_refptr<net::IOBufferWithSize> data) const;
|
scoped_refptr<net::IOBufferWithSize> data) const;
|
||||||
void InformDelegateResponseCompleted() const;
|
void InformDelegateResponseCompleted() const;
|
||||||
|
|
|
@ -61,9 +61,9 @@ v8::Local<v8::Value> Converter<scoped_refptr<net::X509Certificate>>::ToV8(
|
||||||
|
|
||||||
// static
|
// static
|
||||||
v8::Local<v8::Value>
|
v8::Local<v8::Value>
|
||||||
Converter<scoped_refptr<const net::HttpResponseHeaders>>::ToV8(
|
Converter<scoped_refptr<net::HttpResponseHeaders>>::ToV8(
|
||||||
v8::Isolate* isolate,
|
v8::Isolate* isolate,
|
||||||
scoped_refptr<const net::HttpResponseHeaders> headers) {
|
scoped_refptr<net::HttpResponseHeaders> headers) {
|
||||||
base::DictionaryValue response_headers;
|
base::DictionaryValue response_headers;
|
||||||
if (headers) {
|
if (headers) {
|
||||||
size_t iter = 0;
|
size_t iter = 0;
|
||||||
|
|
|
@ -35,9 +35,9 @@ struct Converter<scoped_refptr<net::X509Certificate>> {
|
||||||
};
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct Converter<scoped_refptr<const net::HttpResponseHeaders>> {
|
struct Converter<scoped_refptr<net::HttpResponseHeaders>> {
|
||||||
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
||||||
scoped_refptr<const net::HttpResponseHeaders> headers);
|
scoped_refptr<net::HttpResponseHeaders> headers);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace mate
|
} // namespace mate
|
||||||
|
|
Loading…
Reference in a new issue