Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: net/base/network_delegate.h

Issue 10944013: Make original_response_headers parameter of NetworkDelegate::OnHeadersReceived const (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/shell_network_delegate.cc ('k') | net/base/network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_delegate.h
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
index ed571972fe6acc0d5376c847d3009a7d42e52f3b..907d0b9b739a9711fad95ae474adcde8a904ab1d 100644
--- a/net/base/network_delegate.h
+++ b/net/base/network_delegate.h
@@ -73,7 +73,7 @@ class NetworkDelegate : public base::NonThreadSafe {
int NotifyHeadersReceived(
URLRequest* request,
const CompletionCallback& callback,
- HttpResponseHeaders* original_response_headers,
+ const HttpResponseHeaders* original_response_headers,
jochen (gone - plz use gerrit) 2012/10/20 02:04:13 why are you making this a const ptr instead of a c
battre 2012/10/20 09:49:56 like for URLRequest, you are allowed to hold on to
scoped_refptr<HttpResponseHeaders>* override_response_headers);
void NotifyBeforeRedirect(URLRequest* request,
const GURL& new_location);
@@ -146,7 +146,7 @@ class NetworkDelegate : public base::NonThreadSafe {
virtual int OnHeadersReceived(
URLRequest* request,
const CompletionCallback& callback,
- HttpResponseHeaders* original_response_headers,
+ const HttpResponseHeaders* original_response_headers,
scoped_refptr<HttpResponseHeaders>* override_response_headers) = 0;
// Called right after a redirect response code was received.
« no previous file with comments | « content/shell/shell_network_delegate.cc ('k') | net/base/network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698