Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: net/proxy/dhcp_proxy_script_fetcher_win.cc

Issue 7583053: Add MessageLoopProxy::current (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No need for MessageLoopProxy destruction observer. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc ('k') | net/proxy/multi_threaded_proxy_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698