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

Unified Diff: net/http/disk_cache_based_quic_server_info.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/sdch_dictionary_fetcher.cc ('k') | net/http/disk_cache_based_quic_server_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/disk_cache_based_quic_server_info.h
diff --git a/net/http/disk_cache_based_quic_server_info.h b/net/http/disk_cache_based_quic_server_info.h
index 2a18ef5abc8df7375f95835959cf8cc5b3a93339..66052ad620ed251332a14f65b4bfde54b75643ef 100644
--- a/net/http/disk_cache_based_quic_server_info.h
+++ b/net/http/disk_cache_based_quic_server_info.h
@@ -84,9 +84,7 @@ class NET_EXPORT_PRIVATE DiskCacheBasedQuicServerInfo
// DoSetDone is the terminal state of the write operation.
int DoSetDone();
- base::WeakPtrFactory<DiskCacheBasedQuicServerInfo> weak_factory_;
CacheOperationDataShim* data_shim_; // Owned by |io_callback_|.
- CompletionCallback io_callback_;
State state_;
bool ready_;
bool found_entry_; // Controls the behavior of DoCreateOrOpen.
@@ -99,6 +97,9 @@ class NET_EXPORT_PRIVATE DiskCacheBasedQuicServerInfo
scoped_refptr<IOBuffer> read_buffer_;
scoped_refptr<IOBuffer> write_buffer_;
std::string data_;
+
+ base::WeakPtrFactory<DiskCacheBasedQuicServerInfo> weak_factory_;
+ CompletionCallback io_callback_;
Randy Smith (Not in Mondays) 2014/08/26 16:43:03 I dislike making this exception to the general rul
dmichael (off chromium) 2014/08/26 22:02:26 +1, that's how I've been resolving these. Doing th
};
} // namespace net
« no previous file with comments | « net/base/sdch_dictionary_fetcher.cc ('k') | net/http/disk_cache_based_quic_server_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698