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

Unified Diff: chrome/renderer/extensions/cast_streaming_native_handler.h

Issue 569233002: Refactoring the order of the weak_ptr_factory in chrome/renderer folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | chrome/renderer/media/cast_rtp_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/cast_streaming_native_handler.h
diff --git a/chrome/renderer/extensions/cast_streaming_native_handler.h b/chrome/renderer/extensions/cast_streaming_native_handler.h
index ee0626d62a6a4566e40f0d2d95b64068c0a31f2d..92e76a107339e7c486d4aabda31d5fa94413af49 100644
--- a/chrome/renderer/extensions/cast_streaming_native_handler.h
+++ b/chrome/renderer/extensions/cast_streaming_native_handler.h
@@ -85,8 +85,6 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
typedef std::map<int, linked_ptr<CastUdpTransport> > UdpTransportMap;
UdpTransportMap udp_transport_map_;
- base::WeakPtrFactory<CastStreamingNativeHandler> weak_factory_;
-
extensions::ScopedPersistent<v8::Function> create_callback_;
typedef std::map<int,
@@ -95,6 +93,8 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
RtpStreamCallbackMap get_raw_events_callbacks_;
RtpStreamCallbackMap get_stats_callbacks_;
+ base::WeakPtrFactory<CastStreamingNativeHandler> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(CastStreamingNativeHandler);
};
« no previous file with comments | « no previous file | chrome/renderer/media/cast_rtp_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698