OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |