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_MEDIA_CAST_SESSION_DELEGATE_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/weak_ptr.h" |
14 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
15 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
16 #include "base/time/default_tick_clock.h" | 17 #include "base/time/default_tick_clock.h" |
17 #include "media/cast/cast_config.h" | 18 #include "media/cast/cast_config.h" |
18 #include "media/cast/cast_sender.h" | 19 #include "media/cast/cast_sender.h" |
19 | 20 |
20 namespace base { | 21 namespace base { |
21 class MessageLoopProxy; | 22 class MessageLoopProxy; |
22 } // namespace base | 23 } // namespace base |
23 | 24 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 95 |
95 net::IPEndPoint local_endpoint_; | 96 net::IPEndPoint local_endpoint_; |
96 net::IPEndPoint remote_endpoint_; | 97 net::IPEndPoint remote_endpoint_; |
97 bool transport_configured_; | 98 bool transport_configured_; |
98 | 99 |
99 scoped_ptr<media::cast::EncodingEventSubscriber> audio_event_subscriber_; | 100 scoped_ptr<media::cast::EncodingEventSubscriber> audio_event_subscriber_; |
100 scoped_ptr<media::cast::EncodingEventSubscriber> video_event_subscriber_; | 101 scoped_ptr<media::cast::EncodingEventSubscriber> video_event_subscriber_; |
101 | 102 |
102 // Proxy to the IO message loop. | 103 // Proxy to the IO message loop. |
103 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 104 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
| 105 base::WeakPtrFactory<CastSessionDelegate> weak_factory_; |
104 | 106 |
105 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); | 107 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); |
106 }; | 108 }; |
107 | 109 |
108 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 110 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
OLD | NEW |