OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_PEER_CONNECTION_HANDLER_JSEP_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_JSEP_H_ |
6 #define CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_JSEP_H_ | 6 #define CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_JSEP_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/renderer/media/peer_connection_handler_base.h" | 14 #include "content/renderer/media/peer_connection_handler_base.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne
ction00Handler.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne
ction00Handler.h" |
16 | 16 |
17 // PeerConnectionHandlerJsep is a delegate for the JSEP PeerConnection API | 17 // PeerConnectionHandlerJsep is a delegate for the JSEP PeerConnection API |
18 // messages going between WebKit and native PeerConnection in libjingle. It's | 18 // messages going between WebKit and native PeerConnection in libjingle. It's |
19 // owned by WebKit. | 19 // owned by WebKit. |
20 class CONTENT_EXPORT PeerConnectionHandlerJsep | 20 class CONTENT_EXPORT PeerConnectionHandlerJsep |
21 : public PeerConnectionHandlerBase, | 21 : public PeerConnectionHandlerBase, |
22 NON_EXPORTED_BASE(public WebKit::WebPeerConnection00Handler) { | 22 NON_EXPORTED_BASE(public WebKit::WebPeerConnection00Handler) { |
23 public: | 23 public: |
24 PeerConnectionHandlerJsep( | 24 PeerConnectionHandlerJsep( |
25 WebKit::WebPeerConnection00HandlerClient* client, | 25 WebKit::WebPeerConnection00HandlerClient* client, |
26 MediaStreamImpl* msi, | |
27 MediaStreamDependencyFactory* dependency_factory); | 26 MediaStreamDependencyFactory* dependency_factory); |
28 virtual ~PeerConnectionHandlerJsep(); | 27 virtual ~PeerConnectionHandlerJsep(); |
29 | 28 |
30 // WebKit::WebPeerConnection00Handler implementation | 29 // WebKit::WebPeerConnection00Handler implementation |
31 virtual void initialize( | 30 virtual void initialize( |
32 const WebKit::WebString& server_configuration, | 31 const WebKit::WebString& server_configuration, |
33 const WebKit::WebString& username) OVERRIDE; | 32 const WebKit::WebString& username) OVERRIDE; |
34 virtual WebKit::WebSessionDescriptionDescriptor createOffer( | 33 virtual WebKit::WebSessionDescriptionDescriptor createOffer( |
35 const WebKit::WebMediaHints& hints) OVERRIDE; | 34 const WebKit::WebMediaHints& hints) OVERRIDE; |
36 virtual WebKit::WebSessionDescriptionDescriptor createAnswer( | 35 virtual WebKit::WebSessionDescriptionDescriptor createAnswer( |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 const Action action, | 73 const Action action, |
75 webrtc::PeerConnectionInterface::Action* native_action); | 74 webrtc::PeerConnectionInterface::Action* native_action); |
76 | 75 |
77 // client_ is a weak pointer, and is valid until stop() has returned. | 76 // client_ is a weak pointer, and is valid until stop() has returned. |
78 WebKit::WebPeerConnection00HandlerClient* client_; | 77 WebKit::WebPeerConnection00HandlerClient* client_; |
79 | 78 |
80 DISALLOW_COPY_AND_ASSIGN(PeerConnectionHandlerJsep); | 79 DISALLOW_COPY_AND_ASSIGN(PeerConnectionHandlerJsep); |
81 }; | 80 }; |
82 | 81 |
83 #endif // CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_JSEP_H_ | 82 #endif // CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_JSEP_H_ |
OLD | NEW |