Changeset 112421 in webkit
- Timestamp:
- Mar 28, 2012 11:44:06 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 added
- 7 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112419 r112421 1 2012-03-28 Tommy Widenflycht <tommyw@google.com> 2 3 [chromium] MediaStream API (JSEP): Introducing WebPeerConnection00Handler 4 https://bugs.webkit.org/show_bug.cgi?id=82450 5 6 Reviewed by Adam Barth. 7 8 This change removes the default PeerConnection00Handler.cpp from the Chromium build. 9 10 A major overhaul of the existing layout tests is forthcoming. 11 12 * WebCore.gypi: 13 * platform/mediastream/PeerConnection00Handler.h: 14 (WebCore): 15 (PeerConnection00Handler): 16 1 17 2012-03-28 Robert Hogan <robert@webkit.org> 2 18 -
trunk/Source/WebCore/WebCore.gypi
r112389 r112421 431 431 'platform/mediastream/MediaStreamDescriptor.h', 432 432 'platform/mediastream/MediaStreamSource.h', 433 'platform/mediastream/PeerConnection00Handler.cpp',434 433 'platform/mediastream/PeerConnection00Handler.h', 435 434 'platform/mediastream/PeerConnection00HandlerClient.h', -
trunk/Source/WebCore/platform/mediastream/PeerConnection00Handler.h
r111208 r112421 47 47 class SessionDescriptionDescriptor; 48 48 49 #if PLATFORM(CHROMIUM) 50 class PeerConnection00HandlerInternal; 51 #endif 52 49 53 class PeerConnection00Handler { 50 54 WTF_MAKE_NONCOPYABLE(PeerConnection00Handler); … … 69 73 PeerConnection00Handler(PeerConnection00HandlerClient*, const String& serverConfiguration, const String& username); 70 74 75 #if PLATFORM(CHROMIUM) 76 OwnPtr<PeerConnection00HandlerInternal> m_private; 77 #else 71 78 PeerConnection00HandlerClient* m_client; 79 #endif 72 80 }; 73 81 -
trunk/Source/WebKit/chromium/ChangeLog
r112417 r112421 1 2012-03-28 Tommy Widenflycht <tommyw@google.com> 2 3 [chromium] MediaStream API (JSEP): Introducing WebPeerConnection00Handler 4 https://bugs.webkit.org/show_bug.cgi?id=82450 5 6 Reviewed by Adam Barth. 7 8 Last patch to enable the PeerConnection00 functionality in Chromium introduces 9 WebPeerConnection00Handler and WebPeerConnection00HandlerClient, together with the necessary plumbing. 10 11 * WebKit.gyp: 12 * bridge/PeerConnection00Handler.cpp: Added. 13 (WebCore): 14 (WebCore::PeerConnection00Handler::create): 15 (WebCore::PeerConnection00Handler::PeerConnection00Handler): 16 (WebCore::PeerConnection00Handler::~PeerConnection00Handler): 17 (WebCore::PeerConnection00Handler::createOffer): 18 (WebCore::PeerConnection00Handler::createAnswer): 19 (WebCore::PeerConnection00Handler::setLocalDescription): 20 (WebCore::PeerConnection00Handler::setRemoteDescription): 21 (WebCore::PeerConnection00Handler::localDescription): 22 (WebCore::PeerConnection00Handler::remoteDescription): 23 (WebCore::PeerConnection00Handler::startIce): 24 (WebCore::PeerConnection00Handler::processIceMessage): 25 (WebCore::PeerConnection00Handler::addStream): 26 (WebCore::PeerConnection00Handler::removeStream): 27 (WebCore::PeerConnection00Handler::stop): 28 * bridge/PeerConnection00HandlerInternal.cpp: Added. 29 (WebCore): 30 (WebCore::PeerConnection00HandlerInternal::PeerConnection00HandlerInternal): 31 (WebCore::PeerConnection00HandlerInternal::~PeerConnection00HandlerInternal): 32 (WebCore::PeerConnection00HandlerInternal::createOffer): 33 (WebCore::PeerConnection00HandlerInternal::createAnswer): 34 (WebCore::PeerConnection00HandlerInternal::setLocalDescription): 35 (WebCore::PeerConnection00HandlerInternal::setRemoteDescription): 36 (WebCore::PeerConnection00HandlerInternal::localDescription): 37 (WebCore::PeerConnection00HandlerInternal::remoteDescription): 38 (WebCore::PeerConnection00HandlerInternal::startIce): 39 (WebCore::PeerConnection00HandlerInternal::processIceMessage): 40 (WebCore::PeerConnection00HandlerInternal::addStream): 41 (WebCore::PeerConnection00HandlerInternal::removeStream): 42 (WebCore::PeerConnection00HandlerInternal::stop): 43 (WebCore::PeerConnection00HandlerInternal::didGenerateICECandidate): 44 (WebCore::PeerConnection00HandlerInternal::didChangeReadyState): 45 (WebCore::PeerConnection00HandlerInternal::didChangeICEState): 46 (WebCore::PeerConnection00HandlerInternal::didAddRemoteStream): 47 (WebCore::PeerConnection00HandlerInternal::didRemoveRemoteStream): 48 * bridge/PeerConnection00HandlerInternal.h: Copied from Source/WebCore/platform/mediastream/PeerConnection00Handler.h. 49 (WebKit): 50 (WebCore): 51 (PeerConnection00HandlerInternal): 52 * public/platform/WebKitPlatformSupport.h: 53 (WebKit): 54 (WebKit::WebKitPlatformSupport::createPeerConnection00Handler): 55 * public/platform/WebPeerConnection00Handler.h: Added. 56 (WebKit): 57 (WebPeerConnection00Handler): 58 (WebKit::WebPeerConnection00Handler::~WebPeerConnection00Handler): 59 * public/platform/WebPeerConnection00HandlerClient.h: Added. 60 (WebKit): 61 (WebPeerConnection00HandlerClient): 62 (WebKit::WebPeerConnection00HandlerClient::~WebPeerConnection00HandlerClient): 63 * src/AssertMatchingEnums.cpp: 64 1 65 2012-03-28 James Robinson <jamesr@chromium.org> 2 66 -
trunk/Source/WebKit/chromium/WebKit.gyp
r112205 r112421 98 98 'bridge/MediaStreamCenterInternal.cpp', 99 99 'bridge/MediaStreamCenterInternal.h', 100 'bridge/PeerConnection00Handler.cpp', 101 'bridge/PeerConnection00HandlerInternal.cpp', 102 'bridge/PeerConnection00HandlerInternal.h', 100 103 'public/WebAccessibilityNotification.h', 101 104 'public/WebAccessibilityObject.h', … … 329 332 'public/platform/WebMediaStreamSourcesRequest.h', 330 333 'public/platform/WebNonCopyable.h', 334 'public/platform/WebPeerConnection00Handler.h', 335 'public/platform/WebPeerConnection00HandlerClient.h', 331 336 'public/platform/WebPeerConnectionHandler.h', 332 337 'public/platform/WebPeerConnectionHandlerClient.h', -
trunk/Source/WebKit/chromium/bridge/PeerConnection00HandlerInternal.h
r112419 r112421 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * aremet:5 * modification, are permitted provided that the following conditions are 6 * met: 7 7 * 8 * 1.Redistributions of source code must retain the above copyright9 * 10 * 2. Redistributions in binary form must reproduce the above copyright11 * 12 * 13 * 14 * 3. Neither the name of Google Inc. nor the names of its contributors15 * may be used to endorse or promote products derived from this16 * 8 * * Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * * Redistributions in binary form must reproduce the above 11 * copyright notice, this list of conditions and the following disclaimer 12 * in the documentation and/or other materials provided with the 13 * distribution. 14 * * Neither the name of Google Inc. nor the names of its 15 * contributors may be used to endorse or promote products derived from 16 * this software without specific prior written permission. 17 17 * 18 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 29 29 */ 30 30 31 #ifndef PeerConnection00Handler _h32 #define PeerConnection00Handler _h31 #ifndef PeerConnection00HandlerInternal_h 32 #define PeerConnection00HandlerInternal_h 33 33 34 34 #if ENABLE(MEDIA_STREAM) 35 35 36 36 #include "MediaStreamDescriptor.h" 37 #include "platform/WebPeerConnection00HandlerClient.h" 37 38 #include <wtf/OwnPtr.h> 38 #include <wtf/PassOwnPtr.h>39 39 #include <wtf/PassRefPtr.h> 40 #include <wtf/text/WTFString.h> 41 42 namespace WebKit { 43 class WebICECandidateDescriptor; 44 class WebPeerConnection00Handler; 45 class WebMediaStreamDescriptor; 46 class WebString; 47 } 40 48 41 49 namespace WebCore { … … 47 55 class SessionDescriptionDescriptor; 48 56 49 class PeerConnection00Handler { 50 WTF_MAKE_NONCOPYABLE(PeerConnection00Handler); 51 WTF_MAKE_FAST_ALLOCATED; 57 class PeerConnection00HandlerInternal : public WebKit::WebPeerConnection00HandlerClient { 52 58 public: 53 static PassOwnPtr<PeerConnection00Handler> create(PeerConnection00HandlerClient*, const String& serverConfiguration, const String& username);54 ~PeerConnection00Handler ();59 PeerConnection00HandlerInternal(PeerConnection00HandlerClient*, const String& serverConfiguration, const String& username); 60 ~PeerConnection00HandlerInternal(); 55 61 56 62 PassRefPtr<SessionDescriptionDescriptor> createOffer(PassRefPtr<MediaHints>); … … 66 72 void stop(); 67 73 74 // WebKit::WebJSEPPeerConnectionHandlerClient implementation. 75 virtual void didGenerateICECandidate(const WebKit::WebICECandidateDescriptor&, bool moreToFollow); 76 virtual void didChangeReadyState(ReadyState); 77 virtual void didChangeICEState(ICEState); 78 virtual void didAddRemoteStream(const WebKit::WebMediaStreamDescriptor&); 79 virtual void didRemoveRemoteStream(const WebKit::WebMediaStreamDescriptor&); 80 68 81 private: 69 PeerConnection00Handler(PeerConnection00HandlerClient*, const String& serverConfiguration, const String& username); 70 82 OwnPtr<WebKit::WebPeerConnection00Handler> m_webHandler; 71 83 PeerConnection00HandlerClient* m_client; 72 84 }; … … 76 88 #endif // ENABLE(MEDIA_STREAM) 77 89 78 #endif // PeerConnection00Handler _h90 #endif // PeerConnection00HandlerInternal_h -
trunk/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h
r110773 r112421 61 61 class WebIDBFactory; // FIXME: Does this belong in platform? 62 62 class WebIDBKey; // FIXME: Does this belong in platform? 63 class WebPeerConnection00Handler; 64 class WebPeerConnection00HandlerClient; 63 65 class WebMediaStreamCenter; 64 66 class WebMediaStreamCenterClient; … … 409 411 // May return null if WebRTC functionality is not avaliable or out of resources. 410 412 virtual WebPeerConnectionHandler* createPeerConnectionHandler(WebPeerConnectionHandlerClient*) { return 0; } 413 virtual WebPeerConnection00Handler* createPeerConnection00Handler(WebPeerConnection00HandlerClient*) { return 0; } 411 414 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterClient*) { return 0; } 412 415 -
trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp
r111582 r112421 59 59 #include "PageVisibilityState.h" 60 60 #include "PasteboardPrivate.h" 61 #include "PeerConnection00.h" 61 62 #include "PlatformCursor.h" 62 63 #include "SecurityPolicy.h" … … 104 105 #include "platform/WebICEOptions.h" 105 106 #include "platform/WebMediaStreamSource.h" 107 #include "platform/WebPeerConnection00Handler.h" 108 #include "platform/WebPeerConnection00HandlerClient.h" 106 109 #include <wtf/Assertions.h> 107 110 #include <wtf/text/StringImpl.h> … … 510 513 COMPILE_ASSERT_MATCHING_ENUM(WebICEOptions::CandidateTypeNoRelay, IceOptions::NO_RELAY); 511 514 COMPILE_ASSERT_MATCHING_ENUM(WebICEOptions::CandidateTypeOnlyRelay, IceOptions::ONLY_RELAY); 515 516 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00Handler::ActionSDPOffer, PeerConnection00::SDP_OFFER); 517 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00Handler::ActionSDPPRanswer, PeerConnection00::SDP_PRANSWER); 518 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00Handler::ActionSDPAnswer, PeerConnection00::SDP_ANSWER); 519 520 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ReadyStateNew, PeerConnection00::NEW); 521 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ReadyStateNegotiating, PeerConnection00::NEGOTIATING); 522 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ReadyStateActive, PeerConnection00::ACTIVE); 523 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ReadyStateClosed, PeerConnection00::CLOSED); 524 525 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ICEStateGathering, PeerConnection00::ICE_GATHERING); 526 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ICEStateWaiting, PeerConnection00::ICE_WAITING); 527 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ICEStateChecking, PeerConnection00::ICE_CHECKING); 528 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ICEStateConnected, PeerConnection00::ICE_CONNECTED); 529 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ICEStateCompleted, PeerConnection00::ICE_COMPLETED); 530 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ICEStateFailed, PeerConnection00::ICE_FAILED); 531 COMPILE_ASSERT_MATCHING_ENUM(WebPeerConnection00HandlerClient::ICEStateClosed, PeerConnection00::ICE_CLOSED); 512 532 #endif 513 533
Note: See TracChangeset
for help on using the changeset viewer.