| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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.h" | 5 #include "net/url_request/url_request.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/metrics/stats_counters.h" | 9 #include "base/metrics/stats_counters.h" |
| 10 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 net::SSLCertRequestInfo* cert_request_info) { | 76 net::SSLCertRequestInfo* cert_request_info) { |
| 77 request->ContinueWithCertificate(NULL); | 77 request->ContinueWithCertificate(NULL); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void URLRequest::Delegate::OnSSLCertificateError(URLRequest* request, | 80 void URLRequest::Delegate::OnSSLCertificateError(URLRequest* request, |
| 81 int cert_error, | 81 int cert_error, |
| 82 net::X509Certificate* cert) { | 82 net::X509Certificate* cert) { |
| 83 request->Cancel(); | 83 request->Cancel(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void URLRequest::Delegate::OnGetCookies(URLRequest* request, | 86 void URLRequest::Delegate::OnGetCookies( |
| 87 bool blocked_by_policy) { | 87 URLRequest* request, |
| 88 const net::CookieMonster::CookieList& cookie_list, |
| 89 bool blocked_by_policy) { |
| 88 } | 90 } |
| 89 | 91 |
| 90 void URLRequest::Delegate::OnSetCookie(URLRequest* request, | 92 void URLRequest::Delegate::OnSetCookie(URLRequest* request, |
| 91 const std::string& cookie_line, | 93 const std::string& cookie_line, |
| 92 bool blocked_by_policy) { | 94 bool blocked_by_policy) { |
| 93 } | 95 } |
| 94 | 96 |
| 95 /////////////////////////////////////////////////////////////////////////////// | 97 /////////////////////////////////////////////////////////////////////////////// |
| 96 // URLRequest | 98 // URLRequest |
| 97 | 99 |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 URLRequest::UserData* URLRequest::GetUserData(const void* key) const { | 592 URLRequest::UserData* URLRequest::GetUserData(const void* key) const { |
| 591 UserDataMap::const_iterator found = user_data_.find(key); | 593 UserDataMap::const_iterator found = user_data_.find(key); |
| 592 if (found != user_data_.end()) | 594 if (found != user_data_.end()) |
| 593 return found->second.get(); | 595 return found->second.get(); |
| 594 return NULL; | 596 return NULL; |
| 595 } | 597 } |
| 596 | 598 |
| 597 void URLRequest::SetUserData(const void* key, UserData* data) { | 599 void URLRequest::SetUserData(const void* key, UserData* data) { |
| 598 user_data_[key] = linked_ptr<UserData>(data); | 600 user_data_[key] = linked_ptr<UserData>(data); |
| 599 } | 601 } |
| OLD | NEW |