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

Unified Diff: net/proxy/dhcp_proxy_script_fetcher_win.h

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, 8 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 side-by-side diff with in-line comments
Download patch
Index: net/proxy/dhcp_proxy_script_fetcher_win.h
diff --git a/net/proxy/dhcp_proxy_script_fetcher_win.h b/net/proxy/dhcp_proxy_script_fetcher_win.h
index d490805c2b7aeac0b01abcd9875dcebc9b18b74a..fbe4a61638e41a68360f6cdd99fe1cf240046590 100644
--- a/net/proxy/dhcp_proxy_script_fetcher_win.h
+++ b/net/proxy/dhcp_proxy_script_fetcher_win.h
@@ -63,7 +63,6 @@ class NET_EXPORT_PRIVATE DhcpProxyScriptFetcherWin
: public base::RefCountedThreadSafe<AdapterQuery> {
public:
AdapterQuery();
- virtual ~AdapterQuery();
// This is the method that runs on the worker pool thread.
void GetCandidateAdapterNames();
@@ -77,6 +76,9 @@ class NET_EXPORT_PRIVATE DhcpProxyScriptFetcherWin
virtual bool ImplGetCandidateAdapterNames(
std::set<std::string>* adapter_names);
+ friend class base::RefCountedThreadSafe<AdapterQuery>;
+ virtual ~AdapterQuery();
+
private:
// This is constructed on the originating thread, then used on the
// worker thread, then used again on the originating thread only when

Powered by Google App Engine
This is Rietveld 408576698