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

Unified Diff: blimp/net/blob_channel/blob_channel_sender_impl.h

Issue 2256363003: Clean up thread handling in Blimp browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wez feedback Created 4 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 | « blimp/engine/session/blimp_engine_session.cc ('k') | blimp/net/blob_channel/blob_channel_sender_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blob_channel/blob_channel_sender_impl.h
diff --git a/blimp/net/blob_channel/blob_channel_sender_impl.h b/blimp/net/blob_channel/blob_channel_sender_impl.h
index 4c0db42c9dc144363641faca45fafb277932c2a5..1747adda5a73954d9a4f2995c6e67eeaa3534d71 100644
--- a/blimp/net/blob_channel/blob_channel_sender_impl.h
+++ b/blimp/net/blob_channel/blob_channel_sender_impl.h
@@ -11,6 +11,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
#include "blimp/common/blob_cache/blob_cache.h"
#include "blimp/net/blimp_net_export.h"
@@ -52,6 +53,8 @@ class BLIMP_NET_EXPORT BlobChannelSenderImpl : public BlobChannelSender {
// delivered, or has been evicted at the receiver.
std::set<BlobId> receiver_cache_contents_;
+ base::WeakPtrFactory<BlobChannelSenderImpl> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(BlobChannelSenderImpl);
};
« no previous file with comments | « blimp/engine/session/blimp_engine_session.cc ('k') | blimp/net/blob_channel/blob_channel_sender_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698