| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 return OK; | 57 return OK; |
| 58 } | 58 } |
| 59 | 59 |
| 60 virtual void OnSendHeaders(URLRequest* request, | 60 virtual void OnSendHeaders(URLRequest* request, |
| 61 const HttpRequestHeaders& headers) OVERRIDE {} | 61 const HttpRequestHeaders& headers) OVERRIDE {} |
| 62 | 62 |
| 63 virtual int OnHeadersReceived( | 63 virtual int OnHeadersReceived( |
| 64 URLRequest* request, | 64 URLRequest* request, |
| 65 const CompletionCallback& callback, | 65 const CompletionCallback& callback, |
| 66 const HttpResponseHeaders* original_response_headers, | 66 const HttpResponseHeaders* original_response_headers, |
| 67 scoped_refptr<HttpResponseHeaders>* override_response_headers) | 67 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
| 68 OVERRIDE { | 68 GURL* allowed_unsafe_redirect_url) OVERRIDE { |
| 69 return OK; | 69 return OK; |
| 70 } | 70 } |
| 71 | 71 |
| 72 virtual void OnBeforeRedirect(URLRequest* request, | 72 virtual void OnBeforeRedirect(URLRequest* request, |
| 73 const GURL& new_location) OVERRIDE {} | 73 const GURL& new_location) OVERRIDE {} |
| 74 | 74 |
| 75 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} | 75 virtual void OnResponseStarted(URLRequest* request) OVERRIDE {} |
| 76 | 76 |
| 77 virtual void OnRawBytesRead(const URLRequest& request, | 77 virtual void OnRawBytesRead(const URLRequest& request, |
| 78 int bytes_read) OVERRIDE {} | 78 int bytes_read) OVERRIDE {} |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 } | 320 } |
| 321 #endif | 321 #endif |
| 322 storage->set_job_factory(job_factory); | 322 storage->set_job_factory(job_factory); |
| 323 | 323 |
| 324 // TODO(willchan): Support sdch. | 324 // TODO(willchan): Support sdch. |
| 325 | 325 |
| 326 return context; | 326 return context; |
| 327 } | 327 } |
| 328 | 328 |
| 329 } // namespace net | 329 } // namespace net |
| OLD | NEW |