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

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

Issue 1120203004: win: Ref-counted classes should have non-public destructors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/profiler/scoped_tracker.h" 9 #include "base/profiler/scoped_tracker.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 DCHECK(adapter->AdapterName); 343 DCHECK(adapter->AdapterName);
344 adapter_names->insert(adapter->AdapterName); 344 adapter_names->insert(adapter->AdapterName);
345 } 345 }
346 346
347 return true; 347 return true;
348 } 348 }
349 349
350 DhcpProxyScriptFetcherWin::AdapterQuery::AdapterQuery() { 350 DhcpProxyScriptFetcherWin::AdapterQuery::AdapterQuery() {
351 } 351 }
352 352
353 DhcpProxyScriptFetcherWin::AdapterQuery::~AdapterQuery() {
354 }
355
356 void DhcpProxyScriptFetcherWin::AdapterQuery::GetCandidateAdapterNames() { 353 void DhcpProxyScriptFetcherWin::AdapterQuery::GetCandidateAdapterNames() {
357 // TODO(pkasting): Remove ScopedTracker below once crbug.com/476182 is fixed. 354 // TODO(pkasting): Remove ScopedTracker below once crbug.com/476182 is fixed.
358 tracked_objects::ScopedTracker tracking_profile( 355 tracked_objects::ScopedTracker tracking_profile(
359 FROM_HERE_WITH_EXPLICIT_FUNCTION( 356 FROM_HERE_WITH_EXPLICIT_FUNCTION(
360 "476182 DhcpProxyScriptFetcherWin::AdapterQuery::" 357 "476182 DhcpProxyScriptFetcherWin::AdapterQuery::"
361 "GetCandidateAdapterNames")); 358 "GetCandidateAdapterNames"));
362 359
363 ImplGetCandidateAdapterNames(&adapter_names_); 360 ImplGetCandidateAdapterNames(&adapter_names_);
364 } 361 }
365 362
366 const std::set<std::string>& 363 const std::set<std::string>&
367 DhcpProxyScriptFetcherWin::AdapterQuery::adapter_names() const { 364 DhcpProxyScriptFetcherWin::AdapterQuery::adapter_names() const {
368 return adapter_names_; 365 return adapter_names_;
369 } 366 }
370 367
371 bool DhcpProxyScriptFetcherWin::AdapterQuery::ImplGetCandidateAdapterNames( 368 bool DhcpProxyScriptFetcherWin::AdapterQuery::ImplGetCandidateAdapterNames(
372 std::set<std::string>* adapter_names) { 369 std::set<std::string>* adapter_names) {
373 return DhcpProxyScriptFetcherWin::GetCandidateAdapterNames(adapter_names); 370 return DhcpProxyScriptFetcherWin::GetCandidateAdapterNames(adapter_names);
374 } 371 }
375 372
373 DhcpProxyScriptFetcherWin::AdapterQuery::~AdapterQuery() {
374 }
375
376 } // namespace net 376 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698