| 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 #ifndef NET_PROXY_PROXY_SCRIPT_DECIDER_H_ | 5 #ifndef NET_PROXY_PROXY_SCRIPT_DECIDER_H_ |
| 6 #define NET_PROXY_PROXY_SCRIPT_DECIDER_H_ | 6 #define NET_PROXY_PROXY_SCRIPT_DECIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 void DetermineURL(const PacSource& pac_source, GURL* effective_pac_url); | 154 void DetermineURL(const PacSource& pac_source, GURL* effective_pac_url); |
| 155 | 155 |
| 156 // Returns the current PAC URL we are fetching/testing. | 156 // Returns the current PAC URL we are fetching/testing. |
| 157 const PacSource& current_pac_source() const; | 157 const PacSource& current_pac_source() const; |
| 158 | 158 |
| 159 void OnWaitTimerFired(); | 159 void OnWaitTimerFired(); |
| 160 void DidComplete(); | 160 void DidComplete(); |
| 161 void Cancel(); | 161 void Cancel(); |
| 162 | 162 |
| 163 ProxyResolver* resolver_; | |
| 164 ProxyScriptFetcher* proxy_script_fetcher_; | 163 ProxyScriptFetcher* proxy_script_fetcher_; |
| 165 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher_; | 164 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher_; |
| 166 | 165 |
| 167 net::CompletionCallback callback_; | 166 net::CompletionCallback callback_; |
| 168 | 167 |
| 169 size_t current_pac_source_index_; | 168 size_t current_pac_source_index_; |
| 170 | 169 |
| 171 // Filled when the PAC script fetch completes. | 170 // Filled when the PAC script fetch completes. |
| 172 base::string16 pac_script_; | 171 base::string16 pac_script_; |
| 173 | 172 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 199 base::OneShotTimer<ProxyScriptDecider> quick_check_timer_; | 198 base::OneShotTimer<ProxyScriptDecider> quick_check_timer_; |
| 200 scoped_ptr<SingleRequestHostResolver> host_resolver_; | 199 scoped_ptr<SingleRequestHostResolver> host_resolver_; |
| 201 base::Time quick_check_start_time_; | 200 base::Time quick_check_start_time_; |
| 202 | 201 |
| 203 DISALLOW_COPY_AND_ASSIGN(ProxyScriptDecider); | 202 DISALLOW_COPY_AND_ASSIGN(ProxyScriptDecider); |
| 204 }; | 203 }; |
| 205 | 204 |
| 206 } // namespace net | 205 } // namespace net |
| 207 | 206 |
| 208 #endif // NET_PROXY_PROXY_SCRIPT_DECIDER_H_ | 207 #endif // NET_PROXY_PROXY_SCRIPT_DECIDER_H_ |
| OLD | NEW |