| 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/proxy/dhcp_proxy_script_fetcher_win.h" | 5 #include "net/proxy/dhcp_proxy_script_fetcher_win.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 did_finish, result, pac_script, fetch_delay.InMilliseconds()); | 323 did_finish, result, pac_script, fetch_delay.InMilliseconds()); |
| 324 PushBackAdapter(adapter_name, adapter_fetcher.release()); | 324 PushBackAdapter(adapter_name, adapter_fetcher.release()); |
| 325 } | 325 } |
| 326 | 326 |
| 327 DhcpProxyScriptAdapterFetcher* ImplCreateAdapterFetcher() override { | 327 DhcpProxyScriptAdapterFetcher* ImplCreateAdapterFetcher() override { |
| 328 ++num_fetchers_created_; | 328 ++num_fetchers_created_; |
| 329 return adapter_fetchers_[next_adapter_fetcher_index_++]; | 329 return adapter_fetchers_[next_adapter_fetcher_index_++]; |
| 330 } | 330 } |
| 331 | 331 |
| 332 virtual AdapterQuery* ImplCreateAdapterQuery() override { | 332 virtual AdapterQuery* ImplCreateAdapterQuery() override { |
| 333 DCHECK(adapter_query_); | 333 DCHECK(adapter_query_.get()); |
| 334 return adapter_query_.get(); | 334 return adapter_query_.get(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 base::TimeDelta ImplGetMaxWait() override { | 337 base::TimeDelta ImplGetMaxWait() override { |
| 338 return max_wait_; | 338 return max_wait_; |
| 339 } | 339 } |
| 340 | 340 |
| 341 void ImplOnGetCandidateAdapterNamesDone() override { | 341 void ImplOnGetCandidateAdapterNamesDone() override { |
| 342 worker_finished_event_.Signal(); | 342 worker_finished_event_.Signal(); |
| 343 } | 343 } |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 } | 647 } |
| 648 | 648 |
| 649 // Re-do the first test to make sure the last test that was run did | 649 // Re-do the first test to make sure the last test that was run did |
| 650 // not leave things in a bad state. | 650 // not leave things in a bad state. |
| 651 (*test_functions.begin())(&client); | 651 (*test_functions.begin())(&client); |
| 652 } | 652 } |
| 653 | 653 |
| 654 } // namespace | 654 } // namespace |
| 655 | 655 |
| 656 } // namespace net | 656 } // namespace net |
| OLD | NEW |