| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/net/resolve_proxy_msg_helper.h" | 5 #include "chrome/browser/net/resolve_proxy_msg_helper.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/common/net/url_request_context_getter.h" | 9 #include "chrome/common/net/url_request_context_getter.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 11 #include "net/url_request/url_request_context.h" | 11 #include "net/url_request/url_request_context.h" |
| 12 | 12 |
| 13 ResolveProxyMsgHelper::ResolveProxyMsgHelper(Delegate* delegate, | 13 ResolveProxyMsgHelper::ResolveProxyMsgHelper(Delegate* delegate, |
| 14 net::ProxyService* proxy_service) | 14 net::ProxyService* proxy_service) |
| 15 : proxy_service_(NULL), | 15 : proxy_service_(NULL), |
| 16 ALLOW_THIS_IN_INITIALIZER_LIST(callback_( | 16 ALLOW_THIS_IN_INITIALIZER_LIST(callback_( |
| 17 this, &ResolveProxyMsgHelper::OnResolveProxyCompleted)), | 17 this, &ResolveProxyMsgHelper::OnResolveProxyCompleted)), |
| 18 delegate_(delegate), | 18 delegate_(delegate), |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 for (PendingRequestList::iterator it = pending_requests_.begin(); | 101 for (PendingRequestList::iterator it = pending_requests_.begin(); |
| 102 it != pending_requests_.end(); | 102 it != pending_requests_.end(); |
| 103 ++it) { | 103 ++it) { |
| 104 delete it->reply_msg; | 104 delete it->reply_msg; |
| 105 } | 105 } |
| 106 | 106 |
| 107 proxy_service_ = NULL; | 107 proxy_service_ = NULL; |
| 108 pending_requests_.clear(); | 108 pending_requests_.clear(); |
| 109 } | 109 } |
| OLD | NEW |