| 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 #include "net/proxy/dhcp_proxy_script_fetcher_win.h" | 5 #include "net/proxy/dhcp_proxy_script_fetcher_win.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/perftimer.h" | 8 #include "base/perftimer.h" |
| 9 #include "base/threading/worker_pool.h" | 9 #include "base/threading/worker_pool.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 if (owner_) | 364 if (owner_) |
| 365 owner_->OnGetCandidateAdapterNamesDone(adapter_names_); | 365 owner_->OnGetCandidateAdapterNamesDone(adapter_names_); |
| 366 } | 366 } |
| 367 | 367 |
| 368 DhcpProxyScriptFetcherWin::WorkerThread::WorkerThread() { | 368 DhcpProxyScriptFetcherWin::WorkerThread::WorkerThread() { |
| 369 } | 369 } |
| 370 | 370 |
| 371 void DhcpProxyScriptFetcherWin::WorkerThread::Init( | 371 void DhcpProxyScriptFetcherWin::WorkerThread::Init( |
| 372 const base::WeakPtr<DhcpProxyScriptFetcherWin>& owner) { | 372 const base::WeakPtr<DhcpProxyScriptFetcherWin>& owner) { |
| 373 owner_ = owner; | 373 owner_ = owner; |
| 374 origin_loop_ = base::MessageLoopProxy::CreateForCurrentThread(); | 374 origin_loop_ = base::MessageLoopProxy::current(); |
| 375 } | 375 } |
| 376 | 376 |
| 377 bool DhcpProxyScriptFetcherWin::WorkerThread::ImplGetCandidateAdapterNames( | 377 bool DhcpProxyScriptFetcherWin::WorkerThread::ImplGetCandidateAdapterNames( |
| 378 std::set<std::string>* adapter_names) { | 378 std::set<std::string>* adapter_names) { |
| 379 return DhcpProxyScriptFetcherWin::GetCandidateAdapterNames(adapter_names); | 379 return DhcpProxyScriptFetcherWin::GetCandidateAdapterNames(adapter_names); |
| 380 } | 380 } |
| 381 | 381 |
| 382 } // namespace net | 382 } // namespace net |
| OLD | NEW |