| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CONTENT_RENDERER_MEDIA_RTC_DTMF_SENDER_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_DTMF_SENDER_HANDLER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_DTMF_SENDER_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_DTMF_SENDER_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // blink::WebRTCDTMFSenderHandler implementation. | 33 // blink::WebRTCDTMFSenderHandler implementation. |
| 34 virtual void setClient( | 34 virtual void setClient( |
| 35 blink::WebRTCDTMFSenderHandlerClient* client) override; | 35 blink::WebRTCDTMFSenderHandlerClient* client) override; |
| 36 virtual blink::WebString currentToneBuffer() override; | 36 virtual blink::WebString currentToneBuffer() override; |
| 37 virtual bool canInsertDTMF() override; | 37 virtual bool canInsertDTMF() override; |
| 38 virtual bool insertDTMF(const blink::WebString& tones, long duration, | 38 virtual bool insertDTMF(const blink::WebString& tones, long duration, |
| 39 long interToneGap) override; | 39 long interToneGap) override; |
| 40 | 40 |
| 41 // webrtc::DtmfSenderObserverInterface implementation. | 41 // webrtc::DtmfSenderObserverInterface implementation. |
| 42 virtual void OnToneChange(const std::string& tone) override; | 42 void OnToneChange(const std::string& tone) override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 scoped_refptr<webrtc::DtmfSenderInterface> dtmf_sender_; | 45 scoped_refptr<webrtc::DtmfSenderInterface> dtmf_sender_; |
| 46 blink::WebRTCDTMFSenderHandlerClient* webkit_client_; | 46 blink::WebRTCDTMFSenderHandlerClient* webkit_client_; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace content | 49 } // namespace content |
| 50 | 50 |
| 51 #endif // CONTENT_RENDERER_MEDIA_RTC_DTMF_SENDER_HANDLER_H_ | 51 #endif // CONTENT_RENDERER_MEDIA_RTC_DTMF_SENDER_HANDLER_H_ |
| 52 | 52 |
| OLD | NEW |