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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/renderer/media/cast_rtp_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_EXTENSIONS_CAST_STREAMING_NATIVE_HANDLER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_CAST_STREAMING_NATIVE_HANDLER_H_
6 #define CHROME_RENDERER_EXTENSIONS_CAST_STREAMING_NATIVE_HANDLER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_CAST_STREAMING_NATIVE_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 CastUdpTransport* GetUdpTransportOrThrow(int transport_id) const; 78 CastUdpTransport* GetUdpTransportOrThrow(int transport_id) const;
79 79
80 int last_transport_id_; 80 int last_transport_id_;
81 81
82 typedef std::map<int, linked_ptr<CastRtpStream> > RtpStreamMap; 82 typedef std::map<int, linked_ptr<CastRtpStream> > RtpStreamMap;
83 RtpStreamMap rtp_stream_map_; 83 RtpStreamMap rtp_stream_map_;
84 84
85 typedef std::map<int, linked_ptr<CastUdpTransport> > UdpTransportMap; 85 typedef std::map<int, linked_ptr<CastUdpTransport> > UdpTransportMap;
86 UdpTransportMap udp_transport_map_; 86 UdpTransportMap udp_transport_map_;
87 87
88 base::WeakPtrFactory<CastStreamingNativeHandler> weak_factory_;
89
90 extensions::ScopedPersistent<v8::Function> create_callback_; 88 extensions::ScopedPersistent<v8::Function> create_callback_;
91 89
92 typedef std::map<int, 90 typedef std::map<int,
93 linked_ptr<extensions::ScopedPersistent<v8::Function> > > 91 linked_ptr<extensions::ScopedPersistent<v8::Function> > >
94 RtpStreamCallbackMap; 92 RtpStreamCallbackMap;
95 RtpStreamCallbackMap get_raw_events_callbacks_; 93 RtpStreamCallbackMap get_raw_events_callbacks_;
96 RtpStreamCallbackMap get_stats_callbacks_; 94 RtpStreamCallbackMap get_stats_callbacks_;
97 95
96 base::WeakPtrFactory<CastStreamingNativeHandler> weak_factory_;
97
98 DISALLOW_COPY_AND_ASSIGN(CastStreamingNativeHandler); 98 DISALLOW_COPY_AND_ASSIGN(CastStreamingNativeHandler);
99 }; 99 };
100 100
101 } // namespace extensions 101 } // namespace extensions
102 102
103 #endif // CHROME_RENDERER_EXTENSIONS_CAST_STREAMING_NATIVE_HANDLER_H_ 103 #endif // CHROME_RENDERER_EXTENSIONS_CAST_STREAMING_NATIVE_HANDLER_H_
OLDNEW
« 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