OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_BROWSER_RESOLVE_PROXY_MSG_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_RESOLVE_PROXY_MSG_HELPER_H_ |
6 #define CONTENT_BROWSER_RESOLVE_PROXY_MSG_HELPER_H_ | 6 #define CONTENT_BROWSER_RESOLVE_PROXY_MSG_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // The URL of the request. | 63 // The URL of the request. |
64 GURL url; | 64 GURL url; |
65 | 65 |
66 // Data to pass back to the delegate on completion (we own it until then). | 66 // Data to pass back to the delegate on completion (we own it until then). |
67 IPC::Message* reply_msg; | 67 IPC::Message* reply_msg; |
68 | 68 |
69 // Handle for cancelling the current request if it has started (else NULL). | 69 // Handle for cancelling the current request if it has started (else NULL). |
70 net::ProxyService::PacRequest* pac_req; | 70 net::ProxyService::PacRequest* pac_req; |
71 }; | 71 }; |
72 | 72 |
73 // Members for the current outstanding proxy request. | 73 // Info about the current outstanding proxy request. |
74 net::OldCompletionCallbackImpl<ResolveProxyMsgHelper> callback_; | |
75 net::ProxyInfo proxy_info_; | 74 net::ProxyInfo proxy_info_; |
76 | 75 |
77 // FIFO queue of pending requests. The first entry is always the current one. | 76 // FIFO queue of pending requests. The first entry is always the current one. |
78 typedef std::deque<PendingRequest> PendingRequestList; | 77 typedef std::deque<PendingRequest> PendingRequestList; |
79 PendingRequestList pending_requests_; | 78 PendingRequestList pending_requests_; |
80 | 79 |
81 scoped_refptr<net::URLRequestContextGetter> context_getter_; | 80 scoped_refptr<net::URLRequestContextGetter> context_getter_; |
82 net::ProxyService* proxy_service_; | 81 net::ProxyService* proxy_service_; |
83 }; | 82 }; |
84 | 83 |
85 #endif // CONTENT_BROWSER_RESOLVE_PROXY_MSG_HELPER_H_ | 84 #endif // CONTENT_BROWSER_RESOLVE_PROXY_MSG_HELPER_H_ |
OLD | NEW |