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

Side by Side Diff: net/url_request/url_request_context_builder.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_request_context_builder.h" 5 #include "net/url_request/url_request_context_builder.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 HttpRequestHeaders* headers) OVERRIDE { 49 HttpRequestHeaders* headers) OVERRIDE {
50 return OK; 50 return OK;
51 } 51 }
52 52
53 virtual void OnSendHeaders(URLRequest* request, 53 virtual void OnSendHeaders(URLRequest* request,
54 const HttpRequestHeaders& headers) OVERRIDE {} 54 const HttpRequestHeaders& headers) OVERRIDE {}
55 55
56 virtual int OnHeadersReceived( 56 virtual int OnHeadersReceived(
57 URLRequest* request, 57 URLRequest* request,
58 const CompletionCallback& callback, 58 const CompletionCallback& callback,
59 HttpResponseHeaders* original_response_headers, 59 const HttpResponseHeaders* original_response_headers,
60 scoped_refptr<HttpResponseHeaders>* override_response_headers) 60 scoped_refptr<HttpResponseHeaders>* override_response_headers)
61 OVERRIDE { 61 OVERRIDE {
62 return OK; 62 return OK;
63 } 63 }
64 64
65 virtual void OnBeforeRedirect(URLRequest* request, 65 virtual void OnBeforeRedirect(URLRequest* request,
66 const GURL& new_location) OVERRIDE {} 66 const GURL& new_location) OVERRIDE {}
67 67
68 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} 68 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {}
69 69
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 http_transaction_factory = new HttpNetworkLayer(network_session); 302 http_transaction_factory = new HttpNetworkLayer(network_session);
303 } 303 }
304 storage->set_http_transaction_factory(http_transaction_factory); 304 storage->set_http_transaction_factory(http_transaction_factory);
305 305
306 // TODO(willchan): Support sdch. 306 // TODO(willchan): Support sdch.
307 307
308 return context; 308 return context;
309 } 309 }
310 310
311 } // namespace net 311 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698