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

Unified Diff: net/proxy/proxy_script_fetcher_impl.h

Issue 506523002: net : Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_transaction_test_util.cc ('k') | net/proxy/proxy_script_fetcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_script_fetcher_impl.h
diff --git a/net/proxy/proxy_script_fetcher_impl.h b/net/proxy/proxy_script_fetcher_impl.h
index 2da866901f574fe58af9faeeebb30b42a04b4818..31e60b4d1b0e26cb762deb9c552d7a3dff8fc9cf 100644
--- a/net/proxy/proxy_script_fetcher_impl.h
+++ b/net/proxy/proxy_script_fetcher_impl.h
@@ -79,10 +79,6 @@ class NET_EXPORT ProxyScriptFetcherImpl : public ProxyScriptFetcher,
// Callback for time-out task of request with id |id|.
void OnTimeout(int id);
- // Factory for creating the time-out task. This takes care of revoking
- // outstanding tasks when |this| is deleted.
- base::WeakPtrFactory<ProxyScriptFetcherImpl> weak_factory_;
-
// The context used for making network requests.
URLRequestContext* const url_request_context_;
@@ -119,6 +115,10 @@ class NET_EXPORT ProxyScriptFetcherImpl : public ProxyScriptFetcher,
// The maximum amount of time to wait for download to complete.
base::TimeDelta max_duration_;
+ // Factory for creating the time-out task. This takes care of revoking
+ // outstanding tasks when |this| is deleted.
+ base::WeakPtrFactory<ProxyScriptFetcherImpl> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl);
};
« no previous file with comments | « net/http/http_transaction_test_util.cc ('k') | net/proxy/proxy_script_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698