| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_WEB_PEER_CONNECTION_HANDLER_CLIENT_H_ | |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_WEB_PEER_CONNECTION_HANDLER_CLIENT_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne
ctionHandlerClient.h" | |
| 12 | |
| 13 namespace WebKit { | |
| 14 | |
| 15 class MockWebPeerConnectionHandlerClient | |
| 16 : public WebPeerConnectionHandlerClient { | |
| 17 public: | |
| 18 MockWebPeerConnectionHandlerClient(); | |
| 19 virtual ~MockWebPeerConnectionHandlerClient(); | |
| 20 | |
| 21 // WebPeerConnectionHandlerClient implementation. | |
| 22 virtual void didCompleteICEProcessing(); | |
| 23 virtual void didGenerateSDP(const WebString&); | |
| 24 virtual void didReceiveDataStreamMessage(const char* data, size_t length); | |
| 25 virtual void didAddRemoteStream( | |
| 26 const WebMediaStreamDescriptor& stream_descriptor); | |
| 27 virtual void didRemoveRemoteStream( | |
| 28 const WebMediaStreamDescriptor& stream_descriptor); | |
| 29 | |
| 30 const std::string& stream_label() { return stream_label_; } | |
| 31 | |
| 32 private: | |
| 33 std::string stream_label_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(MockWebPeerConnectionHandlerClient); | |
| 36 }; | |
| 37 | |
| 38 } // namespace WebKit | |
| 39 | |
| 40 #endif // CONTENT_RENDERER_MEDIA_MOCK_WEB_PEER_CONNECTION_HANDLER_CLIENT_H_ | |
| OLD | NEW |