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

Unified Diff: net/base/sdch_dictionary_fetcher.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/base/network_change_notifier_win.h ('k') | net/base/sdch_dictionary_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/sdch_dictionary_fetcher.h
diff --git a/net/base/sdch_dictionary_fetcher.h b/net/base/sdch_dictionary_fetcher.h
index 82c0b10c6e48a19733021be751986ac5990a60b3..68a044ab98addecbcb72133fd7bec05f47e5de16 100644
--- a/net/base/sdch_dictionary_fetcher.h
+++ b/net/base/sdch_dictionary_fetcher.h
@@ -66,10 +66,6 @@ class NET_EXPORT SdchDictionaryFetcher
// If this is null, then there is no outstanding request.
scoped_ptr<URLFetcher> current_fetch_;
- // Always spread out the dictionary fetches, so that they don't steal
- // bandwidth from the actual page load. Create delayed tasks to spread out
- // the download.
- base::WeakPtrFactory<SdchDictionaryFetcher> weak_factory_;
bool task_is_pending_;
// Althought the SDCH spec does not preclude a server from using a single URL
@@ -91,6 +87,11 @@ class NET_EXPORT SdchDictionaryFetcher
// fetching.
scoped_refptr<URLRequestContextGetter> context_;
+ // Always spread out the dictionary fetches, so that they don't steal
+ // bandwidth from the actual page load. Create delayed tasks to spread out
+ // the download.
+ base::WeakPtrFactory<SdchDictionaryFetcher> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(SdchDictionaryFetcher);
};
« no previous file with comments | « net/base/network_change_notifier_win.h ('k') | net/base/sdch_dictionary_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698