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 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const CompletionCallback& callback, | 87 const CompletionCallback& callback, |
88 const HttpResponseHeaders* original_response_headers, | 88 const HttpResponseHeaders* original_response_headers, |
89 scoped_refptr<HttpResponseHeaders>* override_response_headers, | 89 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
90 GURL* allowed_unsafe_redirect_url) override { | 90 GURL* allowed_unsafe_redirect_url) override { |
91 return OK; | 91 return OK; |
92 } | 92 } |
93 | 93 |
94 void OnBeforeRedirect(URLRequest* request, | 94 void OnBeforeRedirect(URLRequest* request, |
95 const GURL& new_location) override {} | 95 const GURL& new_location) override {} |
96 | 96 |
97 void OnResponseStarted(URLRequest* request) override {} | 97 void OnResponseStarted(URLRequest* request, int net_error) override {} |
98 | 98 |
99 void OnCompleted(URLRequest* request, bool started) override {} | 99 void OnCompleted(URLRequest* request, bool started, int net_error) override {} |
100 | 100 |
101 void OnURLRequestDestroyed(URLRequest* request) override {} | 101 void OnURLRequestDestroyed(URLRequest* request) override {} |
102 | 102 |
103 void OnPACScriptError(int line_number, const base::string16& error) override { | 103 void OnPACScriptError(int line_number, const base::string16& error) override { |
104 } | 104 } |
105 | 105 |
106 NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 106 NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
107 URLRequest* request, | 107 URLRequest* request, |
108 const AuthChallengeInfo& auth_info, | 108 const AuthChallengeInfo& auth_info, |
109 const AuthCallback& callback, | 109 const AuthCallback& callback, |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 } | 529 } |
530 url_request_interceptors_.clear(); | 530 url_request_interceptors_.clear(); |
531 } | 531 } |
532 storage->set_job_factory(std::move(top_job_factory)); | 532 storage->set_job_factory(std::move(top_job_factory)); |
533 // TODO(willchan): Support sdch. | 533 // TODO(willchan): Support sdch. |
534 | 534 |
535 return std::move(context); | 535 return std::move(context); |
536 } | 536 } |
537 | 537 |
538 } // namespace net | 538 } // namespace net |
OLD | NEW |