OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |