| 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 30 matching lines...) Expand all Loading... |
| 41 const v8::FunctionCallbackInfo<v8::Value>& args); | 41 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 42 void StartCastRtpStream( | 42 void StartCastRtpStream( |
| 43 const v8::FunctionCallbackInfo<v8::Value>& args); | 43 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 44 void StopCastRtpStream( | 44 void StopCastRtpStream( |
| 45 const v8::FunctionCallbackInfo<v8::Value>& args); | 45 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 46 | 46 |
| 47 void DestroyCastUdpTransport( | 47 void DestroyCastUdpTransport( |
| 48 const v8::FunctionCallbackInfo<v8::Value>& args); | 48 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 49 void SetDestinationCastUdpTransport( | 49 void SetDestinationCastUdpTransport( |
| 50 const v8::FunctionCallbackInfo<v8::Value>& args); | 50 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 51 void SetOptionsCastUdpTransport( |
| 52 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 51 void StopCastUdpTransport( | 53 void StopCastUdpTransport( |
| 52 const v8::FunctionCallbackInfo<v8::Value>& args); | 54 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 53 | 55 |
| 54 void ToggleLogging(const v8::FunctionCallbackInfo<v8::Value>& args); | 56 void ToggleLogging(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 55 void GetRawEvents(const v8::FunctionCallbackInfo<v8::Value>& args); | 57 void GetRawEvents(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 56 void GetStats(const v8::FunctionCallbackInfo<v8::Value>& args); | 58 void GetStats(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 57 | 59 |
| 58 // Helper method to call the v8 callback function after a session is | 60 // Helper method to call the v8 callback function after a session is |
| 59 // created. | 61 // created. |
| 60 void CallCreateCallback(scoped_ptr<CastRtpStream> stream1, | 62 void CallCreateCallback(scoped_ptr<CastRtpStream> stream1, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 RtpStreamCallbackMap; | 94 RtpStreamCallbackMap; |
| 93 RtpStreamCallbackMap get_raw_events_callbacks_; | 95 RtpStreamCallbackMap get_raw_events_callbacks_; |
| 94 RtpStreamCallbackMap get_stats_callbacks_; | 96 RtpStreamCallbackMap get_stats_callbacks_; |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(CastStreamingNativeHandler); | 98 DISALLOW_COPY_AND_ASSIGN(CastStreamingNativeHandler); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace extensions | 101 } // namespace extensions |
| 100 | 102 |
| 101 #endif // CHROME_RENDERER_EXTENSIONS_CAST_STREAMING_NATIVE_HANDLER_H_ | 103 #endif // CHROME_RENDERER_EXTENSIONS_CAST_STREAMING_NATIVE_HANDLER_H_ |
| OLD | NEW |