1. 09 Oct, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Source/Platform: Change PeerConnection getStats function to single value local / remote · bc8798ac
      commit-queue@webkit.org authored
      elements in RTCStatsReport.
      https://bugs.webkit.org/show_bug.cgi?id=98753
      
      Patch by Harald Alvestrand <hta@google.com> on 2012-10-09
      Reviewed by Adam Barth.
      
      * chromium/public/WebRTCStatsResponse.h:
      (WebRTCStatsResponse):
      
      Source/WebCore: Change PeerConnection getStats function to single value local / remote
      elements in RTCStatsReport.
      
      https://bugs.webkit.org/show_bug.cgi?id=98753
      
      Patch by Harald Alvestrand <hta@google.com> on 2012-10-09
      Reviewed by Adam Barth.
      
      IDL of RTCStatsReport has been changed to make local/remote
      single valued RTCStatsElement attributes.
      The RTCStatsReport argument to index the list of RTCStatsElement
      in the local and remote functions has been removed.
      
      Tested by modifications to RTCPeerConnection-stats.html
      
      * Modules/mediastream/RTCStatsReport.cpp:
      (WebCore::RTCStatsReport::addElement):
      (WebCore::RTCStatsReport::addStatistic):
      * Modules/mediastream/RTCStatsReport.h:
      (WebCore::RTCStatsReport::local):
      (WebCore::RTCStatsReport::remote):
      (RTCStatsReport):
      * Modules/mediastream/RTCStatsReport.idl:
      * Modules/mediastream/RTCStatsResponse.cpp:
      (WebCore::RTCStatsResponse::addElement):
      (WebCore::RTCStatsResponse::addStatistic):
      * Modules/mediastream/RTCStatsResponse.h:
      (RTCStatsResponse):
      * platform/chromium/support/WebRTCStatsResponse.cpp:
      (WebKit::WebRTCStatsResponse::addElement):
      (WebKit::WebRTCStatsResponse::addStatistic):
      * platform/mediastream/RTCStatsResponseBase.h:
      (RTCStatsResponseBase):
      
      Tools: Change PeerConnection getStats function to single value local / remote
      elements in RTCStatsReport.
      https://bugs.webkit.org/show_bug.cgi?id=98753
      
      Patch by Harald Alvestrand <hta@google.com> on 2012-10-09
      Reviewed by Adam Barth.
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::getStats):
      
      LayoutTests: Change PeerConnection getStats function to single value local / remote
      elements in RTCStatsReport.
      https://bugs.webkit.org/show_bug.cgi?id=98753
      
      Patch by Harald Alvestrand <hta@google.com> on 2012-10-09
      Reviewed by Adam Barth.
      
      * fast/mediastream/RTCPeerConnection-stats-expected.txt:
      * fast/mediastream/RTCPeerConnection-stats.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc8798ac
  2. 07 Oct, 2012 1 commit
    • benjamin@webkit.org's avatar
      Rename first/second to key/value in HashMap iterators · ee554054
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=82784
      
      Patch by Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> on 2012-10-07
      Reviewed by Eric Seidel.
      
      Source/JavaScriptCore: 
      
      * API/JSCallbackObject.h:
      (JSC::JSCallbackObjectData::JSPrivatePropertyMap::getPrivateProperty):
      (JSC::JSCallbackObjectData::JSPrivatePropertyMap::setPrivateProperty):
      (JSC::JSCallbackObjectData::JSPrivatePropertyMap::visitChildren):
      * API/JSCallbackObjectFunctions.h:
      (JSC::::getOwnNonIndexPropertyNames):
      * API/JSClassRef.cpp:
      (OpaqueJSClass::~OpaqueJSClass):
      (OpaqueJSClassContextData::OpaqueJSClassContextData):
      (OpaqueJSClass::contextData):
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::dump):
      (JSC::EvalCodeCache::visitAggregate):
      (JSC::CodeBlock::nameForRegister):
      * bytecode/JumpTable.h:
      (JSC::StringJumpTable::offsetForValue):
      (JSC::StringJumpTable::ctiForValue):
      * bytecode/LazyOperandValueProfile.cpp:
      (JSC::LazyOperandValueProfileParser::getIfPresent):
      * bytecode/SamplingTool.cpp:
      (JSC::SamplingTool::dump):
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::addVar):
      (JSC::BytecodeGenerator::addGlobalVar):
      (JSC::BytecodeGenerator::addConstant):
      (JSC::BytecodeGenerator::addConstantValue):
      (JSC::BytecodeGenerator::emitLoad):
      (JSC::BytecodeGenerator::addStringConstant):
      (JSC::BytecodeGenerator::emitLazyNewFunction):
      * bytecompiler/NodesCodegen.cpp:
      (JSC::PropertyListNode::emitBytecode):
      * debugger/Debugger.cpp:
      * dfg/DFGArgumentsSimplificationPhase.cpp:
      (JSC::DFG::ArgumentsSimplificationPhase::run):
      (JSC::DFG::ArgumentsSimplificationPhase::observeBadArgumentsUse):
      (JSC::DFG::ArgumentsSimplificationPhase::observeProperArgumentsUse):
      (JSC::DFG::ArgumentsSimplificationPhase::isOKToOptimize):
      (JSC::DFG::ArgumentsSimplificationPhase::removeArgumentsReferencingPhantomChild):
      * dfg/DFGAssemblyHelpers.cpp:
      (JSC::DFG::AssemblyHelpers::decodedCodeMapFor):
      * dfg/DFGByteCodeCache.h:
      (JSC::DFG::ByteCodeCache::~ByteCodeCache):
      (JSC::DFG::ByteCodeCache::get):
      * dfg/DFGByteCodeParser.cpp:
      (JSC::DFG::ByteCodeParser::cellConstant):
      (JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):
      * dfg/DFGStructureCheckHoistingPhase.cpp:
      (JSC::DFG::StructureCheckHoistingPhase::run):
      (JSC::DFG::StructureCheckHoistingPhase::noticeStructureCheck):
      (JSC::DFG::StructureCheckHoistingPhase::noticeClobber):
      * heap/Heap.cpp:
      (JSC::Heap::markProtectedObjects):
      * heap/Heap.h:
      (JSC::Heap::forEachProtectedCell):
      * heap/JITStubRoutineSet.cpp:
      (JSC::JITStubRoutineSet::markSlow):
      (JSC::JITStubRoutineSet::deleteUnmarkedJettisonedStubRoutines):
      * heap/SlotVisitor.cpp:
      (JSC::SlotVisitor::internalAppend):
      * heap/Weak.h:
      (JSC::weakRemove):
      * jit/JIT.cpp:
      (JSC::JIT::privateCompile):
      * jit/JITStubs.cpp:
      (JSC::JITThunks::ctiStub):
      * parser/Parser.cpp:
      (JSC::::parseStrictObjectLiteral):
      * profiler/Profile.cpp:
      (JSC::functionNameCountPairComparator):
      (JSC::Profile::debugPrintDataSampleStyle):
      * runtime/Identifier.cpp:
      (JSC::Identifier::add):
      * runtime/JSActivation.cpp:
      (JSC::JSActivation::getOwnNonIndexPropertyNames):
      (JSC::JSActivation::symbolTablePutWithAttributes):
      * runtime/JSArray.cpp:
      (JSC::JSArray::setLength):
      * runtime/JSObject.cpp:
      (JSC::JSObject::getOwnPropertySlotByIndex):
      (JSC::JSObject::enterDictionaryIndexingModeWhenArrayStorageAlreadyExists):
      (JSC::JSObject::deletePropertyByIndex):
      (JSC::JSObject::getOwnPropertyNames):
      (JSC::JSObject::defineOwnIndexedProperty):
      (JSC::JSObject::attemptToInterceptPutByIndexOnHoleForPrototype):
      (JSC::JSObject::putByIndexBeyondVectorLengthWithArrayStorage):
      (JSC::JSObject::putDirectIndexBeyondVectorLengthWithArrayStorage):
      (JSC::JSObject::getOwnPropertyDescriptor):
      * runtime/JSSymbolTableObject.cpp:
      (JSC::JSSymbolTableObject::getOwnNonIndexPropertyNames):
      * runtime/JSSymbolTableObject.h:
      (JSC::symbolTableGet):
      (JSC::symbolTablePut):
      (JSC::symbolTablePutWithAttributes):
      * runtime/RegExpCache.cpp:
      (JSC::RegExpCache::invalidateCode):
      * runtime/SparseArrayValueMap.cpp:
      (JSC::SparseArrayValueMap::putEntry):
      (JSC::SparseArrayValueMap::putDirect):
      (JSC::SparseArrayValueMap::visitChildren):
      * runtime/WeakGCMap.h:
      (JSC::WeakGCMap::clear):
      (JSC::WeakGCMap::set):
      * tools/ProfileTreeNode.h:
      (JSC::ProfileTreeNode::sampleChild):
      (JSC::ProfileTreeNode::childCount):
      (JSC::ProfileTreeNode::dumpInternal):
      (JSC::ProfileTreeNode::compareEntries):
      
      Source/WebCore: 
      
      * Modules/geolocation/Geolocation.cpp:
      (WebCore::Geolocation::Watchers::find):
      (WebCore::Geolocation::Watchers::remove):
      * Modules/indexeddb/IDBDatabase.cpp:
      (WebCore::IDBDatabase::objectStoreNames):
      * Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
      (WebCore::IDBDatabaseBackendImpl::metadata):
      * Modules/indexeddb/IDBFactoryBackendImpl.cpp:
      (WebCore::IDBFactoryBackendImpl::deleteDatabase):
      (WebCore::IDBFactoryBackendImpl::openBackingStore):
      (WebCore::IDBFactoryBackendImpl::open):
      * Modules/indexeddb/IDBObjectStore.cpp:
      (WebCore::IDBObjectStore::indexNames):
      (WebCore::IDBObjectStore::put):
      (WebCore::IDBObjectStore::index):
      (WebCore::IDBObjectStore::deleteIndex):
      * Modules/indexeddb/IDBObjectStoreBackendImpl.cpp:
      (WebCore::IDBObjectStoreBackendImpl::metadata):
      (WebCore::makeIndexWriters):
      (WebCore::IDBObjectStoreBackendImpl::deleteInternal):
      * Modules/indexeddb/IDBTransaction.cpp:
      (WebCore::IDBTransaction::objectStore):
      (WebCore::IDBTransaction::objectStoreDeleted):
      (WebCore::IDBTransaction::onAbort):
      (WebCore::IDBTransaction::dispatchEvent):
      * Modules/mediastream/MediaConstraintsImpl.cpp:
      (WebCore::MediaConstraintsImpl::getMandatoryConstraints):
      (WebCore::MediaConstraintsImpl::getMandatoryConstraintValue):
      * Modules/webdatabase/AbstractDatabase.cpp:
      (WebCore::AbstractDatabase::performOpenAndVerify):
      * Modules/webdatabase/DatabaseTracker.cpp:
      (WebCore::DatabaseTracker::interruptAllDatabasesForContext):
      * Modules/webdatabase/OriginUsageRecord.cpp:
      (WebCore::OriginUsageRecord::diskUsage):
      * Modules/webdatabase/SQLTransactionCoordinator.cpp:
      (WebCore::SQLTransactionCoordinator::acquireLock):
      (WebCore::SQLTransactionCoordinator::releaseLock):
      (WebCore::SQLTransactionCoordinator::shutdown):
      * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp:
      (WebCore::DatabaseTracker::interruptAllDatabasesForContext):
      * Modules/webdatabase/chromium/QuotaTracker.cpp:
      (WebCore::QuotaTracker::getDatabaseSizeAndSpaceAvailableToOrigin):
      (WebCore::QuotaTracker::updateDatabaseSize):
      * Modules/websockets/WebSocketDeflateFramer.cpp:
      (WebCore::WebSocketExtensionDeflateFrame::processResponse):
      * Modules/websockets/WebSocketExtensionDispatcher.cpp:
      (WebCore::WebSocketExtensionDispatcher::appendAcceptedExtension):
      * accessibility/AXObjectCache.cpp:
      (WebCore::AXObjectCache::~AXObjectCache):
      * bindings/gobject/DOMObjectCache.cpp:
      (WebKit::DOMObjectCache::clearByFrame):
      * bindings/js/DOMObjectHashTableMap.h:
      (WebCore::DOMObjectHashTableMap::~DOMObjectHashTableMap):
      (WebCore::DOMObjectHashTableMap::get):
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::cacheDOMStructure):
      * bindings/js/JSDOMGlobalObject.cpp:
      (WebCore::JSDOMGlobalObject::visitChildren):
      * bindings/js/JSDOMGlobalObject.h:
      (WebCore::getDOMConstructor):
      * bindings/js/PageScriptDebugServer.cpp:
      (WebCore::PageScriptDebugServer::addListener):
      (WebCore::PageScriptDebugServer::removeListener):
      * bindings/js/ScriptCachedFrameData.cpp:
      (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
      (WebCore::ScriptCachedFrameData::restore):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::~ScriptController):
      (WebCore::ScriptController::clearWindowShell):
      (WebCore::ScriptController::attachDebugger):
      (WebCore::ScriptController::updateDocument):
      (WebCore::ScriptController::createRootObject):
      (WebCore::ScriptController::collectIsolatedContexts):
      (WebCore::ScriptController::cleanupScriptObjectsForPlugin):
      (WebCore::ScriptController::clearScriptObjects):
      * bindings/js/ScriptController.h:
      (WebCore::ScriptController::windowShell):
      (WebCore::ScriptController::existingWindowShell):
      * bindings/js/ScriptDebugServer.cpp:
      (WebCore::ScriptDebugServer::setBreakpoint):
      (WebCore::ScriptDebugServer::removeBreakpoint):
      (WebCore::ScriptDebugServer::hasBreakpoint):
      * bindings/js/SerializedScriptValue.cpp:
      (WebCore::CloneSerializer::checkForDuplicate):
      (WebCore::CloneSerializer::dumpIfTerminal):
      (WebCore::CloneSerializer::write):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateImplementation):
      * bindings/scripts/test/V8/V8Float64Array.cpp:
      (WebCore::V8Float64Array::GetRawTemplate):
      (WebCore::V8Float64Array::GetTemplate):
      * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
      (WebCore::V8TestActiveDOMObject::GetRawTemplate):
      (WebCore::V8TestActiveDOMObject::GetTemplate):
      * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
      (WebCore::V8TestCustomNamedGetter::GetRawTemplate):
      (WebCore::V8TestCustomNamedGetter::GetTemplate):
      * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
      (WebCore::V8TestEventConstructor::GetRawTemplate):
      (WebCore::V8TestEventConstructor::GetTemplate):
      * bindings/scripts/test/V8/V8TestEventTarget.cpp:
      (WebCore::V8TestEventTarget::GetRawTemplate):
      (WebCore::V8TestEventTarget::GetTemplate):
      * bindings/scripts/test/V8/V8TestException.cpp:
      (WebCore::V8TestException::GetRawTemplate):
      (WebCore::V8TestException::GetTemplate):
      * bindings/scripts/test/V8/V8TestInterface.cpp:
      (WebCore::V8TestInterface::GetRawTemplate):
      (WebCore::V8TestInterface::GetTemplate):
      * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
      (WebCore::V8TestMediaQueryListListener::GetRawTemplate):
      (WebCore::V8TestMediaQueryListListener::GetTemplate):
      * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
      (WebCore::V8TestNamedConstructor::GetRawTemplate):
      (WebCore::V8TestNamedConstructor::GetTemplate):
      * bindings/scripts/test/V8/V8TestNode.cpp:
      (WebCore::V8TestNode::GetRawTemplate):
      (WebCore::V8TestNode::GetTemplate):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::V8TestObj::GetRawTemplate):
      (WebCore::V8TestObj::GetTemplate):
      * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
      (WebCore::V8TestSerializedScriptValueInterface::GetRawTemplate):
      (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
      * bindings/v8/DOMWrapperWorld.cpp:
      (WebCore::DOMWrapperWorld::deallocate):
      (WebCore::DOMWrapperWorld::ensureIsolatedWorld):
      * bindings/v8/NPV8Object.cpp:
      (WebCore::freeV8NPObject):
      (WebCore::npCreateV8ScriptObject):
      * bindings/v8/ScriptController.cpp:
      (WebCore::ScriptController::clearScriptObjects):
      (WebCore::ScriptController::resetIsolatedWorlds):
      (WebCore::ScriptController::ensureIsolatedWorldContext):
      (WebCore::ScriptController::existingWindowShellInternal):
      (WebCore::ScriptController::evaluateInIsolatedWorld):
      (WebCore::ScriptController::setIsolatedWorldSecurityOrigin):
      (WebCore::ScriptController::cleanupScriptObjectsForPlugin):
      (WebCore::ScriptController::collectIsolatedContexts):
      * bindings/v8/SerializedScriptValue.cpp:
      * bindings/v8/V8DOMMap.h:
      (WebCore::WeakReferenceMap::removeIfPresent):
      (WebCore::WeakReferenceMap::visit):
      * bindings/v8/V8PerContextData.cpp:
      (WebCore::V8PerContextData::dispose):
      * bindings/v8/npruntime.cpp:
      * bridge/IdentifierRep.cpp:
      (WebCore::IdentifierRep::get):
      * bridge/NP_jsobject.cpp:
      (ObjectMap::add):
      (ObjectMap::remove):
      * bridge/runtime_root.cpp:
      (JSC::Bindings::RootObject::invalidate):
      * css/CSSCanvasValue.cpp:
      (WebCore::CSSCanvasValue::canvasChanged):
      (WebCore::CSSCanvasValue::canvasResized):
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::counterToCSSValue):
      * css/CSSCrossfadeValue.cpp:
      (WebCore::CSSCrossfadeValue::crossfadeChanged):
      * css/CSSFontFaceSource.cpp:
      (WebCore::CSSFontFaceSource::getFontData):
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::addFontFaceRule):
      (WebCore::CSSFontSelector::getFontData):
      * css/CSSImageGeneratorValue.cpp:
      (WebCore::CSSImageGeneratorValue::addClient):
      (WebCore::CSSImageGeneratorValue::removeClient):
      (WebCore::CSSImageGeneratorValue::getImage):
      * css/CSSSegmentedFontFace.cpp:
      (WebCore::CSSSegmentedFontFace::getFontData):
      * css/CSSSelector.cpp:
      (WebCore::CSSSelector::parsePseudoType):
      * css/CSSValuePool.cpp:
      (WebCore::CSSValuePool::createColorValue):
      (WebCore::CSSValuePool::createFontFamilyValue):
      (WebCore::CSSValuePool::createFontFaceValue):
      * css/PropertySetCSSStyleDeclaration.cpp:
      (WebCore::PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM):
      * css/RuleSet.cpp:
      (WebCore::reportAtomRuleMap):
      (WebCore::RuleSet::addToRuleSet):
      (WebCore::shrinkMapVectorsToFit):
      * css/StyleBuilder.cpp:
      (WebCore::ApplyPropertyCounter::applyInheritValue):
      (WebCore::ApplyPropertyCounter::applyValue):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::collectFeatures):
      (WebCore::StyleResolver::ruleSetForScope):
      (WebCore::StyleResolver::appendAuthorStylesheets):
      (WebCore::StyleResolver::sweepMatchedPropertiesCache):
      (WebCore::StyleResolver::collectMatchingRulesForList):
      * css/StyleSheetContents.cpp:
      (WebCore::StyleSheetContents::parserAddNamespace):
      (WebCore::StyleSheetContents::determineNamespace):
      * dom/CheckedRadioButtons.cpp:
      (WebCore::CheckedRadioButtons::addButton):
      (WebCore::CheckedRadioButtons::removeButton):
      * dom/ChildListMutationScope.cpp:
      (WebCore::ChildListMutationAccumulator::getOrCreate):
      * dom/Document.cpp:
      (WebCore::Document::windowNamedItems):
      (WebCore::Document::documentNamedItems):
      (WebCore::Document::getCSSCanvasElement):
      (WebCore::Document::cachedImmutableAttributeData):
      (WebCore::Document::getCachedLocalizer):
      * dom/DocumentMarkerController.cpp:
      (WebCore::DocumentMarkerController::markerContainingPoint):
      (WebCore::DocumentMarkerController::renderedRectsForMarkers):
      (WebCore::DocumentMarkerController::removeMarkers):
      (WebCore::DocumentMarkerController::repaintMarkers):
      (WebCore::DocumentMarkerController::invalidateRenderedRectsForMarkersInRect):
      (WebCore::DocumentMarkerController::showMarkers):
      * dom/DocumentOrderedMap.cpp:
      (WebCore::DocumentOrderedMap::remove):
      * dom/DocumentStyleSheetCollection.cpp:
      (WebCore::DocumentStyleSheetCollection::pageGroupUserSheets):
      * dom/ElementAttributeData.cpp:
      (WebCore::ensureAttrListForElement):
      * dom/EventDispatcher.cpp:
      (WebCore::EventRelatedTargetAdjuster::findRelatedTarget):
      * dom/IdTargetObserverRegistry.cpp:
      (WebCore::IdTargetObserverRegistry::addObserver):
      (WebCore::IdTargetObserverRegistry::removeObserver):
      * dom/MutationObserverInterestGroup.cpp:
      (WebCore::MutationObserverInterestGroup::isOldValueRequested):
      (WebCore::MutationObserverInterestGroup::enqueueMutationRecord):
      * dom/Node.cpp:
      (WebCore::Node::dumpStatistics):
      (WebCore::Node::clearRareData):
      (WebCore::NodeListsNodeData::invalidateCaches):
      (WebCore::collectMatchingObserversForMutation):
      * dom/NodeRareData.h:
      (WebCore::NodeListsNodeData::addCacheWithAtomicName):
      (WebCore::NodeListsNodeData::addCacheWithName):
      (WebCore::NodeListsNodeData::addCacheWithQualifiedName):
      (WebCore::NodeListsNodeData::adoptTreeScope):
      * dom/ProcessingInstruction.cpp:
      (WebCore::ProcessingInstruction::checkStyleSheet):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
      (WebCore::ScriptExecutionContext::adjustMinimumTimerInterval):
      * dom/SelectorQuery.cpp:
      (WebCore::SelectorQueryCache::add):
      * dom/SpaceSplitString.cpp:
      (WebCore::SpaceSplitStringData::create):
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::updateAttributeStyle):
      * editing/mac/AlternativeTextUIController.mm:
      (WebCore::AlternativeTextUIController::AlernativeTextContextController::alternativesForContext):
      * html/FormController.cpp:
      (WebCore::SavedFormState::serializeTo):
      (WebCore::SavedFormState::appendControlState):
      (WebCore::SavedFormState::takeControlState):
      (WebCore::SavedFormState::getReferencedFilePaths):
      (WebCore::FormKeyGenerator::formKey):
      (WebCore::FormController::createSavedFormStateMap):
      (WebCore::FormController::formElementsState):
      (WebCore::FormController::takeStateForFormElement):
      (WebCore::FormController::getReferencedFilePaths):
      * html/HTMLCollection.cpp:
      (WebCore::HTMLCollectionCacheBase::append):
      * html/canvas/WebGLFramebuffer.cpp:
      (WebCore::WebGLFramebuffer::getAttachment):
      (WebCore::WebGLFramebuffer::removeAttachmentFromBoundFramebuffer):
      (WebCore::WebGLFramebuffer::checkStatus):
      (WebCore::WebGLFramebuffer::deleteObjectImpl):
      (WebCore::WebGLFramebuffer::initializeAttachments):
      * inspector/CodeGeneratorInspector.py:
      * inspector/DOMPatchSupport.cpp:
      (WebCore::DOMPatchSupport::diff):
      (WebCore::DOMPatchSupport::innerPatchChildren):
      (WebCore::DOMPatchSupport::removeChildAndMoveToNew):
      * inspector/InjectedScriptManager.cpp:
      (WebCore::InjectedScriptManager::injectedScriptForId):
      (WebCore::InjectedScriptManager::injectedScriptIdFor):
      (WebCore::InjectedScriptManager::discardInjectedScriptsFor):
      (WebCore::InjectedScriptManager::releaseObjectGroup):
      (WebCore::InjectedScriptManager::injectedScriptFor):
      * inspector/InspectorCSSAgent.cpp:
      (WebCore::SelectorProfile::commitSelector):
      (WebCore::SelectorProfile::commitSelectorTime):
      (WebCore::SelectorProfile::toInspectorObject):
      (WebCore::UpdateRegionLayoutTask::onTimer):
      (WebCore::InspectorCSSAgent::forcePseudoState):
      (WebCore::InspectorCSSAgent::asInspectorStyleSheet):
      (WebCore::InspectorCSSAgent::assertStyleSheetForId):
      (WebCore::InspectorCSSAgent::didRemoveDOMNode):
      (WebCore::InspectorCSSAgent::didModifyDOMAttr):
      (WebCore::InspectorCSSAgent::resetPseudoStates):
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::stopTiming):
      (WebCore::InspectorConsoleAgent::count):
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::nodeForId):
      (WebCore::InspectorDOMAgent::performSearch):
      (WebCore::InspectorDOMAgent::getSearchResults):
      * inspector/InspectorDOMDebuggerAgent.cpp:
      (WebCore::InspectorDOMDebuggerAgent::willSendXMLHttpRequest):
      * inspector/InspectorDOMStorageAgent.cpp:
      (WebCore::InspectorDOMStorageAgent::clearFrontend):
      (WebCore::InspectorDOMStorageAgent::enable):
      (WebCore::InspectorDOMStorageAgent::storageId):
      (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
      (WebCore::InspectorDOMStorageAgent::didUseDOMStorage):
      (WebCore::InspectorDOMStorageAgent::memoryBytesUsedByStorageCache):
      * inspector/InspectorDatabaseAgent.cpp:
      (WebCore::InspectorDatabaseAgent::enable):
      (WebCore::InspectorDatabaseAgent::databaseId):
      (WebCore::InspectorDatabaseAgent::findByFileName):
      (WebCore::InspectorDatabaseAgent::databaseForId):
      * inspector/InspectorDebuggerAgent.cpp:
      (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
      (WebCore::InspectorDebuggerAgent::removeBreakpoint):
      (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
      (WebCore::InspectorDebuggerAgent::searchInContent):
      (WebCore::InspectorDebuggerAgent::getScriptSource):
      (WebCore::InspectorDebuggerAgent::didParseSource):
      * inspector/InspectorIndexedDBAgent.cpp:
      (WebCore):
      * inspector/InspectorMemoryAgent.cpp:
      (WebCore):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::cachedResourcesForFrame):
      (WebCore::InspectorPageAgent::didClearWindowObjectInWorld):
      (WebCore::InspectorPageAgent::frameDetached):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::getProfileHeaders):
      (WebCore):
      (WebCore::InspectorProfilerAgent::getProfile):
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::buildObjectForHeaders):
      (WebCore::InspectorResourceAgent::willSendRequest):
      (WebCore::InspectorResourceAgent::documentThreadableLoaderStartedLoadingForClient):
      (WebCore::InspectorResourceAgent::willLoadXHR):
      (WebCore::InspectorResourceAgent::replayXHR):
      * inspector/InspectorState.cpp:
      (WebCore::InspectorState::getBoolean):
      (WebCore::InspectorState::getString):
      (WebCore::InspectorState::getLong):
      (WebCore::InspectorState::getDouble):
      (WebCore::InspectorState::getObject):
      * inspector/InspectorStyleSheet.cpp:
      (WebCore::InspectorStyle::styleWithProperties):
      (WebCore::InspectorStyleSheet::inspectorStyleForId):
      * inspector/InspectorValues.cpp:
      (WebCore::InspectorObjectBase::get):
      (WebCore::InspectorObjectBase::writeJSON):
      * inspector/InspectorWorkerAgent.cpp:
      (WebCore::InspectorWorkerAgent::workerContextTerminated):
      (WebCore::InspectorWorkerAgent::createWorkerFrontendChannelsForExistingWorkers):
      (WebCore::InspectorWorkerAgent::destroyWorkerFrontendChannels):
      * inspector/MemoryInstrumentationImpl.cpp:
      (WebCore::MemoryInstrumentationClientImpl::countObjectSize):
      * inspector/MemoryInstrumentationImpl.h:
      (WebCore::MemoryInstrumentationClientImpl::totalSize):
      (WebCore::MemoryInstrumentationClientImpl::reportedSizeForAllTypes):
      * inspector/NetworkResourcesData.cpp:
      (WebCore::NetworkResourcesData::setXHRReplayData):
      (WebCore::NetworkResourcesData::removeCachedResource):
      (WebCore::NetworkResourcesData::clear):
      * loader/CrossOriginAccessControl.cpp:
      (WebCore::isSimpleCrossOriginAccessRequest):
      (WebCore::createAccessControlPreflightRequest):
      * loader/CrossOriginPreflightResultCache.cpp:
      (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders):
      (WebCore::CrossOriginPreflightResultCache::canSkipPreflight):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::getSubresources):
      (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::didReceiveResponse):
      * loader/ResourceLoadScheduler.cpp:
      (WebCore::ResourceLoadScheduler::servePendingRequests):
      * loader/appcache/ApplicationCache.cpp:
      (WebCore::ApplicationCache::removeResource):
      (WebCore::ApplicationCache::clearStorageID):
      (WebCore::ApplicationCache::dump):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
      (WebCore::ApplicationCacheGroup::startLoadingEntry):
      (WebCore::ApplicationCacheGroup::addEntry):
      * loader/appcache/ApplicationCacheHost.cpp:
      (WebCore::ApplicationCacheHost::fillResourceList):
      * loader/appcache/ApplicationCacheResource.cpp:
      (WebCore::ApplicationCacheResource::estimatedSizeInStorage):
      * loader/appcache/ApplicationCacheStorage.cpp:
      (WebCore::ApplicationCacheStorage::findOrCreateCacheGroup):
      (WebCore::ApplicationCacheStorage::cacheGroupForURL):
      (WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL):
      (WebCore::ApplicationCacheStorage::store):
      (WebCore::ApplicationCacheStorage::empty):
      (WebCore::ApplicationCacheStorage::storeCopyOfCache):
      * loader/archive/ArchiveFactory.cpp:
      (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes):
      * loader/cache/CachedRawResource.cpp:
      (WebCore::CachedRawResource::canReuse):
      * loader/cache/CachedResource.cpp:
      (WebCore::CachedResource::switchClientsToRevalidatedResource):
      (WebCore::CachedResource::updateResponseAfterRevalidation):
      * loader/cache/CachedResourceClientWalker.h:
      (WebCore::CachedResourceClientWalker::CachedResourceClientWalker):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::~CachedResourceLoader):
      (WebCore::CachedResourceLoader::requestResource):
      (WebCore::CachedResourceLoader::reloadImagesIfNotDeferred):
      (WebCore::CachedResourceLoader::removeCachedResource):
      (WebCore::CachedResourceLoader::garbageCollectDocumentResources):
      * loader/cache/MemoryCache.cpp:
      (WebCore::MemoryCache::removeResourcesWithOrigin):
      (WebCore::MemoryCache::getOriginsWithCache):
      (WebCore::MemoryCache::getStatistics):
      (WebCore::MemoryCache::setDisabled):
      * loader/icon/IconDatabase.cpp:
      (WebCore::IconDatabase::removeAllIcons):
      (WebCore::IconDatabase::iconRecordCountWithData):
      (WebCore::IconDatabase::performPendingRetainAndReleaseOperations):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::dispatchAllPendingBeforeUnloadEvents):
      (WebCore::DOMWindow::dispatchAllPendingUnloadEvents):
      * page/EventHandler.cpp:
      (WebCore::EventHandler::handleTouchEvent):
      * page/Frame.cpp:
      (WebCore::Frame::injectUserScripts):
      * page/PageGroup.cpp:
      (WebCore::PageGroup::pageGroup):
      (WebCore::PageGroup::closeLocalStorage):
      (WebCore::PageGroup::clearLocalStorageForAllOrigins):
      (WebCore::PageGroup::clearLocalStorageForOrigin):
      (WebCore::PageGroup::syncLocalStorage):
      (WebCore::PageGroup::addUserScriptToWorld):
      (WebCore::PageGroup::addUserStyleSheetToWorld):
      (WebCore::PageGroup::removeUserScriptFromWorld):
      (WebCore::PageGroup::removeUserStyleSheetFromWorld):
      * page/PageSerializer.cpp:
      (WebCore::PageSerializer::urlForBlankFrame):
      * page/SecurityPolicy.cpp:
      (WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
      (WebCore::SecurityPolicy::removeOriginAccessWhitelistEntry):
      * page/Settings.cpp:
      (WebCore::setGenericFontFamilyMap):
      (WebCore::getGenericFontFamilyForScript):
      * page/SpeechInput.cpp:
      (WebCore::SpeechInput::registerListener):
      * page/TouchDisambiguation.cpp:
      (WebCore::findGoodTouchTargets):
      * page/WindowFeatures.cpp:
      (WebCore::WindowFeatures::boolFeature):
      (WebCore::WindowFeatures::floatFeature):
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::updateAnimations):
      (WebCore::AnimationControllerPrivate::suspendAnimationsForDocument):
      (WebCore::AnimationControllerPrivate::resumeAnimationsForDocument):
      (WebCore::AnimationControllerPrivate::numberOfActiveAnimations):
      * page/animation/CompositeAnimation.cpp:
      (WebCore::CompositeAnimation::clearRenderer):
      (WebCore::CompositeAnimation::updateTransitions):
      (WebCore::CompositeAnimation::updateKeyframeAnimations):
      (WebCore::CompositeAnimation::animate):
      (WebCore::CompositeAnimation::getAnimatedStyle):
      (WebCore::CompositeAnimation::setAnimating):
      (WebCore::CompositeAnimation::timeToNextService):
      (WebCore::CompositeAnimation::getAnimationForProperty):
      (WebCore::CompositeAnimation::suspendAnimations):
      (WebCore::CompositeAnimation::resumeAnimations):
      (WebCore::CompositeAnimation::overrideImplicitAnimations):
      (WebCore::CompositeAnimation::resumeOverriddenImplicitAnimations):
      (WebCore::CompositeAnimation::isAnimatingProperty):
      (WebCore::CompositeAnimation::numberOfActiveAnimations):
      * platform/Language.cpp:
      (WebCore::languageDidChange):
      * platform/MIMETypeRegistry.cpp:
      (WebCore::MIMETypeRegistry::getNormalizedMIMEType):
      * platform/audio/HRTFElevation.cpp:
      (WebCore::getConcatenatedImpulseResponsesForSubject):
      * platform/blackberry/CookieManager.cpp:
      (WebCore::CookieManager::generateHtmlFragmentForCookies):
      (WebCore::CookieManager::removeAllCookies):
      * platform/blackberry/CookieMap.cpp:
      (WebCore::CookieMap::removeOldestCookie):
      (WebCore::CookieMap::getAllChildCookies):
      * platform/cf/BinaryPropertyList.cpp:
      (WebCore::BinaryPropertyListPlan::writeIntegerArray):
      * platform/chromium/support/WebHTTPLoadInfo.cpp:
      (WebKit::addHeader):
      * platform/chromium/support/WebURLRequest.cpp:
      (WebKit::WebURLRequest::visitHTTPHeaderFields):
      * platform/chromium/support/WebURLResponse.cpp:
      (WebKit::WebURLResponse::addHTTPHeaderField):
      (WebKit::WebURLResponse::visitHTTPHeaderFields):
      * platform/graphics/DisplayRefreshMonitor.cpp:
      (WebCore::DisplayRefreshMonitorManager::ensureMonitorForClient):
      (WebCore::DisplayRefreshMonitorManager::unregisterClient):
      * platform/graphics/FontCache.cpp:
      (WebCore::FontCache::getCachedFontPlatformData):
      (WebCore::FontCache::getVerticalData):
      (WebCore::FontCache::getCachedFontData):
      (WebCore::FontCache::releaseFontData):
      (WebCore::FontCache::purgeInactiveFontData):
      * platform/graphics/GlyphPageTreeNode.cpp:
      (WebCore::GlyphPageTreeNode::treeGlyphPageCount):
      (WebCore::GlyphPageTreeNode::pageCount):
      (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
      (WebCore::GlyphPageTreeNode::pruneTreeFontData):
      (WebCore::GlyphPageTreeNode::pruneCustomFontData):
      (WebCore::GlyphPageTreeNode::pruneFontData):
      (WebCore::GlyphPageTreeNode::showSubtree):
      (showGlyphPageTrees):
      * platform/graphics/TiledBackingStore.cpp:
      (WebCore::TiledBackingStore::updateTileBuffers):
      (WebCore::TiledBackingStore::resizeEdgeTiles):
      (WebCore::TiledBackingStore::setKeepRect):
      * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
      (WebCore::AVFWrapper::avfWrapperForCallbackContext):
      * platform/graphics/blackberry/LayerTiler.cpp:
      (WebCore::LayerTiler::layerVisibilityChanged):
      (WebCore::LayerTiler::uploadTexturesIfNeeded):
      (WebCore::LayerTiler::addTileJob):
      (WebCore::LayerTiler::deleteTextures):
      (WebCore::LayerTiler::pruneTextures):
      (WebCore::LayerTiler::bindContentsTexture):
      * platform/graphics/blackberry/TextureCacheCompositingThread.cpp:
      (WebCore::TextureCacheCompositingThread::textureForTiledContents):
      (WebCore::TextureCacheCompositingThread::textureForColor):
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::moveOrCopyAnimations):
      (WebCore::GraphicsLayerCA::pauseAnimation):
      (WebCore::GraphicsLayerCA::layerDidDisplay):
      (WebCore::GraphicsLayerCA::updateGeometry):
      (WebCore::GraphicsLayerCA::updateTransform):
      (WebCore::GraphicsLayerCA::updateChildrenTransform):
      (WebCore::GraphicsLayerCA::updateMasksToBounds):
      (WebCore::GraphicsLayerCA::updateContentsVisibility):
      (WebCore::GraphicsLayerCA::updateContentsOpaque):
      (WebCore::GraphicsLayerCA::updateBackfaceVisibility):
      (WebCore::GraphicsLayerCA::updateFilters):
      (WebCore::GraphicsLayerCA::ensureStructuralLayer):
      (WebCore::GraphicsLayerCA::updateLayerDrawsContent):
      (WebCore::GraphicsLayerCA::updateContentsImage):
      (WebCore::GraphicsLayerCA::updateContentsRect):
      (WebCore::GraphicsLayerCA::updateMaskLayer):
      (WebCore::GraphicsLayerCA::updateLayerAnimations):
      (WebCore::GraphicsLayerCA::setAnimationOnLayer):
      (WebCore::GraphicsLayerCA::removeCAAnimationFromLayer):
      (WebCore::GraphicsLayerCA::pauseCAAnimationOnLayer):
      (WebCore::GraphicsLayerCA::suspendAnimations):
      (WebCore::GraphicsLayerCA::resumeAnimations):
      (WebCore::GraphicsLayerCA::findOrMakeClone):
      (WebCore::GraphicsLayerCA::setOpacityInternal):
      (WebCore::GraphicsLayerCA::updateOpacityOnLayer):
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::~TileCache):
      (WebCore::TileCache::setNeedsDisplay):
      (WebCore::TileCache::setScale):
      (WebCore::TileCache::setAcceleratesDrawing):
      (WebCore::TileCache::setTileDebugBorderWidth):
      (WebCore::TileCache::setTileDebugBorderColor):
      (WebCore::TileCache::revalidateTiles):
      * platform/graphics/ca/win/PlatformCALayerWin.cpp:
      (PlatformCALayer::animationStarted):
      (resubmitAllAnimations):
      (PlatformCALayer::animationForKey):
      * platform/graphics/chromium/FontCacheChromiumWin.cpp:
      (WebCore::LookupAltName):
      (WebCore::fontContainsCharacter):
      * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
      (WebCore::getDerivedFontData):
      * platform/graphics/filters/CustomFilterGlobalContext.cpp:
      (WebCore::CustomFilterGlobalContext::~CustomFilterGlobalContext):
      (WebCore::CustomFilterGlobalContext::getValidatedProgram):
      (WebCore::CustomFilterGlobalContext::removeValidatedProgram):
      * platform/graphics/filters/CustomFilterProgram.cpp:
      (WebCore::CustomFilterProgram::notifyClients):
      * platform/graphics/harfbuzz/HarfBuzzSkia.cpp:
      (WebCore::getCachedHarfbuzzFace):
      (WebCore::releaseCachedHarfbuzzFace):
      * platform/graphics/harfbuzz/ng/HarfBuzzNGFace.cpp:
      (WebCore::HarfBuzzNGFace::HarfBuzzNGFace):
      (WebCore::HarfBuzzNGFace::~HarfBuzzNGFace):
      * platform/graphics/mac/SimpleFontDataCoreText.cpp:
      (WebCore::SimpleFontData::getCFStringAttributes):
      * platform/graphics/mac/SimpleFontDataMac.mm:
      (WebCore::SimpleFontData::canRenderCombiningCharacterSequence):
      * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
      (WebCore::Extensions3DOpenGLCommon::getTranslatedShaderSourceANGLE):
      * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
      (WebCore::GraphicsContext3D::compileShader):
      (WebCore::GraphicsContext3D::mappedSymbolName):
      (WebCore::GraphicsContext3D::getShaderiv):
      (WebCore::GraphicsContext3D::getShaderInfoLog):
      (WebCore::GraphicsContext3D::getShaderSource):
      * platform/graphics/openvg/EGLDisplayOpenVG.cpp:
      (WebCore::EGLDisplayOpenVG::~EGLDisplayOpenVG):
      (WebCore::EGLDisplayOpenVG::destroySurface):
      (WebCore::EGLDisplayOpenVG::contextForSurface):
      * platform/graphics/texmap/TextureMapperGL.cpp:
      (WebCore::TextureMapperGLData::SharedGLData::currentSharedGLData):
      (WebCore::TextureMapperGLData::SharedGLData::~SharedGLData):
      * platform/graphics/texmap/TextureMapperShaderManager.cpp:
      (WebCore::TextureMapperShaderManager::getShaderProgram):
      (WebCore::TextureMapperShaderManager::getShaderForFilter):
      * platform/graphics/wince/FontPlatformData.cpp:
      (WebCore::FixedSizeFontData::create):
      * platform/gtk/DataObjectGtk.cpp:
      (WebCore::DataObjectGtk::forClipboard):
      * platform/gtk/GtkDragAndDropHelper.cpp:
      (WebCore::GtkDragAndDropHelper::handleGetDragData):
      (WebCore::GtkDragAndDropHelper::handleDragLeave):
      (WebCore::GtkDragAndDropHelper::handleDragMotion):
      (WebCore::GtkDragAndDropHelper::handleDragDataReceived):
      (WebCore::GtkDragAndDropHelper::handleDragDrop):
      * platform/gtk/RedirectedXCompositeWindow.cpp:
      (WebCore::filterXDamageEvent):
      * platform/gtk/RenderThemeGtk3.cpp:
      (WebCore::gtkStyleChangedCallback):
      (WebCore::getStyleContext):
      * platform/mac/ScrollbarThemeMac.mm:
      (+[WebScrollbarPrefsObserver appearancePrefsChanged:]):
      * platform/network/CredentialStorage.cpp:
      (WebCore::CredentialStorage::set):
      (WebCore::CredentialStorage::get):
      * platform/network/HTTPHeaderMap.cpp:
      (WebCore::HTTPHeaderMap::copyData):
      (WebCore::HTTPHeaderMap::get):
      * platform/network/MIMEHeader.cpp:
      (WebCore::MIMEHeader::parseHeader):
      * platform/network/ResourceHandle.cpp:
      (WebCore::ResourceHandle::create):
      * platform/network/ResourceRequestBase.cpp:
      (WebCore::ResourceRequestBase::addHTTPHeaderField):
      (WebCore::ResourceRequestBase::addHTTPHeaderFields):
      * platform/network/blackberry/ResourceRequestBlackBerry.cpp:
      (WebCore::ResourceRequest::targetTypeFromMimeType):
      (WebCore::ResourceRequest::initializePlatformRequest):
      * platform/network/cf/ResourceHandleCFNet.cpp:
      (WebCore::makeFinalRequest):
      * platform/network/cf/ResourceRequestCFNet.cpp:
      (WebCore::setHeaderFields):
      * platform/network/curl/ResourceHandleManager.cpp:
      (WebCore::ResourceHandleManager::initializeHandle):
      * platform/network/mac/ResourceRequestMac.mm:
      (WebCore::ResourceRequest::doUpdatePlatformRequest):
      * platform/network/qt/ResourceRequestQt.cpp:
      (WebCore::ResourceRequest::toNetworkRequest):
      * platform/network/soup/ResourceHandleSoup.cpp:
      (WebCore::sendRequestCallback):
      (WebCore::ResourceHandle::setClientCertificate):
      * platform/network/soup/ResourceRequestSoup.cpp:
      (WebCore::ResourceRequest::updateSoupMessage):
      (WebCore::ResourceRequest::toSoupMessage):
      * platform/network/soup/ResourceResponseSoup.cpp:
      (WebCore::ResourceResponse::toSoupMessage):
      * platform/network/win/ResourceHandleWin.cpp:
      (WebCore::ResourceHandle::start):
      * platform/qt/RunLoopQt.cpp:
      (WebCore::RunLoop::TimerBase::timerFired):
      * platform/text/LocaleToScriptMappingDefault.cpp:
      (WebCore::scriptNameToCode):
      (WebCore::localeToScriptCodeForFontSelection):
      * platform/text/TextEncodingRegistry.cpp:
      (WebCore::pruneBlacklistedCodecs):
      (WebCore::dumpTextEncodingNameMap):
      * platform/text/transcoder/FontTranscoder.cpp:
      (WebCore::FontTranscoder::converterType):
      * platform/text/win/TextCodecWin.cpp:
      (WebCore::LanguageManager::LanguageManager):
      (WebCore::getCodePage):
      (WebCore::TextCodecWin::registerExtendedEncodingNames):
      (WebCore::TextCodecWin::registerExtendedCodecs):
      (WebCore::TextCodecWin::enumerateSupportedEncodings):
      * platform/win/ClipboardUtilitiesWin.cpp:
      (WebCore::getDataMapItem):
      (WebCore::getClipboardData):
      (WebCore::setClipboardData):
      * platform/win/ClipboardWin.cpp:
      (WebCore::ClipboardWin::types):
      * platform/win/FileSystemWin.cpp:
      (WebCore::cachedStorageDirectory):
      * platform/win/RunLoopWin.cpp:
      (WebCore::RunLoop::TimerBase::timerFired):
      * platform/win/WCDataObject.cpp:
      (WebCore::WCDataObject::createInstance):
      * platform/wince/MIMETypeRegistryWinCE.cpp:
      (WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType):
      * platform/wx/ContextMenuWx.cpp:
      (WebCore::ContextMenu::appendItem):
      * plugins/PluginDatabase.cpp:
      (WebCore::PluginDatabase::refresh):
      (WebCore::PluginDatabase::MIMETypeForExtension):
      (WebCore::PluginDatabase::remove):
      * plugins/PluginMainThreadScheduler.cpp:
      (WebCore::PluginMainThreadScheduler::scheduleCall):
      (WebCore::PluginMainThreadScheduler::dispatchCalls):
      * plugins/PluginStream.cpp:
      (WebCore::PluginStream::startStream):
      * plugins/blackberry/PluginDataBlackBerry.cpp:
      (WebCore::PluginData::initPlugins):
      * plugins/wx/PluginDataWx.cpp:
      (WebCore::PluginData::initPlugins):
      * rendering/ExclusionShapeInsideInfo.cpp:
      (WebCore::ExclusionShapeInsideInfo::ensureExclusionShapeInsideInfoForRenderBlock):
      * rendering/FlowThreadController.cpp:
      (WebCore::FlowThreadController::unregisterNamedFlowContentNode):
      * rendering/InlineFlowBox.cpp:
      (WebCore::InlineFlowBox::requiresIdeographicBaseline):
      (WebCore::InlineFlowBox::addTextBoxVisualOverflow):
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::clearFloats):
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::setLogicalWidthForTextRun):
      * rendering/RenderBoxModelObject.cpp:
      (WebCore::ImageQualityController::highQualityRepaintTimerFired):
      (WebCore::ImageQualityController::shouldPaintAtLowQuality):
      * rendering/RenderCounter.cpp:
      (WebCore::RenderCounter::destroyCounterNodes):
      (WebCore::RenderCounter::destroyCounterNode):
      (WebCore::updateCounters):
      (WebCore::RenderCounter::rendererStyleChanged):
      * rendering/RenderFlowThread.cpp:
      (WebCore::RenderFlowThread::setRegionRangeForBox):
      (WebCore::RenderFlowThread::getRegionRangeForBox):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::paint):
      (WebCore::performOverlapTests):
      * rendering/RenderLayerFilterInfo.cpp:
      (WebCore::RenderLayerFilterInfo::filterInfoForRenderLayer):
      (WebCore::RenderLayerFilterInfo::createFilterInfoForRenderLayerIfNeeded):
      * rendering/RenderNamedFlowThread.cpp:
      (WebCore::RenderNamedFlowThread::dependsOn):
      (WebCore::RenderNamedFlowThread::pushDependencies):
      * rendering/RenderRegion.cpp:
      (WebCore::RenderRegion::setRenderBoxRegionInfo):
      (WebCore::RenderRegion::setRegionObjectsRegionStyle):
      (WebCore::RenderRegion::restoreRegionObjectsOriginalStyle):
      (WebCore::RenderRegion::computeChildrenStyleInRegion):
      * rendering/RenderTableSection.cpp:
      (WebCore::RenderTableSection::cachedCollapsedBorder):
      * rendering/RenderThemeMac.mm:
      (WebCore::RenderThemeMac::systemColor):
      * rendering/RenderView.cpp:
      (WebCore::RenderView::selectionBounds):
      (WebCore::RenderView::setSelection):
      * rendering/RenderWidget.cpp:
      (WebCore::WidgetHierarchyUpdatesSuspensionScope::moveWidgets):
      * rendering/RootInlineBox.cpp:
      (WebCore::RootInlineBox::ascentAndDescentForBox):
      * rendering/VerticalPositionCache.h:
      (WebCore::VerticalPositionCache::get):
      * rendering/svg/RenderSVGInlineText.cpp:
      (WebCore::RenderSVGInlineText::characterStartsNewTextChunk):
      * rendering/svg/RenderSVGResourceFilter.cpp:
      (WebCore::RenderSVGResourceFilter::primitiveAttributeChanged):
      * rendering/svg/RenderSVGResourceGradient.cpp:
      (WebCore::RenderSVGResourceGradient::applyResource):
      * rendering/svg/RenderSVGResourcePattern.cpp:
      (WebCore::RenderSVGResourcePattern::applyResource):
      * rendering/svg/SVGResourcesCache.cpp:
      (WebCore::SVGResourcesCache::resourceDestroyed):
      * rendering/svg/SVGRootInlineBox.cpp:
      (WebCore::swapItemsInLayoutAttributes):
      * rendering/svg/SVGTextLayoutAttributes.cpp:
      (WebCore::SVGTextLayoutAttributes::dump):
      * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
      (WebCore::SVGTextLayoutAttributesBuilder::buildCharacterDataMap):
      (WebCore::SVGTextLayoutAttributesBuilder::fillCharacterDataMap):
      * rendering/svg/SVGTextLayoutEngine.cpp:
      (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath):
      * rendering/svg/SVGTextMetricsBuilder.cpp:
      (WebCore::SVGTextMetricsBuilder::measureTextRenderer):
      * storage/StorageAreaSync.cpp:
      (WebCore::StorageAreaSync::syncTimerFired):
      (WebCore::StorageAreaSync::performImport):
      (WebCore::StorageAreaSync::sync):
      * storage/StorageMap.cpp:
      (WebCore::StorageMap::key):
      (WebCore::StorageMap::setItem):
      * storage/StorageNamespaceImpl.cpp:
      (WebCore::StorageNamespaceImpl::localStorageNamespace):
      (WebCore::StorageNamespaceImpl::copy):
      (WebCore::StorageNamespaceImpl::close):
      (WebCore::StorageNamespaceImpl::clearAllOriginsForDeletion):
      (WebCore::StorageNamespaceImpl::sync):
      * svg/SVGDocumentExtensions.cpp:
      (WebCore::SVGDocumentExtensions::removeAnimationElementFromTarget):
      (WebCore::SVGDocumentExtensions::removeAllAnimationElementsFromTarget):
      (WebCore::SVGDocumentExtensions::addPendingResource):
      (WebCore::SVGDocumentExtensions::isElementPendingResources):
      (WebCore::SVGDocumentExtensions::removeElementFromPendingResources):
      (WebCore::SVGDocumentExtensions::setOfElementsReferencingTarget):
      (WebCore::SVGDocumentExtensions::removeAllTargetReferencesForElement):
      (WebCore::SVGDocumentExtensions::removeAllElementReferencesForTarget):
      * svg/SVGElement.cpp:
      (WebCore::SVGElement::~SVGElement):
      * svg/animation/SMILTimeContainer.cpp:
      (WebCore::SMILTimeContainer::setElapsed):
      (WebCore::SMILTimeContainer::updateAnimations):
      * svg/graphics/SVGImageCache.cpp:
      (WebCore::SVGImageCache::~SVGImageCache):
      (WebCore::SVGImageCache::removeClientFromCache):
      (WebCore::SVGImageCache::requestedSizeAndScales):
      (WebCore::SVGImageCache::imageContentChanged):
      (WebCore::SVGImageCache::redraw):
      (WebCore::SVGImageCache::lookupOrCreateBitmapImageForRenderer):
      * svg/graphics/filters/SVGFilterBuilder.h:
      (WebCore::SVGFilterBuilder::effectReferences):
      (WebCore::SVGFilterBuilder::addBuiltinEffects):
      * svg/properties/SVGAnimatedProperty.h:
      (WebCore::SVGAnimatedProperty::~SVGAnimatedProperty):
      * svg/properties/SVGAttributeToPropertyMap.cpp:
      (WebCore::SVGAttributeToPropertyMap::addProperties):
      (WebCore::SVGAttributeToPropertyMap::synchronizeProperties):
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::hasPendingActivity):
      * workers/WorkerEventQueue.cpp:
      (WebCore::WorkerEventQueue::close):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::setRequestHeaderInternal):
      (WebCore::XMLHttpRequest::getAllResponseHeaders):
      * xml/XPathFunctions.cpp:
      (WebCore::XPath::createFunction):
      * xml/XPathParser.cpp:
      (isAxisName):
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::xsltParamArrayFromParameterMap):
      * xml/XSLTProcessorQt.cpp:
      (WebCore::XSLTProcessor::transformToString):
      
      Source/WebKit/blackberry: 
      
      * Api/BackingStore.cpp:
      (BlackBerry::WebKit::BackingStorePrivate::setBackingStoreRect):
      (BlackBerry::WebKit::BackingStorePrivate::visibleTilesRect):
      (BlackBerry::WebKit::BackingStorePrivate::resetTiles):
      (BlackBerry::WebKit::BackingStorePrivate::updateTiles):
      (BlackBerry::WebKit::BackingStorePrivate::updateTilesForScrollOrNotRenderedRegion):
      (BlackBerry::WebKit::BackingStorePrivate::mapFromTransformedContentsToTiles):
      * WebCoreSupport/NotificationPresenterImpl.cpp:
      (WebCore::NotificationPresenterImpl::cancel):
      (WebCore::NotificationPresenterImpl::onPermission):
      (WebCore::NotificationPresenterImpl::notificationClicked):
      * WebCoreSupport/UserMediaClientImpl.cpp:
      (WebCore::UserMediaClientImpl::cancelUserMediaRequest):
      * WebKitSupport/AboutData.cpp:
      (BlackBerry::WebKit::dumpJSCTypeCountSetToTableHTML):
      * WebKitSupport/FrameLayers.cpp:
      (BlackBerry::WebKit::FrameLayers::removeLayerByFrame):
      (BlackBerry::WebKit::FrameLayers::commitOnWebKitThread):
      (BlackBerry::WebKit::FrameLayers::calculateRootLayer):
      
      Source/WebKit/chromium: 
      
      * src/WebGeolocationPermissionRequestManager.cpp:
      (WebGeolocationPermissionRequestManager::remove):
      * src/WebIDBMetadata.cpp:
      (WebKit::WebIDBMetadata::WebIDBMetadata):
      * src/WebIntent.cpp:
      (WebKit::WebIntent::extrasValue):
      * tests/MemoryInstrumentationTest.cpp:
      * tests/WebSocketExtensionDispatcherTest.cpp:
      (WebCore::TEST_F):
      
      Source/WebKit/efl: 
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::evaluateScriptInIsolatedWorld):
      * WebCoreSupport/PlatformStrategiesEfl.cpp:
      (PlatformStrategiesEfl::getPluginInfo):
      * ewk/ewk_intent.cpp:
      (ewk_intent_extra_get):
      
      Source/WebKit/gtk: 
      
      * WebCoreSupport/PlatformStrategiesGtk.cpp:
      (PlatformStrategiesGtk::getPluginInfo):
      * webkit/webkitfavicondatabase.cpp:
      (webkitFaviconDatabaseImportFinished):
      * webkit/webkitwebplugin.cpp:
      (webkit_web_plugin_get_mimetypes):
      
      Source/WebKit/mac: 
      
      * History/WebHistory.mm:
      (-[WebHistoryPrivate removeItemFromDateCaches:]):
      (-[WebHistoryPrivate orderedLastVisitedDays]):
      (WebHistoryWriter::WebHistoryWriter):
      * Misc/WebCoreStatistics.mm:
      (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
      (+[WebCoreStatistics javaScriptObjectTypeCounts]):
      * Plugins/Hosted/NetscapePluginHostManager.mm:
      (WebKit::NetscapePluginHostManager::hostForPlugin):
      (WebKit::NetscapePluginHostManager::pluginHostDied):
      (WebKit::NetscapePluginHostManager::didCreateWindow):
      * Plugins/Hosted/NetscapePluginHostProxy.mm:
      (WebKit::NetscapePluginHostProxy::pluginHostDied):
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
      (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
      (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
      (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
      (WebKit::NetscapePluginInstanceProxy::destroy):
      (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
      (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
      * Plugins/Hosted/ProxyInstance.mm:
      (WebKit::ProxyInstance::methodNamed):
      (WebKit::ProxyInstance::fieldNamed):
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView stopTimers]):
      (-[WebNetscapePluginView startTimers]):
      * WebCoreSupport/WebNotificationClient.mm:
      (WebNotificationClient::show):
      (WebNotificationClient::clearNotifications):
      (WebNotificationClient::notificationObjectDestroyed):
      * WebView/WebHTMLView.mm:
      (commandNameForSelector):
      
      Source/WebKit/qt: 
      
      * Api/qwebpage.cpp:
      (extractContentTypeFromPluginVector):
      * Api/qwebplugindatabase.cpp:
      (QWebPluginInfo::mimeTypes):
      * WebCoreSupport/PlatformStrategiesQt.cpp:
      (PlatformStrategiesQt::getPluginInfo):
      
      Source/WebKit/win: 
      
      * COMPropertyBag.h:
      (::Read):
      (::GetPropertyInfo):
      * WebCoreStatistics.cpp:
      (WebCoreStatistics::javaScriptProtectedObjectTypeCounts):
      * WebCoreSupport/WebPlatformStrategies.cpp:
      (WebPlatformStrategies::getPluginInfo):
      * WebHistory.cpp:
      (WebHistory::removeItemFromDateCaches):
      * WebKitCOMAPI.cpp:
      (classFactory):
      * WebKitStatistics.cpp:
      (WebKitStatistics::comClassNameCounts):
      * WebNotificationCenter.cpp:
      (WebNotificationCenter::postNotificationInternal):
      (WebNotificationCenter::addObserver):
      (WebNotificationCenter::removeObserver):
      
      Source/WebKit/wince: 
      
      * WebCoreSupport/PlatformStrategiesWinCE.cpp:
      (PlatformStrategiesWinCE::getPluginInfo):
      
      Source/WebKit2: 
      
      * Platform/CoreIPC/ArgumentCoders.h:
      * Platform/CoreIPC/Connection.cpp:
      (CoreIPC::Connection::SyncMessageState::getOrCreate):
      (CoreIPC::Connection::waitForMessage):
      (CoreIPC::Connection::processIncomingMessage):
      * Platform/gtk/WorkQueueGtk.cpp:
      (WorkQueue::registerEventSourceHandler):
      (WorkQueue::unregisterEventSourceHandler):
      * Platform/mac/WorkQueueMac.cpp:
      (WorkQueue::unregisterMachPortEventHandler):
      * Shared/Plugins/NPRemoteObjectMap.cpp:
      (WebKit::NPRemoteObjectMap::pluginDestroyed):
      * Shared/UserMessageCoders.h:
      (WebKit::UserMessageEncoder::baseEncode):
      * Shared/WebPreferencesStore.cpp:
      (WebKit::valueForKey):
      (WebKit::WebPreferencesStore::getBoolValueForKey):
      * Shared/mac/WebCoreArgumentCodersMac.mm:
      (CoreIPC::::decode):
      * Shared/qt/ArgumentCodersQt.cpp:
      (CoreIPC::::decode):
      * Shared/soup/WebCoreArgumentCodersSoup.cpp:
      (CoreIPC::::decode):
      * UIProcess/API/efl/ewk_back_forward_list.cpp:
      (_Ewk_Back_Forward_List::~_Ewk_Back_Forward_List):
      * UIProcess/API/efl/ewk_context.cpp:
      (_Ewk_Context::~_Ewk_Context):
      * UIProcess/API/efl/ewk_view.cpp:
      (_ewk_view_priv_loading_resources_clear):
      * UIProcess/API/gtk/WebKitWebView.cpp:
      (webkit_web_view_get_subresources):
      * UIProcess/API/gtk/WebKitWebViewBase.cpp:
      (webkitWebViewBaseContainerForall):
      * UIProcess/API/mac/WKPrintingView.mm:
      (-[WKPrintingView _expectedPreviewCallbackForRect:]):
      (pageDidDrawToPDF):
      (-[WKPrintingView _drawPreview:]):
      * UIProcess/API/mac/WKView.mm:
      (commandNameForSelector):
      (-[WKView validateUserInterfaceItem:]):
      * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp:
      (WebKit::CoordinatedBackingStore::updateTile):
      (WebKit::CoordinatedBackingStore::texture):
      (WebKit::CoordinatedBackingStore::paintToTextureMapper):
      (WebKit::CoordinatedBackingStore::commitTileOperations):
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
      (WebKit::LayerTreeCoordinatorProxy::updateTileForLayer):
      * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
      (WebKit::LayerTreeRenderer::adjustPositionForFixedLayers):
      (WebKit::LayerTreeRenderer::syncCanvas):
      (WebKit::LayerTreeRenderer::setLayerChildren):
      (WebKit::LayerTreeRenderer::setLayerFilters):
      (WebKit::LayerTreeRenderer::setLayerState):
      (WebKit::LayerTreeRenderer::assignImageToLayer):
      * UIProcess/GeolocationPermissionRequestManagerProxy.cpp:
      (WebKit::GeolocationPermissionRequestManagerProxy::invalidateRequests):
      * UIProcess/InspectorServer/WebInspectorServer.cpp:
      (WebKit::WebInspectorServer::~WebInspectorServer):
      (WebKit::WebInspectorServer::registerPage):
      * UIProcess/InspectorServer/WebSocketServerConnection.cpp:
      (WebKit::WebSocketServerConnection::sendHTTPResponseHeader):
      * UIProcess/InspectorServer/qt/WebInspectorServerQt.cpp:
      (WebKit::WebInspectorServer::buildPageList):
      * UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp:
      (WebKit::NotificationPermissionRequestManagerProxy::invalidateRequests):
      * UIProcess/Plugins/PluginProcessProxy.cpp:
      (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch):
      * UIProcess/WebContext.cpp:
      (WebKit::createDictionaryFromHashMap):
      * UIProcess/WebIconDatabase.cpp:
      (WebKit::WebIconDatabase::didFinishURLImport):
      * UIProcess/WebIntentData.cpp:
      (WebKit::WebIntentData::extras):
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess):
      (WebKit::WebProcessProxy::addBackForwardItem):
      (WebKit::WebProcessProxy::frameCountInPage):
      * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
      (WebKit::GeolocationPermissionRequestManager::cancelRequestForGeolocation):
      (WebKit::GeolocationPermissionRequestManager::didReceiveGeolocationPermissionDecision):
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      (WebKit::InjectedBundleNodeHandle::getOrCreate):
      * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
      (WebKit::InjectedBundleRangeHandle::getOrCreate):
      * WebProcess/InjectedBundle/InjectedBundleIntent.cpp:
      (WebKit::InjectedBundleIntent::extras):
      * WebProcess/Notifications/WebNotificationManager.cpp:
      (WebKit::WebNotificationManager::policyForOrigin):
      (WebKit::WebNotificationManager::show):
      (WebKit::WebNotificationManager::clearNotifications):
      (WebKit::WebNotificationManager::removeNotificationFromContextMap):
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      (WebKit::NPRuntimeObjectMap::invalidate):
      * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
      (WebKit::NetscapePlugin::destroyStream):
      (WebKit::NetscapePlugin::frameDidFinishLoading):
      (WebKit::NetscapePlugin::frameDidFail):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::buildHTTPHeaders):
      (WebKit::PluginView::~PluginView):
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
      (WebCore::CoordinatedGraphicsLayer::layerByID):
      * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
      (WebKit::LayerTreeCoordinator::adoptImageBackingStore):
      (WebKit::LayerTreeCoordinator::releaseImageBackingStore):
      * WebProcess/WebPage/WebBackForwardListProxy.cpp:
      (WebKit::WebBackForwardListProxy::removeItem):
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::commandNameForSelectorName):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::visitedLinkStateChanged):
      (WebKit::WebProcess::allVisitedLinkStateChanged):
      (WebKit::WebProcess::focusedWebPage):
      (WebKit::WebProcess::createWebPage):
      (WebKit::WebProcess::webPageGroup):
      (WebKit::fromCountedSetToHashMap):
      (WebKit::WebProcess::setTextCheckerState):
      
      Source/WTF: 
      
      Currently HashMap iterators follow the same interface in std::map: given an
      iterator it, we use it->first to access the key and it->second to access the
      value. This patch changes these accesses to it->key and it->value, improving the
      readability at call sites.
      
      One potential downside of this change would be the confusion between std::map and
      HashMap interfaces. However, they are already different in other aspects and the
      usage of std::map is more an exception than a rule in WebKit code, so we consider
      the confusion will be less likely to happen.
      
      * wtf/HashCountedSet.h:
      (WTF::::add):
      (WTF::::remove):
      (WTF::copyToVector):
      * wtf/HashIterators.h:
      (WTF::HashTableConstKeysIterator::get):
      (WTF::HashTableConstValuesIterator::get):
      (WTF::HashTableKeysIterator::get):
      (WTF::HashTableValuesIterator::get):
      * wtf/HashMap.h:
      (WTF::KeyValuePairKeyExtractor::extract):
      (WTF::HashMapValueTraits::isEmptyValue):
      (WTF::HashMapTranslator::translate):
      (WTF::HashMapTranslatorAdapter::translate):
      (WTF::::set):
      (WTF::::get):
      (WTF::::take):
      (WTF::operator==):
      (WTF::deleteAllValues):
      (WTF::deleteAllKeys):
      Removed deleteAllPairFirsts() and deleteAllPairSeconds() since they are now unused.
      
      * wtf/HashTable.h:
      (WTF::hashTableSwap):
      (WTF::::checkTableConsistencyExceptSize):
      * wtf/HashTraits.h:
      (WTF):
      (WTF::KeyValuePair::KeyValuePair):
      (KeyValuePair):
      (WTF::KeyValuePairHashTraits::constructDeletedValue):
      (WTF::KeyValuePairHashTraits::isDeletedValue):
      * wtf/MetaAllocator.cpp:
      (WTF::MetaAllocator::addFreeSpace):
      (WTF::MetaAllocator::incrementPageOccupancy):
      (WTF::MetaAllocator::decrementPageOccupancy):
      * wtf/RefCountedLeakCounter.cpp:
      (WTF::RefCountedLeakCounter::~RefCountedLeakCounter):
      * wtf/RefPtrHashMap.h:
      (WTF::::set):
      (WTF::::get):
      (WTF::::inlineGet):
      (WTF::::take):
      * wtf/Spectrum.h:
      (WTF::Spectrum::add):
      (WTF::Spectrum::get):
      (WTF::Spectrum::buildList):
      * wtf/ThreadingPthreads.cpp:
      (WTF::identifierByPthreadHandle):
      
      Tools: 
      
      * DumpRenderTree/chromium/MockWebSpeechInputController.cpp:
      (MockWebSpeechInputController::addMockRecognitionResult):
      * DumpRenderTree/chromium/NotificationPresenter.cpp:
      (NotificationPresenter::simulateClick):
      (NotificationPresenter::show):
      * DumpRenderTree/chromium/TestRunner/CppBoundClass.cpp:
      (CppBoundClass::~CppBoundClass):
      (CppBoundClass::invoke):
      (CppBoundClass::getProperty):
      (CppBoundClass::setProperty):
      (CppBoundClass::bindCallback):
      (CppBoundClass::bindProperty):
      * DumpRenderTree/chromium/WebPreferences.cpp:
      (applyFontMap):
      * DumpRenderTree/chromium/WebViewHost.cpp:
      (WebViewHost::printResourceDescription):
      * DumpRenderTree/mac/TestRunnerMac.mm:
      (worldIDForWorld):
      (TestRunner::evaluateScriptInIsolatedWorld):
      * DumpRenderTree/win/AccessibilityControllerWin.cpp:
      (AccessibilityController::~AccessibilityController):
      (AccessibilityController::winNotificationReceived):
      * DumpRenderTree/win/ResourceLoadDelegate.cpp:
      (ResourceLoadDelegate::descriptionSuitableForTestResult):
      * DumpRenderTree/win/TestRunnerWin.cpp:
      (worldIDForWorld):
      (TestRunner::evaluateScriptInIsolatedWorld):
      * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp:
      (TestWebKitAPI::DOMWindowExtensionBasic::willDestroyPage):
      * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp:
      (TestWebKitAPI::DOMWindowExtensionNoCache::willDestroyPage):
      * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
      (WTR::TestRunner::worldIDForWorld):
      (WTR::TestRunner::evaluateScriptInIsolatedWorld):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee554054
  3. 04 Oct, 2012 3 commits
    • commit-queue@webkit.org's avatar
      Change RTCPeerConnection GetStats to use Date timestamp format · 223797fd
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=98263
      
      Patch by Harald Alvestrand <hta@google.com> on 2012-10-04
      Reviewed by Yury Semikhatsky.
      
      Source/Platform:
      
      * chromium/public/WebRTCStatsResponse.h:
      (WebRTCStatsResponse):
      
      Source/WebCore:
      
      Tested by extension to RTCPeerConnection-stats test.
      
      * Modules/mediastream/RTCStatsElement.cpp:
      (WebCore::RTCStatsElement::create):
      (WebCore::RTCStatsElement::RTCStatsElement):
      * Modules/mediastream/RTCStatsElement.h: long -> double
      (RTCStatsElement):
      (WebCore::RTCStatsElement::timestamp):
      * Modules/mediastream/RTCStatsElement.idl: long -> Date
      * Modules/mediastream/RTCStatsReport.cpp:
      (WebCore::RTCStatsReport::addElement):
      * Modules/mediastream/RTCStatsReport.h:
      (RTCStatsReport):
      * Modules/mediastream/RTCStatsResponse.cpp:
      (WebCore::RTCStatsResponse::addElement):
      * Modules/mediastream/RTCStatsResponse.h:
      (RTCStatsResponse):
      * platform/chromium/support/WebRTCStatsResponse.cpp:
      (WebKit::WebRTCStatsResponse::addElement):
      * platform/mediastream/RTCStatsResponseBase.h:
      (RTCStatsResponseBase):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::getStats):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-stats-expected.txt:
      * fast/mediastream/RTCPeerConnection-stats.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130383 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      223797fd
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r130377. · 82e3c909
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/130377
      https://bugs.webkit.org/show_bug.cgi?id=98392
      
      Chromium Win compilation is broken (Requested by yurys on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-10-04
      
      Source/Platform:
      
      * chromium/public/WebRTCStatsResponse.h:
      (WebRTCStatsResponse):
      
      Source/WebCore:
      
      * Modules/mediastream/RTCStatsElement.cpp:
      (WebCore::RTCStatsElement::create):
      (WebCore::RTCStatsElement::RTCStatsElement):
      * Modules/mediastream/RTCStatsElement.h:
      (RTCStatsElement):
      (WebCore::RTCStatsElement::timestamp):
      * Modules/mediastream/RTCStatsElement.idl:
      * Modules/mediastream/RTCStatsReport.cpp:
      (WebCore::RTCStatsReport::addElement):
      * Modules/mediastream/RTCStatsReport.h:
      (RTCStatsReport):
      * Modules/mediastream/RTCStatsResponse.cpp:
      (WebCore::RTCStatsResponse::addElement):
      * Modules/mediastream/RTCStatsResponse.h:
      (RTCStatsResponse):
      * platform/chromium/support/WebRTCStatsResponse.cpp:
      (WebKit::WebRTCStatsResponse::addElement):
      * platform/mediastream/RTCStatsResponseBase.h:
      (RTCStatsResponseBase):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::getStats):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-stats-expected.txt:
      * fast/mediastream/RTCPeerConnection-stats.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82e3c909
    • commit-queue@webkit.org's avatar
      Change RTCPeerConnection GetStats to use Date timestamp format · da7accae
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=98263
      
      Patch by Harald Alvestrand <hta@google.com> on 2012-10-04
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebRTCStatsResponse.h:
      (WebRTCStatsResponse):
      
      Source/WebCore:
      
      Tested by extension to RTCPeerConnection-stats test.
      
      * Modules/mediastream/RTCStatsElement.cpp:
      (WebCore::RTCStatsElement::create):
      (WebCore::RTCStatsElement::RTCStatsElement):
      * Modules/mediastream/RTCStatsElement.h: long -> double
      (RTCStatsElement):
      (WebCore::RTCStatsElement::timestamp):
      * Modules/mediastream/RTCStatsElement.idl: long -> Date
      * Modules/mediastream/RTCStatsReport.cpp:
      (WebCore::RTCStatsReport::addElement):
      * Modules/mediastream/RTCStatsReport.h:
      (RTCStatsReport):
      * Modules/mediastream/RTCStatsResponse.cpp:
      (WebCore::RTCStatsResponse::addElement):
      * Modules/mediastream/RTCStatsResponse.h:
      (RTCStatsResponse):
      * platform/chromium/support/WebRTCStatsResponse.cpp:
      (WebKit::WebRTCStatsResponse::addElement):
      * platform/mediastream/RTCStatsResponseBase.h:
      (RTCStatsResponseBase):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::getStats):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-stats-expected.txt:
      * fast/mediastream/RTCPeerConnection-stats.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da7accae
  4. 03 Oct, 2012 2 commits
    • tommyw@google.com's avatar
      MediaStream API: RTCPeerConnection should send down its handler via the... · 46689138
      tommyw@google.com authored
      MediaStream API: RTCPeerConnection should send down its handler via the FrameLoaderClient directly after creation.
      https://bugs.webkit.org/show_bug.cgi?id=98149
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      The chromium implementation needs to know which Frame created a PeerConnection so
      that the right housekeeping can take place correctly.
      
      Not testable in DRT, but have verified the change manually and with our pyautotests.
      
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      * loader/FrameLoaderClient.h:
      (WebCore):
      (FrameLoaderClient):
      (WebCore::FrameLoaderClient::dispatchWillStartUsingPeerConnectionHandler):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::toWebRTCPeerConnectionHandler):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerChromium::RTCPeerConnectionHandlerChromium):
      (WebCore::RTCPeerConnectionHandlerChromium::initialize):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Source/WebKit/chromium:
      
      Adding willStartUsingPeerConnectionHandler to the WebFrameClient.
      
      * public/WebFrameClient.h:
      (WebKit):
      (WebFrameClient):
      (WebKit::WebFrameClient::willStartUsingPeerConnectionHandler):
      * src/FrameLoaderClientImpl.cpp:
      (WebKit):
      (WebKit::FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler):
      * src/FrameLoaderClientImpl.h:
      (FrameLoaderClientImpl):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46689138
    • commit-queue@webkit.org's avatar
      Add data passing to the GetStats interface of RTCPeerConnection · 301e929c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=98003
      
      Patch by Harald Alvestrand <hta@google.com> on 2012-10-03
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/WebRTCStatsRequest.h:
      (WebKit):
      (WebRTCStatsRequest):
      * chromium/public/WebRTCStatsResponse.h: Added.
      (WebCore):
      (WebKit):
      (WebRTCStatsResponse):
      (WebKit::WebRTCStatsResponse::WebRTCStatsResponse):
      (WebKit::WebRTCStatsResponse::~WebRTCStatsResponse):
      (WebKit::WebRTCStatsResponse::operator=):
      
      Source/WebCore:
      
      Added an RTCStatsResponseBase interface to platform, and let the
      RTCStatsRequestImpl class produce an implementation of it that's returned
      to WebCore.
      
      Tested by extension of the RTCPeerConnection-stats.html test.
      
      * Modules/mediastream/RTCStatsElement.cpp:
      (WebCore::RTCStatsElement::addStatistic):
      (WebCore):
      * Modules/mediastream/RTCStatsElement.h:
      (RTCStatsElement):
      * Modules/mediastream/RTCStatsReport.cpp:
      (WebCore):
      (WebCore::RTCStatsReport::addElement):
      (WebCore::RTCStatsReport::addStatistic):
      * Modules/mediastream/RTCStatsReport.h:
      (RTCStatsReport):
      * Modules/mediastream/RTCStatsRequestImpl.cpp:
      (WebCore::RTCStatsRequestImpl::createResponse):
      (WebCore):
      (WebCore::RTCStatsRequestImpl::requestSucceeded):
      * Modules/mediastream/RTCStatsRequestImpl.h:
      (RTCStatsRequestImpl):
      * Modules/mediastream/RTCStatsResponse.cpp:
      (WebCore::RTCStatsResponse::create):
      (WebCore::RTCStatsResponse::addReport):
      (WebCore):
      (WebCore::RTCStatsResponse::addElement):
      (WebCore::RTCStatsResponse::addStatistic):
      * Modules/mediastream/RTCStatsResponse.h:
      (RTCStatsResponse):
      * WebCore.gypi:
      * platform/chromium/support/WebRTCStatsRequest.cpp:
      (WebKit::WebRTCStatsRequest::response):
      (WebKit):
      (WebKit::WebRTCStatsRequest::requestSucceeded):
      * platform/chromium/support/WebRTCStatsResponse.cpp: Added.
      (WebKit):
      (WebKit::WebRTCStatsResponse::WebRTCStatsResponse):
      (WebKit::WebRTCStatsResponse::assign):
      (WebKit::WebRTCStatsResponse::reset):
      (WebKit::WebRTCStatsResponse::operator WTF::PassRefPtr<WebCore::RTCStatsResponseBase>):
      (WebKit::WebRTCStatsResponse::addReport):
      (WebKit::WebRTCStatsResponse::addElement):
      (WebKit::WebRTCStatsResponse::addStatistic):
      * platform/mediastream/RTCStatsRequest.h:
      (WebCore):
      (RTCStatsRequest):
      * platform/mediastream/RTCStatsResponseBase.h: Added.
      (WebCore):
      (RTCStatsResponseBase):
      (WebCore::RTCStatsResponseBase::~RTCStatsResponseBase):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (RTCStatsRequestSucceededTask::RTCStatsRequestSucceededTask):
      (MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler):
      (MockWebRTCPeerConnectionHandler::addStream):
      (MockWebRTCPeerConnectionHandler::removeStream):
      (MockWebRTCPeerConnectionHandler::getStats):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-stats-expected.txt:
      * fast/mediastream/RTCPeerConnection-stats.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      301e929c
  5. 28 Sep, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Implement the GetStats interface on PeerConnection · a26152d0
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95193
      
      Source/Platform:
      
      Patch by Harald Tveit Alvestrand <harald@alvestrand.no> on 2012-09-28
      Reviewed by Adam Barth.
      
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      (WebKit::WebRTCPeerConnectionHandler::getStats):
      * chromium/public/WebRTCStatsRequest.h: added.
      (WebCore):
      (WebKit):
      (WebRTCStatsRequest):
      (WebKit::WebRTCStatsRequest::WebRTCStatsRequest):
      (WebKit::WebRTCStatsRequest::~WebRTCStatsRequest):
      (WebKit::WebRTCStatsRequest::operator=):
      
      Source/WebCore:
      
      Specification:
      http://dev.w3.org/2011/webrtc/editor/webrtc-20120920.html
      
      Patch by Harald Tveit Alvestrand <harald@alvestrand.no> on 2012-09-28
      Reviewed by Adam Barth.
      
      The implementation consists of a pure virtual platform object
      (RTCStatsRequest) that is implemented in WebCore, and stores
      its information in a straightforward data hierarchy.
      This patch adds the call path and the storage structures.
      It does not add filling in data.
      
      Test: fast/mediastream/RTCPeerConnection-stats.html
      
      * CMakeLists.txt:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::getStats):
      (WebCore):
      * Modules/mediastream/RTCPeerConnection.h:
      (WebCore):
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCStatsCallback.h: Added.
      (WebCore):
      (RTCStatsCallback):
      (WebCore::RTCStatsCallback::~RTCStatsCallback):
      * Modules/mediastream/RTCStatsCallback.idl: Added.
      * Modules/mediastream/RTCStatsElement.cpp: Added.
      (WebCore):
      (WebCore::RTCStatsElement::create):
      (WebCore::RTCStatsElement::RTCStatsElement):
      (WebCore::RTCStatsElement::stat):
      * Modules/mediastream/RTCStatsElement.h: Added.
      (WebCore):
      (RTCStatsElement):
      * Modules/mediastream/RTCStatsElement.idl: Added.
      * Modules/mediastream/RTCStatsReport.cpp: Added.
      (WebCore):
      (WebCore::RTCStatsReport::create):
      (WebCore::RTCStatsReport::RTCStatsReport):
      * Modules/mediastream/RTCStatsReport.h: Added.
      (WebCore):
      (RTCStatsReport):
      (WebCore::RTCStatsReport::local):
      (WebCore::RTCStatsReport::remote):
      * Modules/mediastream/RTCStatsReport.idl: Added.
      * Modules/mediastream/RTCStatsRequestImpl.cpp: Added.
      (WebCore):
      (WebCore::RTCStatsRequestImpl::create):
      (WebCore::RTCStatsRequestImpl::RTCStatsRequestImpl):
      (WebCore::RTCStatsRequestImpl::~RTCStatsRequestImpl):
      (WebCore::RTCStatsRequestImpl::requestSucceeded):
      (WebCore::RTCStatsRequestImpl::stop):
      (WebCore::RTCStatsRequestImpl::clear):
      * Modules/mediastream/RTCStatsRequestImpl.h: Added.
      (WebCore):
      (RTCStatsRequestImpl):
      * Modules/mediastream/RTCStatsResponse.cpp: Added.
      (WebCore):
      (WebCore::RTCStatsResponse::create):
      (WebCore::RTCStatsResponse::RTCStatsResponse):
      * Modules/mediastream/RTCStatsResponse.h: Added.
      (WebCore):
      (RTCStatsResponse):
      (WebCore::RTCStatsResponse::result):
      * Modules/mediastream/RTCStatsResponse.idl: Added.
      * WebCore.gypi:
      * platform/chromium/support/WebRTCStatsRequest.cpp: Copied from Source/Platform/chromium/public/WebRTCPeerConnectionHandler.h.
      (WebKit):
      (WebKit::WebRTCStatsRequest::WebRTCStatsRequest):
      (WebKit::WebRTCStatsRequest::assign):
      (WebKit::WebRTCStatsRequest::reset):
      (WebKit::WebRTCStatsRequest::requestSucceeded):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCStatsRequest.h: Copied from Source/WebCore/platform/mediastream/RTCPeerConnectionHandler.h.
      (WebCore):
      (RTCStatsRequest):
      (WebCore::RTCStatsRequest::~RTCStatsRequest):
      (WebCore::RTCStatsRequest::RTCStatsRequest):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::getStats):
      (WebCore):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      Patch by Harald Tveit Alvestrand <harald@alvestrand.no> on 2012-09-28
      Reviewed by Adam Barth.
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (RTCStatsRequestSucceededTask):
      (RTCStatsRequestSucceededTask::RTCStatsRequestSucceededTask):
      (MockWebRTCPeerConnectionHandler::getStats):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      Patch by Harald Tveit Alvestrand <harald@alvestrand.no> on 2012-09-28
      Reviewed by Adam Barth.
      
      * fast/mediastream/RTCPeerConnection-stats-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-stats.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a26152d0
  6. 27 Sep, 2012 2 commits
    • tommyw@google.com's avatar
      MediaStream API: Enhance MediaConstraints to make it easier to get the constraint data · 92f9e85d
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=97559
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      Refactored to mimic the new MediaConstraints api.
      
      * chromium/public/WebMediaConstraints.h:
      (WebCore):
      (WebKit::WebMediaConstraint::WebMediaConstraint):
      (WebMediaConstraint):
      (WebKit):
      (WebMediaConstraints):
      
      Source/WebCore:
      
      Instead of just returning the names, return a pair of name and value.
      
      Existing tests cover this patch.
      
      * Modules/mediastream/MediaConstraintsImpl.cpp:
      (WebCore::MediaConstraintsImpl::initialize):
      (WebCore::MediaConstraintsImpl::getMandatoryConstraints):
      (WebCore::MediaConstraintsImpl::getOptionalConstraints):
      (WebCore::MediaConstraintsImpl::getOptionalConstraintValue):
      * Modules/mediastream/MediaConstraintsImpl.h:
      (MediaConstraintsImpl):
      * platform/chromium/support/WebMediaConstraints.cpp:
      (WebKit::WebMediaConstraint::WebMediaConstraint):
      (WebKit):
      (WebKit::WebMediaConstraints::getMandatoryConstraints):
      (WebKit::WebMediaConstraints::getOptionalConstraints):
      * platform/mediastream/MediaConstraints.h:
      (WebCore::MediaConstraint::MediaConstraint):
      (MediaConstraint):
      (WebCore):
      (MediaConstraints):
      
      Tools:
      
      Refactoring for the new WebMediaConstraints api.
      
      * DumpRenderTree/chromium/MockConstraints.cpp:
      (MockConstraints::verify):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92f9e85d
    • tommyw@google.com's avatar
      MediaStream API: Update getUserMedia to match the latest specification · c12a3b57
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=97540
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebMediaConstraints.h:
      (WebMediaConstraints):
      
      Source/WebCore:
      
      http://dev.w3.org/2011/webrtc/editor/getusermedia.html#navigatorusermedia
      Navigator.getUserMedia is changed so that the audio and video members can either
      be a bool or a constraints object.
      
      Existing tests expanded to cover the new change.
      
      * Modules/mediastream/MediaConstraintsImpl.cpp:
      (WebCore::MediaConstraintsImpl::create):
      (WebCore):
      * Modules/mediastream/MediaConstraintsImpl.h:
      (MediaConstraintsImpl):
      * Modules/mediastream/NavigatorMediaStream.cpp:
      (WebCore::NavigatorMediaStream::webkitGetUserMedia):
      * Modules/mediastream/UserMediaRequest.cpp:
      (WebCore::parseOptions):
      (WebCore):
      (WebCore::UserMediaRequest::create):
      (WebCore::UserMediaRequest::UserMediaRequest):
      (WebCore::UserMediaRequest::audio):
      (WebCore::UserMediaRequest::video):
      (WebCore::UserMediaRequest::audioConstraints):
      (WebCore::UserMediaRequest::videoConstraints):
      * Modules/mediastream/UserMediaRequest.h:
      (WebCore):
      (UserMediaRequest):
      * platform/chromium/support/WebMediaConstraints.cpp:
      (WebKit::WebMediaConstraints::WebMediaConstraints):
      (WebKit):
      
      Source/WebKit/chromium:
      
      http://dev.w3.org/2011/webrtc/editor/getusermedia.html#navigatorusermedia
      Navigator.getUserMedia is changed so that the audio and video members can either
      be a bool or a constraints object.
      
      * public/WebUserMediaRequest.h:
      (WebKit):
      (WebUserMediaRequest):
      * src/WebUserMediaRequest.cpp:
      (WebKit::WebUserMediaRequest::audioConstraints):
      (WebKit):
      (WebKit::WebUserMediaRequest::videoConstraints):
      
      Tools:
      
      http://dev.w3.org/2011/webrtc/editor/getusermedia.html#navigatorusermedia
      Navigator.getUserMedia is changed so that the audio and video members can either
      be a bool or a constraints object.
      
      * public/WebUserMediaRequest.h:
      (WebKit):
      (WebUserMediaRequest):
      * src/WebUserMediaRequest.cpp:
      (WebKit::WebUserMediaRequest::audioConstraints):
      (WebKit):
      (WebKit::WebUserMediaRequest::videoConstraints):
      
      LayoutTests:
      
      Expanding tests to cover the new getUserMedia behaviour.
      
      * fast/mediastream/getusermedia-expected.txt:
      * fast/mediastream/getusermedia.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c12a3b57
  7. 26 Sep, 2012 2 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r129654. · 88c7df9e
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/129654
      https://bugs.webkit.org/show_bug.cgi?id=97702
      
      breaks chromium windows build (Requested by schenney on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-09-26
      
      Source/Platform:
      
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCStatsRequest.h: Removed.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCPeerConnection.cpp:
      * Modules/mediastream/RTCPeerConnection.h:
      (WebCore):
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCStatsCallback.h: Removed.
      * Modules/mediastream/RTCStatsCallback.idl: Removed.
      * Modules/mediastream/RTCStatsElement.cpp: Removed.
      * Modules/mediastream/RTCStatsElement.h: Removed.
      * Modules/mediastream/RTCStatsElement.idl: Removed.
      * Modules/mediastream/RTCStatsReport.cpp: Removed.
      * Modules/mediastream/RTCStatsReport.h: Removed.
      * Modules/mediastream/RTCStatsReport.idl: Removed.
      * Modules/mediastream/RTCStatsRequestImpl.cpp: Removed.
      * Modules/mediastream/RTCStatsRequestImpl.h: Removed.
      * Modules/mediastream/RTCStatsResponse.cpp: Removed.
      * Modules/mediastream/RTCStatsResponse.h: Removed.
      * Modules/mediastream/RTCStatsResponse.idl: Removed.
      * WebCore.gypi:
      * platform/chromium/support/WebRTCStatsRequest.cpp: Removed.
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCStatsRequest.h: Removed.
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-stats-expected.txt: Removed.
      * fast/mediastream/RTCPeerConnection-stats.html: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88c7df9e
    • commit-queue@webkit.org's avatar
      Implement the GetStats interface on PeerConnection · 82e28ae8
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95193
      
      Source/Platform:
      
      Patch by Harald Tveit Alvestrand <harald@alvestrand.no> on 2012-09-26
      Reviewed by Adam Barth.
      
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      (WebKit::WebRTCPeerConnectionHandler::getStats):
      * chromium/public/WebRTCStatsRequest.h: added.
      (WebCore):
      (WebKit):
      (WebRTCStatsRequest):
      (WebKit::WebRTCStatsRequest::WebRTCStatsRequest):
      (WebKit::WebRTCStatsRequest::~WebRTCStatsRequest):
      (WebKit::WebRTCStatsRequest::operator=):
      
      Source/WebCore:
      
      Specification:
      http://dev.w3.org/2011/webrtc/editor/webrtc-20120920.html
      
      Patch by Harald Tveit Alvestrand <harald@alvestrand.no> on 2012-09-26
      Reviewed by Adam Barth.
      
      The implementation consists of a pure virtual platform object
      (RTCStatsRequest) that is implemented in WebCore, and stores
      its information in a straightforward data hierarchy.
      This patch adds the call path and the storage structures.
      It does not add filling in data.
      
      Test: fast/mediastream/RTCPeerConnection-stats.html
      
      * CMakeLists.txt:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::getStats):
      (WebCore):
      * Modules/mediastream/RTCPeerConnection.h:
      (WebCore):
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCStatsCallback.h: Added.
      (WebCore):
      (RTCStatsCallback):
      (WebCore::RTCStatsCallback::~RTCStatsCallback):
      * Modules/mediastream/RTCStatsCallback.idl: Added.
      * Modules/mediastream/RTCStatsElement.cpp: Added.
      (WebCore):
      (WebCore::RTCStatsElement::create):
      (WebCore::RTCStatsElement::RTCStatsElement):
      (WebCore::RTCStatsElement::stat):
      * Modules/mediastream/RTCStatsElement.h: Added.
      (WebCore):
      (RTCStatsElement):
      * Modules/mediastream/RTCStatsElement.idl: Added.
      * Modules/mediastream/RTCStatsReport.cpp: Added.
      (WebCore):
      (WebCore::RTCStatsReport::create):
      (WebCore::RTCStatsReport::RTCStatsReport):
      * Modules/mediastream/RTCStatsReport.h: Added.
      (WebCore):
      (RTCStatsReport):
      (WebCore::RTCStatsReport::local):
      (WebCore::RTCStatsReport::remote):
      * Modules/mediastream/RTCStatsReport.idl: Added.
      * Modules/mediastream/RTCStatsRequestImpl.cpp: Added.
      (WebCore):
      (WebCore::RTCStatsRequestImpl::create):
      (WebCore::RTCStatsRequestImpl::RTCStatsRequestImpl):
      (WebCore::RTCStatsRequestImpl::~RTCStatsRequestImpl):
      (WebCore::RTCStatsRequestImpl::requestSucceeded):
      (WebCore::RTCStatsRequestImpl::stop):
      (WebCore::RTCStatsRequestImpl::clear):
      * Modules/mediastream/RTCStatsRequestImpl.h: Added.
      (WebCore):
      (RTCStatsRequestImpl):
      * Modules/mediastream/RTCStatsResponse.cpp: Added.
      (WebCore):
      (WebCore::RTCStatsResponse::create):
      (WebCore::RTCStatsResponse::RTCStatsResponse):
      * Modules/mediastream/RTCStatsResponse.h: Added.
      (WebCore):
      (RTCStatsResponse):
      (WebCore::RTCStatsResponse::result):
      * Modules/mediastream/RTCStatsResponse.idl: Added.
      * WebCore.gypi:
      * platform/chromium/support/WebRTCStatsRequest.cpp: Copied from Source/Platform/chromium/public/WebRTCPeerConnectionHandler.h.
      (WebKit):
      (WebKit::WebRTCStatsRequest::WebRTCStatsRequest):
      (WebKit::WebRTCStatsRequest::assign):
      (WebKit::WebRTCStatsRequest::reset):
      (WebKit::WebRTCStatsRequest::requestSucceeded):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCStatsRequest.h: Copied from Source/WebCore/platform/mediastream/RTCPeerConnectionHandler.h.
      (WebCore):
      (RTCStatsRequest):
      (WebCore::RTCStatsRequest::~RTCStatsRequest):
      (WebCore::RTCStatsRequest::RTCStatsRequest):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::getStats):
      (WebCore):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      Patch by Harald Tveit Alvestrand <harald@alvestrand.no> on 2012-09-26
      Reviewed by Adam Barth.
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (RTCStatsRequestSucceededTask):
      (RTCStatsRequestSucceededTask::RTCStatsRequestSucceededTask):
      (MockWebRTCPeerConnectionHandler::getStats):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      Patch by Harald Tveit Alvestrand <harald@alvestrand.no> on 2012-09-26
      Reviewed by Adam Barth.
      
      * fast/mediastream/RTCPeerConnection-stats-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-stats.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82e28ae8
  8. 25 Sep, 2012 2 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r129517. · bcf24f98
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/129517
      https://bugs.webkit.org/show_bug.cgi?id=97582
      
      Link errors in chromium (Requested by alecf on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-09-25
      
      Source/Platform:
      
      * chromium/public/WebMediaConstraints.h:
      (WebMediaConstraints):
      
      Source/WebCore:
      
      * Modules/mediastream/MediaConstraintsImpl.cpp:
      * Modules/mediastream/MediaConstraintsImpl.h:
      * Modules/mediastream/NavigatorMediaStream.cpp:
      (WebCore::NavigatorMediaStream::webkitGetUserMedia):
      * Modules/mediastream/UserMediaRequest.cpp:
      (WebCore::UserMediaRequest::create):
      (WebCore::UserMediaRequest::UserMediaRequest):
      * Modules/mediastream/UserMediaRequest.h:
      (WebCore):
      (UserMediaRequest):
      (WebCore::UserMediaRequest::audio):
      (WebCore::UserMediaRequest::video):
      * platform/chromium/support/WebMediaConstraints.cpp:
      
      Source/WebKit/chromium:
      
      * public/WebUserMediaRequest.h:
      (WebUserMediaRequest):
      * src/WebUserMediaRequest.cpp:
      
      Tools:
      
      * DumpRenderTree/DumpRenderTree.gypi:
      * DumpRenderTree/chromium/MockConstraints.cpp: Removed.
      * DumpRenderTree/chromium/MockConstraints.h: Removed.
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (RTCSessionDescriptionRequestSuccededTask::RTCSessionDescriptionRequestSuccededTask):
      (RTCSessionDescriptionRequestFailedTask::RTCSessionDescriptionRequestFailedTask):
      (RTCVoidRequestTask::RTCVoidRequestTask):
      (isSupportedConstraint):
      (isValidConstraint):
      (MockWebRTCPeerConnectionHandler::initialize):
      * DumpRenderTree/chromium/WebUserMediaClientMock.cpp:
      (WebKit::WebUserMediaClientMock::requestUserMedia):
      * DumpRenderTree/chromium/WebUserMediaClientMock.h:
      (WebKit):
      (WebUserMediaClientMock):
      * DumpRenderTree/chromium/WebViewHost.h:
      (WebKit):
      (WebViewHost):
      
      LayoutTests:
      
      * fast/mediastream/getusermedia-expected.txt:
      * fast/mediastream/getusermedia.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcf24f98
    • tommyw@google.com's avatar
      MediaStream API: Update getUserMedia to match the latest specification · 3cebec07
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=97540
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebMediaConstraints.h:
      (WebMediaConstraints):
      
      Source/WebCore:
      
      http://dev.w3.org/2011/webrtc/editor/getusermedia.html#navigatorusermedia
      Navigator.getUserMedia is changed so that the audio and video members can either
      be a bool or a constraints object.
      
      Existing tests expanded to cover the new change.
      
      * Modules/mediastream/MediaConstraintsImpl.cpp:
      (WebCore::MediaConstraintsImpl::create):
      (WebCore):
      * Modules/mediastream/MediaConstraintsImpl.h:
      (MediaConstraintsImpl):
      * Modules/mediastream/NavigatorMediaStream.cpp:
      (WebCore::NavigatorMediaStream::webkitGetUserMedia):
      * Modules/mediastream/UserMediaRequest.cpp:
      (WebCore::parseOptions):
      (WebCore):
      (WebCore::UserMediaRequest::create):
      (WebCore::UserMediaRequest::UserMediaRequest):
      (WebCore::UserMediaRequest::audio):
      (WebCore::UserMediaRequest::video):
      (WebCore::UserMediaRequest::audioConstraints):
      (WebCore::UserMediaRequest::videoConstraints):
      * Modules/mediastream/UserMediaRequest.h:
      (WebCore):
      (UserMediaRequest):
      * platform/chromium/support/WebMediaConstraints.cpp:
      (WebKit::WebMediaConstraints::WebMediaConstraints):
      (WebKit):
      
      Source/WebKit/chromium:
      
      http://dev.w3.org/2011/webrtc/editor/getusermedia.html#navigatorusermedia
      Navigator.getUserMedia is changed so that the audio and video members can either
      be a bool or a constraints object.
      
      * public/WebUserMediaRequest.h:
      (WebKit):
      (WebUserMediaRequest):
      * src/WebUserMediaRequest.cpp:
      (WebKit::WebUserMediaRequest::audioConstraints):
      (WebKit):
      (WebKit::WebUserMediaRequest::videoConstraints):
      
      Tools:
      
      Adding mock support for the enhanced getUserMedia call.
      
      * DumpRenderTree/DumpRenderTree.gypi:
      * DumpRenderTree/chromium/MockConstraints.cpp: Copied from Source/WebCore/platform/chromium/support/WebMediaConstraints.cpp.
      (MockConstraints):
      (MockConstraints::isSupported):
      (MockConstraints::isValid):
      (MockConstraints::verify):
      * DumpRenderTree/chromium/MockConstraints.h: Copied from Tools/DumpRenderTree/chromium/WebUserMediaClientMock.h.
      (WebKit):
      (MockConstraints):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (RTCSessionDescriptionRequestSuccededTask::RTCSessionDescriptionRequestSuccededTask):
      (RTCSessionDescriptionRequestFailedTask::RTCSessionDescriptionRequestFailedTask):
      (RTCVoidRequestTask::RTCVoidRequestTask):
      (MockWebRTCPeerConnectionHandler::initialize):
      * DumpRenderTree/chromium/WebUserMediaClientMock.cpp:
      (UserMediaRequestTask):
      (UserMediaRequestTask::UserMediaRequestTask):
      (WebUserMediaClientMock::requestUserMedia):
      * DumpRenderTree/chromium/WebUserMediaClientMock.h:
      (WebUserMediaClientMock):
      (WebUserMediaClientMock::taskList):
      * DumpRenderTree/chromium/WebViewHost.h:
      (WebKit):
      (WebViewHost):
      
      LayoutTests:
      
      Expanding tests to cover the new getUserMedia behaviour.
      
      * fast/mediastream/getusermedia-expected.txt:
      * fast/mediastream/getusermedia.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3cebec07
  9. 24 Sep, 2012 1 commit
  10. 20 Sep, 2012 1 commit
    • tommyw@google.com's avatar
      MediaStream API: Extend UserMediaRequest with a ownerDocument method · dd466b63
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=97095
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Chromium need to know exactly which frame called getUserMedia so that it can
      clean away the stream when the frame goes away.
      Since that information is available in webkit add an accessor method.
      
      Chromium mock class extended to test the added method.
      
      * Modules/mediastream/UserMediaRequest.cpp:
      (WebCore::UserMediaRequest::ownerDocument):
      (WebCore):
      * Modules/mediastream/UserMediaRequest.h:
      (WebCore):
      (UserMediaRequest):
      
      Source/WebKit/chromium:
      
      Chromium need to know exactly which frame called getUserMedia so that it can clean
      away the stream when the frame goes away.
      Since that information is available in webkit add an accessor method.
      
      Also taking the opportunity to remove an unused deprecated method,
      and adding asserts in case the object is empty.
      
      * public/WebUserMediaRequest.h:
      (WebKit):
      (WebUserMediaRequest):
      * src/WebUserMediaRequest.cpp:
      (WebKit::WebUserMediaRequest::ownerDocument):
      
      Tools:
      
      Extending WebUserMediaClientMock to check that the owning document is valid,
      and that the document has a frame.
      
      * DumpRenderTree/chromium/WebUserMediaClientMock.cpp:
      (WebKit::WebUserMediaClientMock::requestUserMedia):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd466b63
  11. 19 Sep, 2012 1 commit
  12. 11 Sep, 2012 1 commit
    • tommyw@google.com's avatar
      MediaStream API: add RTCPeerConnection::onnegotiationneeded · 1115e6d7
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=96097
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebRTCPeerConnectionHandlerClient.h:
      (WebRTCPeerConnectionHandlerClient):
      
      Source/WebCore:
      
      This patch adds the last callback to RTCPeerConnection: onnegotiationneeded.
      This is called whenever the state in the RTCPeerConnection changes and that
      change needs to be sent to the other side.
      
      Test: fast/mediastream/RTCPeerConnection-onnegotiationneeded.html
      
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::negotiationNeeded):
      (WebCore):
      * Modules/mediastream/RTCPeerConnection.h:
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * dom/EventNames.h:
      (WebCore):
      * platform/mediastream/RTCPeerConnectionHandlerClient.h:
      (RTCPeerConnectionHandlerClient):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::negotiationNeeded):
      (WebCore):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::addStream):
      (MockWebRTCPeerConnectionHandler::removeStream):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-onnegotiationneeded-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-onnegotiationneeded.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1115e6d7
  13. 07 Sep, 2012 1 commit
    • tommyw@google.com's avatar
      MediaStream API: add RTCPeerConnection::createAnswer · dc58106d
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=96092
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebRTCPeerConnectionHandler):
      
      Source/WebCore:
      
      Test: fast/mediastream/RTCPeerConnection-createAnswer.html
      
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::createAnswer):
      (WebCore):
      * Modules/mediastream/RTCPeerConnection.h:
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::createAnswer):
      (WebCore):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (RTCPeerConnectionHandler):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::createAnswer):
      (WebCore):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      Expanding and enhancing MockWebRTCPeerConnectionHandler.
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::createOffer):
      (MockWebRTCPeerConnectionHandler::createAnswer):
      (MockWebRTCPeerConnectionHandler::setLocalDescription):
      (MockWebRTCPeerConnectionHandler::setRemoteDescription):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-createAnswer-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-createAnswer.html: Added.
      * fast/mediastream/RTCPeerConnection-createOffer-expected.txt:
      * fast/mediastream/RTCPeerConnection-createOffer.html:
      * fast/mediastream/RTCPeerConnection-localDescription-expected.txt:
      * fast/mediastream/RTCPeerConnection-localDescription.html:
      * fast/mediastream/RTCPeerConnection-remoteDescription-expected.txt:
      * fast/mediastream/RTCPeerConnection-remoteDescription.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc58106d
  14. 06 Sep, 2012 3 commits
    • tommyw@google.com's avatar
      MediaStream API: Add the local and remote description functionality to RTCPeerConnection · edf57541
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95839
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCVoidRequest.h: Copied from Source/Platform/chromium/public/WebRTCPeerConnectionHandler.h.
      (WebCore):
      (WebKit):
      (WebRTCVoidRequest):
      (ExtraData):
      (WebKit::WebRTCVoidRequest::ExtraData::~ExtraData):
      (WebKit::WebRTCVoidRequest::WebRTCVoidRequest):
      (WebKit::WebRTCVoidRequest::~WebRTCVoidRequest):
      (WebKit::WebRTCVoidRequest::operator=):
      (WebKit::WebRTCVoidRequest::isNull):
      
      Source/WebCore:
      
      As well as adding the local/remote descriptions stuff, I removed the source attribute from
      RTCSessionDescriptionCallback and RTCErrorCallback since it has been removed from the draft.
      
      Tests: fast/mediastream/RTCPeerConnection-localDescription.html
             fast/mediastream/RTCPeerConnection-remoteDescription.html
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCErrorCallback.h:
      (RTCErrorCallback):
      * Modules/mediastream/RTCErrorCallback.idl:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::createOffer):
      (WebCore::RTCPeerConnection::setLocalDescription):
      (WebCore):
      (WebCore::RTCPeerConnection::localDescription):
      (WebCore::RTCPeerConnection::setRemoteDescription):
      (WebCore::RTCPeerConnection::remoteDescription):
      * Modules/mediastream/RTCPeerConnection.h:
      (WebCore):
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCSessionDescriptionCallback.h:
      (RTCSessionDescriptionCallback):
      * Modules/mediastream/RTCSessionDescriptionCallback.idl:
      * Modules/mediastream/RTCSessionDescriptionRequestImpl.cpp:
      (WebCore::RTCSessionDescriptionRequestImpl::create):
      (WebCore::RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl):
      (WebCore::RTCSessionDescriptionRequestImpl::requestSucceeded):
      (WebCore::RTCSessionDescriptionRequestImpl::requestFailed):
      (WebCore::RTCSessionDescriptionRequestImpl::clear):
      * Modules/mediastream/RTCSessionDescriptionRequestImpl.h:
      (RTCSessionDescriptionRequestImpl):
      * Modules/mediastream/RTCVoidRequestImpl.cpp: Copied from Source/WebCore/Modules/mediastream/RTCSessionDescriptionRequestImpl.cpp.
      (WebCore):
      (WebCore::RTCVoidRequestImpl::create):
      (WebCore::RTCVoidRequestImpl::RTCVoidRequestImpl):
      (WebCore::RTCVoidRequestImpl::~RTCVoidRequestImpl):
      (WebCore::RTCVoidRequestImpl::requestSucceeded):
      (WebCore::RTCVoidRequestImpl::requestFailed):
      (WebCore::RTCVoidRequestImpl::stop):
      (WebCore::RTCVoidRequestImpl::clear):
      * Modules/mediastream/RTCVoidRequestImpl.h: Copied from Source/WebCore/Modules/mediastream/RTCSessionDescriptionCallback.h.
      (WebCore):
      (RTCVoidRequestImpl):
      * WebCore.gypi:
      * platform/chromium/support/WebRTCVoidRequest.cpp: Copied from Source/Platform/chromium/public/WebRTCPeerConnectionHandler.h.
      (WebKit):
      (WebKit::WebRTCVoidRequest::WebRTCVoidRequest):
      (WebKit::WebRTCVoidRequest::assign):
      (WebKit::WebRTCVoidRequest::reset):
      (WebKit::WebRTCVoidRequest::requestSucceeded):
      (WebKit::WebRTCVoidRequest::requestFailed):
      (ExtraDataContainer):
      (WebKit::ExtraDataContainer::ExtraDataContainer):
      (WebKit::ExtraDataContainer::extraData):
      (WebKit::WebRTCVoidRequest::extraData):
      (WebKit::WebRTCVoidRequest::setExtraData):
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::setLocalDescription):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerDummy::setRemoteDescription):
      (WebCore::RTCPeerConnectionHandlerDummy::localDescription):
      (WebCore::RTCPeerConnectionHandlerDummy::remoteDescription):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCVoidRequest.h: Copied from Source/WebCore/Modules/mediastream/RTCErrorCallback.h.
      (WebCore):
      (RTCVoidRequest):
      (ExtraData):
      (WebCore::RTCVoidRequest::ExtraData::~ExtraData):
      (WebCore::RTCVoidRequest::~RTCVoidRequest):
      (WebCore::RTCVoidRequest::extraData):
      (WebCore::RTCVoidRequest::setExtraData):
      (WebCore::RTCVoidRequest::RTCVoidRequest):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::setLocalDescription):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerChromium::setRemoteDescription):
      (WebCore::RTCPeerConnectionHandlerChromium::localDescription):
      (WebCore::RTCPeerConnectionHandlerChromium::remoteDescription):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      In addition to adding the new methods to MockWebRTCPeerConnectionHandler I cleaned
      up the task definitions a bit. There was no need to have them in the header file.
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (RTCSessionDescriptionRequestSuccededTask):
      (RTCSessionDescriptionRequestSuccededTask::RTCSessionDescriptionRequestSuccededTask):
      (RTCSessionDescriptionRequestFailedTask):
      (RTCSessionDescriptionRequestFailedTask::RTCSessionDescriptionRequestFailedTask):
      (RTCVoidRequestTask):
      (RTCVoidRequestTask::RTCVoidRequestTask):
      (MockWebRTCPeerConnectionHandler::createOffer):
      (MockWebRTCPeerConnectionHandler::setLocalDescription):
      (MockWebRTCPeerConnectionHandler::setRemoteDescription):
      (MockWebRTCPeerConnectionHandler::localDescription):
      (MockWebRTCPeerConnectionHandler::remoteDescription):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-createOffer.html:
      * fast/mediastream/RTCPeerConnection-localDescription-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-localDescription.html: Copied from LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html.
      * fast/mediastream/RTCPeerConnection-remoteDescription-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-remoteDescription.html: Copied from LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127766 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      edf57541
    • weinig@apple.com's avatar
      Part 2 of removing PlatformString.h, remove PlatformString.h · 3f5ab024
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95931
      
      Reviewed by Adam Barth.
      
      Remove PlatformString.h
      
      Source/WebCore:
      
      * GNUmakefile.list.am:
      * Modules/filesystem/AsyncFileWriter.h:
      * Modules/filesystem/DOMFilePath.h:
      * Modules/filesystem/DOMFileSystemBase.h:
      * Modules/filesystem/DirectoryEntry.h:
      * Modules/filesystem/DirectoryEntrySync.h:
      * Modules/filesystem/DirectoryReader.h:
      * Modules/filesystem/DirectoryReaderBase.h:
      * Modules/filesystem/DirectoryReaderSync.h:
      * Modules/filesystem/EntryBase.cpp:
      * Modules/filesystem/EntrySync.h:
      * Modules/filesystem/FileEntrySync.h:
      * Modules/filesystem/FileSystemCallbacks.h:
      * Modules/filesystem/LocalFileSystem.h:
      * Modules/geolocation/GeolocationError.h:
      * Modules/geolocation/Geoposition.h:
      * Modules/geolocation/PositionError.h:
      * Modules/indexeddb/IDBAny.h:
      * Modules/indexeddb/IDBDatabaseBackendInterface.h:
      * Modules/indexeddb/IDBDatabaseCallbacks.h:
      * Modules/indexeddb/IDBDatabaseCallbacksImpl.h:
      * Modules/indexeddb/IDBDatabaseError.h:
      * Modules/indexeddb/IDBFactory.h:
      * Modules/indexeddb/IDBFactoryBackendInterface.h:
      * Modules/indexeddb/IDBIndex.h:
      * Modules/indexeddb/IDBIndexBackendInterface.h:
      * Modules/indexeddb/IDBKey.h:
      * Modules/indexeddb/IDBKeyPath.h:
      * Modules/indexeddb/IDBMetadata.h:
      * Modules/indexeddb/IDBObjectStore.h:
      * Modules/indexeddb/IDBObjectStoreBackendInterface.h:
      * Modules/indexeddb/IDBTransactionBackendInterface.h:
      * Modules/indexeddb/IDBUpgradeNeededEvent.h:
      * Modules/indexeddb/IDBVersionChangeEvent.h:
      * Modules/mediastream/MediaStreamTrack.h:
      * Modules/networkinfo/NetworkInfoConnection.h:
      * Modules/notifications/DOMWindowNotifications.h:
      * Modules/speech/SpeechGrammar.h:
      * Modules/speech/SpeechRecognition.h:
      * Modules/speech/SpeechRecognitionAlternative.h:
      * Modules/speech/SpeechRecognitionClient.h:
      * Modules/speech/SpeechRecognitionError.h:
      * Modules/webaudio/AudioContext.cpp:
      * Modules/webaudio/AudioParam.h:
      * Modules/webdatabase/AbstractDatabase.h:
      * Modules/webdatabase/ChangeVersionWrapper.h:
      * Modules/webdatabase/DOMWindowWebDatabase.h:
      * Modules/webdatabase/Database.h:
      * Modules/webdatabase/DatabaseAuthorizer.cpp:
      * Modules/webdatabase/DatabaseAuthorizer.h:
      * Modules/webdatabase/DatabaseDetails.h:
      * Modules/webdatabase/DatabaseSync.h:
      * Modules/webdatabase/DatabaseTask.h:
      * Modules/webdatabase/DatabaseTracker.h:
      * Modules/webdatabase/OriginUsageRecord.h:
      * Modules/webdatabase/SQLError.h:
      * Modules/webdatabase/SQLStatement.h:
      * Modules/webdatabase/SQLStatementSync.h:
      * Modules/webdatabase/SQLTransaction.cpp:
      * Modules/webdatabase/SQLTransactionSync.cpp:
      * Modules/webdatabase/SQLTransactionSync.h:
      * Modules/webdatabase/WorkerContextWebDatabase.h:
      * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp:
      * Modules/webdatabase/chromium/QuotaTracker.h:
      * Modules/websockets/ThreadableWebSocketChannel.cpp:
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      * Modules/websockets/WebSocketHandshake.h:
      * Modules/websockets/WebSocketHandshakeResponse.h:
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/gobject/ConvertToUTF8String.cpp:
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      * bindings/js/JSClipboardCustom.cpp:
      * bindings/js/JSImageDataCustom.cpp:
      * bindings/js/JSInspectorFrontendHostCustom.cpp:
      * bindings/js/JSLazyEventListener.h:
      * bindings/js/JSStorageCustom.cpp:
      * bindings/js/JSXSLTProcessorCustom.cpp:
      * bindings/js/JavaScriptCallFrame.cpp:
      * bindings/js/ScheduledAction.h:
      * bindings/js/ScriptDebugServer.h:
      * bindings/js/ScriptHeapSnapshot.h:
      * bindings/js/ScriptValue.h:
      * bindings/js/SerializedScriptValue.h:
      * bindings/objc/DOMCustomXPathNSResolver.mm:
      * bindings/objc/DOMXPath.mm:
      * bindings/objc/WebScriptObject.mm:
      * bindings/scripts/CodeGeneratorJS.pm:
      (AddIncludesForTypeInImpl):
      (AddIncludesForSVGAnimatedType):
      * bindings/scripts/CodeGeneratorV8.pm:
      (AddIncludesForType):
      * bindings/v8/Dictionary.h:
      * bindings/v8/JavaScriptCallFrame.h:
      * bindings/v8/NPV8Object.cpp:
      * bindings/v8/ScriptDebugServer.h:
      * bindings/v8/ScriptFunctionCall.h:
      * bindings/v8/ScriptHeapSnapshot.h:
      * bindings/v8/ScriptProfile.h:
      * bindings/v8/ScriptProfileNode.h:
      * bindings/v8/ScriptProfiler.h:
      * bindings/v8/ScriptSourceCode.h:
      * bindings/v8/V8Binding.cpp:
      * bindings/v8/V8DOMWrapper.h:
      * bindings/v8/V8LazyEventListener.h:
      * bindings/v8/V8NPUtils.cpp:
      * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
      * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
      * bindings/v8/custom/V8LocationCustom.cpp:
      * bridge/IdentifierRep.cpp:
      * bridge/NP_jsobject.cpp:
      * bridge/c/c_utility.cpp:
      * css/CSSBasicShapes.h:
      * css/CSSBorderImageSliceValue.cpp:
      * css/CSSCharsetRule.h:
      * css/CSSCursorImageValue.cpp:
      * css/CSSFontFaceSrcValue.h:
      * css/CSSGradientValue.cpp:
      * css/CSSInheritedValue.cpp:
      * css/CSSInitialValue.cpp:
      * css/CSSLineBoxContainValue.cpp:
      * css/CSSMediaRule.h:
      * css/CSSProperty.cpp:
      * css/CSSPropertySourceData.cpp:
      * css/CSSPropertySourceData.h:
      * css/CSSReflectValue.cpp:
      * css/CSSTimingFunctionValue.cpp:
      * css/CSSUnicodeRangeValue.cpp:
      * css/CSSValueList.cpp:
      * css/Counter.h:
      * css/FontFeatureValue.h:
      * css/FontValue.cpp:
      * css/MediaQuery.h:
      * css/MediaQueryEvaluator.h:
      * css/MediaQueryListListener.h:
      * css/ShadowValue.cpp:
      * css/StyleMedia.h:
      * css/StyleSheet.h:
      * css/StyleSheetList.cpp:
      * css/WebKitCSSMatrix.h:
      * css/WebKitCSSTransformValue.cpp:
      * dom/DOMStringList.h:
      * dom/DOMStringMap.h:
      * dom/DocumentMarker.h:
      * dom/ErrorEvent.h:
      * dom/ExceptionBase.h:
      * dom/MessagePortChannel.h:
      * dom/MutationRecord.h:
      * dom/TransformSource.h:
      * dom/ViewportArguments.cpp:
      * editing/DOMTransactionStep.h:
      * editing/EditingStyle.h:
      * editing/MarkupAccumulator.h:
      * editing/SmartReplaceICU.cpp:
      * editing/SpellChecker.h:
      * editing/SurroundingText.h:
      * fileapi/AsyncFileStream.cpp:
      * fileapi/Blob.h:
      * fileapi/BlobURL.cpp:
      * fileapi/File.h:
      * history/HistoryItem.h:
      * history/blackberry/HistoryItemViewState.h:
      * history/cf/HistoryPropertyList.h:
      * html/DOMFormData.cpp:
      * html/DOMURL.h:
      * html/MicroDataItemValue.h:
      * html/PublicURLManager.h:
      * html/canvas/CanvasPattern.cpp:
      * html/canvas/CanvasRenderingContext2D.h:
      * html/canvas/CanvasStyle.h:
      * html/canvas/WebGLActiveInfo.h:
      * html/canvas/WebGLGetInfo.h:
      * html/canvas/WebGLRenderingContext.h:
      * html/parser/CSSPreloadScanner.h:
      * html/parser/HTMLEntitySearch.h:
      * html/parser/HTMLEntityTable.h:
      * html/parser/HTMLMetaCharsetParser.cpp:
      * inspector/CodeGeneratorInspector.py:
      (InspectorFrontend_h):
      * inspector/ContentSearchUtils.h:
      * inspector/InjectedScript.cpp:
      * inspector/InjectedScriptBase.cpp:
      * inspector/InjectedScriptManager.h:
      * inspector/InjectedScriptModule.h:
      * inspector/InjectedScriptWebGLModule.h:
      * inspector/InspectorAgent.h:
      * inspector/InspectorCSSAgent.h:
      * inspector/InspectorController.h:
      * inspector/InspectorDOMDebuggerAgent.h:
      * inspector/InspectorDOMStorageAgent.h:
      * inspector/InspectorDatabaseAgent.h:
      * inspector/InspectorDatabaseResource.h:
      * inspector/InspectorFrontendClientLocal.cpp:
      * inspector/InspectorFrontendClientLocal.h:
      * inspector/InspectorFrontendHost.h:
      * inspector/InspectorIndexedDBAgent.h:
      * inspector/InspectorPageAgent.h:
      * inspector/InspectorProfilerAgent.h:
      * inspector/InspectorResourceAgent.h:
      * inspector/InspectorState.h:
      * inspector/InspectorStyleSheet.h:
      * inspector/InspectorStyleTextEditor.h:
      * inspector/InspectorValues.h:
      * inspector/InspectorWebGLAgent.h:
      * inspector/InspectorWorkerResource.h:
      * inspector/ScriptArguments.h:
      * inspector/ScriptBreakpoint.h:
      * inspector/ScriptCallFrame.h:
      * inspector/ScriptDebugListener.h:
      * inspector/TimelineRecordFactory.h:
      * inspector/generate-inspector-protocol-version:
      (main):
      * loader/DocumentLoader.cpp:
      * loader/DocumentWriter.h:
      * loader/FTPDirectoryParser.h:
      * loader/FormState.h:
      * loader/HistoryController.h:
      * loader/PolicyChecker.h:
      * loader/ResourceLoadScheduler.h:
      * loader/SubframeLoader.h:
      * loader/SubstituteData.h:
      * loader/WorkerThreadableLoader.h:
      * loader/appcache/ApplicationCache.h:
      * loader/appcache/ApplicationCacheGroup.h:
      * loader/archive/ArchiveFactory.cpp:
      * loader/archive/ArchiveResourceCollection.h:
      * loader/cache/CachedResource.h:
      * loader/cache/MemoryCache.h:
      * loader/icon/IconRecord.h:
      * loader/icon/PageURLRecord.h:
      * loader/mac/LoaderNSURLExtras.mm:
      * loader/win/DocumentLoaderWin.cpp:
      * page/Console.cpp:
      * page/Coordinates.h:
      * page/DOMSelection.cpp:
      * page/EventSource.cpp:
      * page/GroupSettings.h:
      * page/NavigatorBase.cpp:
      * page/OriginAccessEntry.h:
      * page/Page.h:
      * page/SecurityOrigin.h:
      * page/SpeechInputResult.h:
      * page/UserContentURLPattern.h:
      * page/WindowFeatures.cpp:
      * page/WindowFeatures.h:
      * page/WorkerNavigator.h:
      * page/animation/AnimationControllerPrivate.h:
      * platform/AsyncFileSystem.h:
      * platform/AsyncFileSystemCallbacks.h:
      * platform/ContentType.h:
      * platform/ContextMenu.h:
      * platform/ContextMenuItem.h:
      * platform/Cookie.h:
      * platform/CrossThreadCopier.cpp:
      * platform/DateComponents.cpp:
      * platform/FileChooser.h:
      * platform/FileStream.cpp:
      * platform/FileSystem.h:
      * platform/KURL.cpp:
      (WebCore):
      * platform/KURL.h:
      * platform/KURLHash.h:
      * platform/KillRing.h:
      * platform/Language.cpp:
      * platform/Length.cpp:
      * platform/LinkHash.cpp:
      * platform/Logging.cpp:
      * platform/MIMETypeRegistry.h:
      * platform/SSLKeyGenerator.h:
      * platform/SchemeRegistry.h:
      * platform/SharedBuffer.h:
      * platform/Theme.h:
      * platform/UUID.h:
      * platform/animation/Animation.h:
      * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.h:
      * platform/blackberry/CookieManager.h:
      * platform/blackberry/CookieMap.h:
      * platform/blackberry/DragDataBlackBerry.cpp:
      * platform/blackberry/KURLBlackBerry.cpp:
      * platform/blackberry/LocalizedStringsBlackBerry.cpp:
      * platform/blackberry/SSLKeyGeneratorBlackBerry.cpp:
      * platform/blackberry/TemporaryLinkStubs.cpp:
      * platform/cf/FileSystemCF.cpp:
      * platform/cf/SchedulePair.h:
      * platform/chromium/ChromiumDataObject.h:
      * platform/chromium/ClipboardUtilitiesChromium.cpp:
      * platform/chromium/DragDataChromium.cpp:
      * platform/chromium/FileSystemChromium.cpp:
      * platform/chromium/FileSystemChromiumMac.mm:
      * platform/chromium/LanguageChromium.cpp:
      * platform/chromium/SSLKeyGeneratorChromium.cpp:
      * platform/cocoa/KeyEventCocoa.mm:
      * platform/efl/ErrorsEfl.h:
      * platform/efl/LanguageEfl.cpp:
      * platform/efl/LocalizedStringsEfl.cpp:
      * platform/efl/LoggingEfl.cpp:
      * platform/efl/PasteboardEfl.cpp:
      * platform/efl/PlatformScreenEfl.cpp:
      * platform/graphics/ANGLEWebKitBridge.h:
      * platform/graphics/BitmapImage.cpp:
      * platform/graphics/FontPlatformData.cpp:
      * platform/graphics/GlyphPageTreeNode.cpp:
      * platform/graphics/GraphicsContext3D.h:
      * platform/graphics/GraphicsTypes.cpp:
      * platform/graphics/SegmentedFontData.cpp:
      * platform/graphics/blackberry/IconBlackBerry.cpp:
      * platform/graphics/blackberry/LayerData.h:
      * platform/graphics/blackberry/LayerFilterRenderer.cpp:
      * platform/graphics/blackberry/LayerRenderer.cpp:
      * platform/graphics/blackberry/skia/PlatformSupport.h:
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/PlatformCALayerClient.h:
      * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
      * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
      * platform/graphics/cairo/ImageBufferCairo.cpp:
      * platform/graphics/cairo/PathCairo.cpp:
      * platform/graphics/cg/ImageSourceCGMac.mm:
      * platform/graphics/cg/PathCG.cpp:
      * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
      * platform/graphics/chromium/GraphicsLayerChromium.cpp:
      * platform/graphics/chromium/IconChromium.cpp:
      * platform/graphics/chromium/IconChromiumAndroid.cpp:
      * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
      * platform/graphics/efl/IconEfl.cpp:
      * platform/graphics/filters/FEComposite.h:
      * platform/graphics/filters/FEDisplacementMap.h:
      * platform/graphics/filters/SourceAlpha.cpp:
      * platform/graphics/filters/SourceAlpha.h:
      * platform/graphics/filters/SourceGraphic.cpp:
      * platform/graphics/filters/SourceGraphic.h:
      * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
      * platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp:
      * platform/graphics/mac/IconMac.mm:
      * platform/graphics/mac/ImageMac.mm:
      * platform/graphics/opentype/OpenTypeUtilities.h:
      * platform/graphics/openvg/PathOpenVG.cpp:
      * platform/graphics/pango/FontPlatformDataPango.cpp:
      * platform/graphics/qt/FontCacheQt.cpp:
      * platform/graphics/qt/FontPlatformDataQt.cpp:
      * platform/graphics/qt/IconQt.cpp:
      * platform/graphics/qt/ImageQt.cpp:
      * platform/graphics/qt/PathQt.cpp:
      * platform/graphics/skia/FontCustomPlatformData.h:
      * platform/graphics/skia/ImageSkia.cpp:
      * platform/graphics/win/FontCustomPlatformData.h:
      * platform/graphics/win/FontPlatformDataCGWin.cpp:
      * platform/graphics/win/FontPlatformDataCairoWin.cpp:
      * platform/graphics/win/FontPlatformDataWin.cpp:
      * platform/graphics/win/IconWin.cpp:
      * platform/graphics/win/ImageCGWin.cpp:
      * platform/graphics/win/ImageCairoWin.cpp:
      * platform/graphics/win/SimpleFontDataCGWin.cpp:
      * platform/graphics/wince/FontCustomPlatformData.h:
      * platform/graphics/wince/FontPlatformData.cpp:
      * platform/graphics/wince/ImageWinCE.cpp:
      * platform/graphics/wince/MediaPlayerProxy.cpp:
      * platform/graphics/wince/PathWinCE.cpp:
      * platform/graphics/wince/PlatformPathWinCE.cpp:
      * platform/graphics/wx/FontCacheWx.cpp:
      * platform/graphics/wx/FontPlatformDataWx.cpp:
      * platform/graphics/wx/IconWx.cpp:
      * platform/graphics/wx/PathWx.cpp:
      * platform/gtk/ErrorsGtk.h:
      * platform/gtk/FileSystemGtk.cpp:
      * platform/gtk/GtkPopupMenu.h:
      * platform/gtk/KeyBindingTranslator.h:
      * platform/gtk/LanguageGtk.cpp:
      * platform/gtk/LocalizedStringsGtk.cpp:
      * platform/gtk/LoggingGtk.cpp:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/image-decoders/ImageDecoder.h:
      * platform/leveldb/LevelDBSlice.h:
      * platform/mac/FileSystemMac.mm:
      * platform/mediastream/MediaStreamSource.h:
      * platform/mock/GeolocationClientMock.h:
      * platform/network/BlobData.h:
      * platform/network/BlobRegistryImpl.h:
      * platform/network/BlobResourceHandle.h:
      * platform/network/Credential.h:
      * platform/network/FormData.h:
      * platform/network/FormDataBuilder.h:
      * platform/network/HTTPParsers.cpp:
      * platform/network/HTTPRequest.h:
      * platform/network/HTTPValidation.cpp:
      * platform/network/ProtectionSpace.h:
      * platform/network/ResourceErrorBase.h:
      * platform/network/SocketStreamErrorBase.h:
      * platform/network/blackberry/DNSBlackBerry.cpp:
      * platform/network/blackberry/DeferredData.h:
      * platform/network/blackberry/NetworkJob.h:
      * platform/network/cf/CookieJarCFNet.cpp:
      * platform/network/curl/CookieJarCurl.cpp:
      * platform/network/curl/ResourceHandleManager.h:
      * platform/network/qt/DnsPrefetchHelper.cpp:
      * platform/network/soup/ResourceRequestSoup.cpp:
      * platform/network/soup/ResourceResponseSoup.cpp:
      * platform/network/win/CookieJarWin.cpp:
      * platform/posix/FileSystemPOSIX.cpp:
      * platform/qt/ClipboardQt.cpp:
      * platform/qt/CookieJarQt.cpp:
      * platform/qt/FileSystemQt.cpp:
      * platform/qt/LanguageQt.cpp:
      * platform/qt/LocalizedStringsQt.cpp:
      * platform/qt/LoggingQt.cpp:
      * platform/qt/PlatformSupport.h:
      * platform/sql/SQLValue.h:
      * platform/sql/SQLiteDatabase.h:
      * platform/sql/SQLiteFileSystem.h:
      * platform/text/DecodeEscapeSequences.h:
      * platform/text/LineEnding.cpp:
      * platform/text/ParserUtilities.h:
      * platform/text/PlatformString.h: Removed.
      * platform/text/RegularExpression.h:
      * platform/text/SegmentedString.h:
      * platform/text/StringWithDirection.h:
      * platform/text/SuffixTree.h:
      * platform/text/TextBreakIteratorICU.cpp:
      * platform/text/TextCodec.cpp:
      * platform/text/TextCodec.h:
      * platform/text/TextCodecLatin1.cpp:
      * platform/text/TextCodecUTF16.cpp:
      * platform/text/TextCodecUserDefined.cpp:
      * platform/text/TextEncoding.cpp:
      * platform/text/blackberry/StringBlackBerry.cpp:
      * platform/text/cf/StringCF.cpp:
      * platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp:
      * platform/text/gtk/TextCodecGtk.cpp:
      * platform/text/mac/StringMac.mm:
      * platform/text/mac/TextCodecMac.cpp:
      * platform/text/qt/TextCodecQt.cpp:
      * platform/text/win/TextCodecWin.h:
      * platform/text/wince/TextBreakIteratorWinCE.cpp:
      * platform/win/BString.cpp:
      * platform/win/DragDataWin.cpp:
      * platform/win/GDIObjectCounter.h:
      * platform/win/LoggingWin.cpp:
      * platform/win/WCDataObject.cpp:
      * platform/wince/DragDataWinCE.cpp:
      * platform/wx/ClipboardWx.cpp:
      * platform/wx/FileSystemWx.cpp:
      * platform/wx/LanguageWx.cpp:
      * platform/wx/LocalizedStringsWx.cpp:
      * platform/wx/LoggingWx.cpp:
      * platform/wx/PasteboardWx.cpp:
      * platform/wx/PopupMenuWx.cpp:
      * plugins/PluginData.h:
      * plugins/PluginDatabase.h:
      * plugins/PluginDebug.cpp:
      * plugins/PluginPackage.h:
      * plugins/PluginStream.h:
      * rendering/style/StyleDashboardRegion.h:
      * storage/Storage.cpp:
      * storage/StorageArea.h:
      * storage/StorageEvent.h:
      * storage/StorageEventDispatcher.h:
      * storage/StorageMap.h:
      * storage/StorageNamespace.h:
      * storage/StorageNamespaceImpl.h:
      * storage/StorageSyncManager.h:
      * storage/StorageTask.h:
      * storage/StorageTracker.h:
      * svg/SVGPathByteStreamBuilder.h:
      * svg/SVGPathParser.h:
      * svg/SVGPathStringSource.h:
      * svg/SVGStyledElement.cpp:
      * svg/animation/SMILTimeContainer.h:
      * svg/graphics/filters/SVGFilterBuilder.cpp:
      * svg/graphics/filters/SVGFilterBuilder.h:
      * testing/Internals.h:
      * workers/DefaultSharedWorkerRepository.cpp:
      * workers/WorkerLocation.cpp:
      * workers/WorkerThread.cpp:
      * xml/DOMParser.cpp:
      * xml/NativeXPathNSResolver.cpp:
      * xml/XMLSerializer.cpp:
      * xml/XMLSerializer.h:
      * xml/XPathExpression.cpp:
      * xml/XPathValue.h:
      * xml/XSLTUnicodeSort.cpp:
      
      Source/WebKit/blackberry:
      
      * Api/DumpRenderTreeClient.h:
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      * WebCoreSupport/InspectorClientBlackBerry.h:
      * WebCoreSupport/JavaScriptDebuggerBlackBerry.cpp:
      * WebKitSupport/AboutData.h:
      
      Source/WebKit/cf:
      
      * WebCoreSupport/WebInspectorClientCF.cpp:
      (WebInspectorClient::createFrontendSettings):
      
      Source/WebKit/chromium:
      
      * src/ContextMenuClientImpl.cpp:
      * src/EditorClientImpl.cpp:
      * src/InspectorFrontendClientImpl.cpp:
      * src/LocalFileSystemChromium.cpp:
      * src/SpeechInputClientImpl.cpp:
      * src/SpeechRecognitionClientProxy.h:
      * src/WebDevToolsAgentImpl.cpp:
      * src/WebDevToolsFrontendImpl.cpp:
      * src/WebDevToolsFrontendImpl.h:
      * src/WebEntities.h:
      * src/WebFrameImpl.h:
      * src/WorkerFileSystemCallbacksBridge.h:
      * tests/UniscribeHelperTest.cpp:
      
      Source/WebKit/efl:
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      * WebCoreSupport/InspectorClientEfl.cpp:
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      * WebCoreSupport/InspectorClientGtk.cpp:
      * gdom/ConvertToGCharPrivate.h:
      * webkit/webkitsecurityorigin.cpp:
      * webkit/webkitwebdatasource.cpp:
      * webkit/webkitwebhistoryitem.cpp:
      * webkit/webkitwebresource.cpp:
      
      Source/WebKit/mac:
      
      * History/WebHistoryItem.mm:
      * Misc/WebStringTruncator.mm:
      * Plugins/Hosted/NetscapePluginHostManager.h:
      (NetscapePluginHostManager):
      * Plugins/WebPluginController.mm:
      * Storage/WebStorageTrackerClient.mm:
      * WebCoreSupport/WebChromeClient.mm:
      * WebCoreSupport/WebEditorClient.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebCoreSupport/WebIconDatabaseClient.mm:
      * WebCoreSupport/WebInspectorClient.h:
      (WebInspectorClient):
      (WebInspectorFrontendClient):
      * WebView/WebRenderLayer.mm:
      * WebView/WebViewData.h:
      
      Source/WebKit/qt:
      
      * Api/qwebdatabase_p.h:
      * Api/qwebframe_p.h:
      * Api/qwebhistory.cpp:
      * Api/qwebhistoryinterface.cpp:
      * Api/qwebpage_p.h:
      * Api/qwebsettings.cpp:
      * WebCoreSupport/ChromeClientQt.h:
      * WebCoreSupport/InspectorClientQt.cpp:
      
      Source/WebKit/win:
      
      * DOMCSSClasses.cpp:
      * DefaultPolicyDelegate.cpp:
      * MarshallingHelpers.cpp:
      * WebCoreSupport/WebInspectorClient.h:
      * WebDownload.h:
      * WebFrame.h:
      * WebHistoryItem.h:
      * WebIconDatabase.cpp:
      * WebKitDLL.h:
      * WebKitGraphics.cpp:
      * WebKitSystemBits.cpp:
      * WebLocalizableStrings.cpp:
      * WebNotificationCenter.cpp:
      * WebResource.h:
      
      Source/WebKit/wx:
      
      * WebFrame.cpp:
      * WebKitSupport/ChromeClientWx.cpp:
      * WebKitSupport/EditorClientWx.cpp:
      * WebKitSupport/FrameLoaderClientWx.cpp:
      * WebKitSupport/InspectorClientWx.cpp:
      * WebSettings.cpp:
      * WebView.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f5ab024
    • commit-queue@webkit.org's avatar
      Remove extraneous includes (HTMLElement, SVGElement, GlyphBuffer, Clipboard) · 26e97944
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95780
      
      Patch by Nikhil Bhargava <nbhargava@google.com> on 2012-09-06
      Reviewed by Eric Seidel.
      
      Removes extraneous includes of type HTMLElement, SVGElement, GlyphBuffer,
      and Clipboard. There is a minor compile-time performance boost.
      
      * Modules/mediastream/MediaStreamEvent.h:
      * dom/Event.cpp:
      * dom/Event.h:
      (WebCore):
      * dom/EventDispatchMediator.cpp:
      * dom/EventListenerMap.cpp:
      * dom/MouseRelatedEvent.h:
      * dom/UIEvent.cpp:
      * html/FormAssociatedElement.h:
      (WebCore):
      * inspector/TimelineRecordFactory.cpp:
      * platform/graphics/FontPlatformData.h:
      * rendering/RenderLineBoxList.h:
      * rendering/style/RenderStyle.h:
      (WebCore):
      * svg/SVGAnimatedType.h:
      * svg/SVGExternalResourcesRequired.cpp:
      * svg/SVGExternalResourcesRequired.h:
      (WebCore):
      * svg/SVGURIReference.h:
      (WebCore):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      26e97944
  15. 05 Sep, 2012 2 commits
    • bashi@chromium.org's avatar
      Unreviewed, rolling out r127612, r127660, and r127664. · ee294e2a
      bashi@chromium.org authored
      http://trac.webkit.org/changeset/127612
      http://trac.webkit.org/changeset/127660
      http://trac.webkit.org/changeset/127664
      https://bugs.webkit.org/show_bug.cgi?id=95920
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCVoidRequest.h: Removed.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCErrorCallback.h:
      (WebCore):
      (RTCErrorCallback):
      * Modules/mediastream/RTCErrorCallback.idl:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::createOffer):
      * Modules/mediastream/RTCPeerConnection.h:
      (WebCore):
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCSessionDescriptionCallback.h:
      (WebCore):
      (RTCSessionDescriptionCallback):
      * Modules/mediastream/RTCSessionDescriptionCallback.idl:
      * Modules/mediastream/RTCSessionDescriptionRequestImpl.cpp:
      (WebCore::RTCSessionDescriptionRequestImpl::create):
      (WebCore::RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl):
      (WebCore::RTCSessionDescriptionRequestImpl::requestSucceeded):
      (WebCore::RTCSessionDescriptionRequestImpl::requestFailed):
      (WebCore::RTCSessionDescriptionRequestImpl::clear):
      * Modules/mediastream/RTCSessionDescriptionRequestImpl.h:
      (RTCSessionDescriptionRequestImpl):
      * Modules/mediastream/RTCVoidRequestImpl.cpp: Removed.
      * Modules/mediastream/RTCVoidRequestImpl.h: Removed.
      * WebCore.gypi:
      * platform/chromium/support/WebRTCVoidRequest.cpp: Removed.
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::RTCPeerConnectionHandlerDummy):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (WebCore::RTCPeerConnectionHandler::~RTCPeerConnectionHandler):
      (RTCPeerConnectionHandler):
      (WebCore::RTCPeerConnectionHandler::RTCPeerConnectionHandler):
      * platform/mediastream/RTCVoidRequest.h: Removed.
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::SuccessCallbackTask::SuccessCallbackTask):
      (MockWebRTCPeerConnectionHandler::SuccessCallbackTask::runIfValid):
      (MockWebRTCPeerConnectionHandler::FailureCallbackTask::FailureCallbackTask):
      (MockWebRTCPeerConnectionHandler::FailureCallbackTask::runIfValid):
      (MockWebRTCPeerConnectionHandler::createOffer):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      (SuccessCallbackTask):
      (FailureCallbackTask):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-createOffer.html:
      * fast/mediastream/RTCPeerConnection-localDescription-expected.txt: Removed.
      * fast/mediastream/RTCPeerConnection-localDescription.html: Removed.
      * fast/mediastream/RTCPeerConnection-remoteDescription-expected.txt: Removed.
      * fast/mediastream/RTCPeerConnection-remoteDescription.html: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee294e2a
    • tommyw@google.com's avatar
      MediaStream API: Add the local and remote description functionality to RTCPeerConnection · 7c43e5af
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95839
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCVoidRequest.h: Copied from Source/Platform/chromium/public/WebRTCPeerConnectionHandler.h.
      (WebCore):
      (WebKit):
      (WebRTCVoidRequest):
      (ExtraData):
      (WebKit::WebRTCVoidRequest::ExtraData::~ExtraData):
      (WebKit::WebRTCVoidRequest::WebRTCVoidRequest):
      (WebKit::WebRTCVoidRequest::~WebRTCVoidRequest):
      (WebKit::WebRTCVoidRequest::operator=):
      (WebKit::WebRTCVoidRequest::isNull):
      
      Source/WebCore:
      
      As well as adding the local/remote descriptions stuff, I removed the source attribute from
      RTCSessionDescriptionCallback and RTCErrorCallback since it has been removed from the draft.
      
      Tests: fast/mediastream/RTCPeerConnection-localDescription.html
             fast/mediastream/RTCPeerConnection-remoteDescription.html
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCErrorCallback.h:
      (RTCErrorCallback):
      * Modules/mediastream/RTCErrorCallback.idl:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::createOffer):
      (WebCore::RTCPeerConnection::setLocalDescription):
      (WebCore):
      (WebCore::RTCPeerConnection::localDescription):
      (WebCore::RTCPeerConnection::setRemoteDescription):
      (WebCore::RTCPeerConnection::remoteDescription):
      * Modules/mediastream/RTCPeerConnection.h:
      (WebCore):
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCSessionDescriptionCallback.h:
      (RTCSessionDescriptionCallback):
      * Modules/mediastream/RTCSessionDescriptionCallback.idl:
      * Modules/mediastream/RTCSessionDescriptionRequestImpl.cpp:
      (WebCore::RTCSessionDescriptionRequestImpl::create):
      (WebCore::RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl):
      (WebCore::RTCSessionDescriptionRequestImpl::requestSucceeded):
      (WebCore::RTCSessionDescriptionRequestImpl::requestFailed):
      (WebCore::RTCSessionDescriptionRequestImpl::clear):
      * Modules/mediastream/RTCSessionDescriptionRequestImpl.h:
      (RTCSessionDescriptionRequestImpl):
      * Modules/mediastream/RTCVoidRequestImpl.cpp: Copied from Source/WebCore/Modules/mediastream/RTCSessionDescriptionRequestImpl.cpp.
      (WebCore):
      (WebCore::RTCVoidRequestImpl::create):
      (WebCore::RTCVoidRequestImpl::RTCVoidRequestImpl):
      (WebCore::RTCVoidRequestImpl::~RTCVoidRequestImpl):
      (WebCore::RTCVoidRequestImpl::requestSucceeded):
      (WebCore::RTCVoidRequestImpl::requestFailed):
      (WebCore::RTCVoidRequestImpl::stop):
      (WebCore::RTCVoidRequestImpl::clear):
      * Modules/mediastream/RTCVoidRequestImpl.h: Copied from Source/WebCore/Modules/mediastream/RTCSessionDescriptionCallback.h.
      (WebCore):
      (RTCVoidRequestImpl):
      * WebCore.gypi:
      * platform/chromium/support/WebRTCVoidRequest.cpp: Copied from Source/Platform/chromium/public/WebRTCPeerConnectionHandler.h.
      (WebKit):
      (WebKit::WebRTCVoidRequest::WebRTCVoidRequest):
      (WebKit::WebRTCVoidRequest::assign):
      (WebKit::WebRTCVoidRequest::reset):
      (WebKit::WebRTCVoidRequest::requestSucceeded):
      (WebKit::WebRTCVoidRequest::requestFailed):
      (ExtraDataContainer):
      (WebKit::ExtraDataContainer::ExtraDataContainer):
      (WebKit::ExtraDataContainer::extraData):
      (WebKit::WebRTCVoidRequest::extraData):
      (WebKit::WebRTCVoidRequest::setExtraData):
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::setLocalDescription):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerDummy::setRemoteDescription):
      (WebCore::RTCPeerConnectionHandlerDummy::localDescription):
      (WebCore::RTCPeerConnectionHandlerDummy::remoteDescription):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCVoidRequest.h: Copied from Source/WebCore/Modules/mediastream/RTCErrorCallback.h.
      (WebCore):
      (RTCVoidRequest):
      (ExtraData):
      (WebCore::RTCVoidRequest::ExtraData::~ExtraData):
      (WebCore::RTCVoidRequest::~RTCVoidRequest):
      (WebCore::RTCVoidRequest::extraData):
      (WebCore::RTCVoidRequest::setExtraData):
      (WebCore::RTCVoidRequest::RTCVoidRequest):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::setLocalDescription):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerChromium::setRemoteDescription):
      (WebCore::RTCPeerConnectionHandlerChromium::localDescription):
      (WebCore::RTCPeerConnectionHandlerChromium::remoteDescription):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      In addition to adding the new methods to MockWebRTCPeerConnectionHandler I cleaned
      up the task definitions a bit. There was no need to have them in the header file.
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (RTCSessionDescriptionRequestSuccededTask):
      (RTCSessionDescriptionRequestSuccededTask::RTCSessionDescriptionRequestSuccededTask):
      (RTCSessionDescriptionRequestFailedTask):
      (RTCSessionDescriptionRequestFailedTask::RTCSessionDescriptionRequestFailedTask):
      (RTCVoidRequestTask):
      (RTCVoidRequestTask::RTCVoidRequestTask):
      (MockWebRTCPeerConnectionHandler::createOffer):
      (MockWebRTCPeerConnectionHandler::setLocalDescription):
      (MockWebRTCPeerConnectionHandler::setRemoteDescription):
      (MockWebRTCPeerConnectionHandler::localDescription):
      (MockWebRTCPeerConnectionHandler::remoteDescription):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-createOffer.html:
      * fast/mediastream/RTCPeerConnection-localDescription-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-localDescription.html: Copied from LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html.
      * fast/mediastream/RTCPeerConnection-remoteDescription-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-remoteDescription.html: Copied from LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c43e5af
  16. 04 Sep, 2012 2 commits
    • tommyw@google.com's avatar
      MediaStream API: Add the async createOffer functionality to RTCPeerConnection · ee34ed92
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95734
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCSessionDescriptionDescriptor.h: Added.
      (WebCore):
      (WebKit):
      (WebRTCSessionDescriptionDescriptor):
      (WebKit::WebRTCSessionDescriptionDescriptor::WebRTCSessionDescriptionDescriptor):
      (WebKit::WebRTCSessionDescriptionDescriptor::~WebRTCSessionDescriptionDescriptor):
      (WebKit::WebRTCSessionDescriptionDescriptor::operator=):
      (WebKit::WebRTCSessionDescriptionDescriptor::isNull):
      * chromium/public/WebRTCSessionDescriptionRequest.h: Added.
      (WebCore):
      (WebKit):
      (WebRTCSessionDescriptionRequest):
      (ExtraData):
      (WebKit::WebRTCSessionDescriptionRequest::ExtraData::~ExtraData):
      (WebKit::WebRTCSessionDescriptionRequest::WebRTCSessionDescriptionRequest):
      (WebKit::WebRTCSessionDescriptionRequest::~WebRTCSessionDescriptionRequest):
      (WebKit::WebRTCSessionDescriptionRequest::operator=):
      (WebKit::WebRTCSessionDescriptionRequest::isNull):
      
      Source/WebCore:
      
      createOffer sends a request to the platform implementer requesting it to gather up all candidates.
      This can take some time, therefore the request is async.
      
      Test: fast/mediastream/RTCPeerConnection-createOffer.html
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCErrorCallback.h: Copied from Source/WebCore/platform/mediastream/RTCSessionDescriptionDescriptor.h.
      (WebCore):
      (RTCErrorCallback):
      (WebCore::RTCErrorCallback::~RTCErrorCallback):
      * Modules/mediastream/RTCErrorCallback.idl: Copied from Source/WebCore/platform/mediastream/RTCSessionDescriptionDescriptor.h.
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::createOffer):
      (WebCore):
      * Modules/mediastream/RTCPeerConnection.h:
      (WebCore):
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCSessionDescriptionCallback.h: Copied from Source/WebCore/platform/mediastream/RTCSessionDescriptionDescriptor.h.
      (WebCore):
      (RTCSessionDescriptionCallback):
      (WebCore::RTCSessionDescriptionCallback::~RTCSessionDescriptionCallback):
      * Modules/mediastream/RTCSessionDescriptionCallback.idl: Copied from Source/WebCore/platform/mediastream/RTCSessionDescriptionDescriptor.h.
      * Modules/mediastream/RTCSessionDescriptionRequestImpl.cpp: Added.
      (WebCore):
      (WebCore::RTCSessionDescriptionRequestImpl::create):
      (WebCore::RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl):
      (WebCore::RTCSessionDescriptionRequestImpl::~RTCSessionDescriptionRequestImpl):
      (WebCore::RTCSessionDescriptionRequestImpl::requestSucceeded):
      (WebCore::RTCSessionDescriptionRequestImpl::requestFailed):
      (WebCore::RTCSessionDescriptionRequestImpl::stop):
      (WebCore::RTCSessionDescriptionRequestImpl::clear):
      * Modules/mediastream/RTCSessionDescriptionRequestImpl.h: Copied from Source/WebCore/platform/mediastream/RTCSessionDescriptionDescriptor.h.
      (WebCore):
      (RTCSessionDescriptionRequestImpl):
      * WebCore.gypi:
      * platform/chromium/support/WebRTCSessionDescriptionDescriptor.cpp: Copied from Tools/DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h.
      (WebKit):
      (WebKit::WebRTCSessionDescriptionDescriptor::WebRTCSessionDescriptionDescriptor):
      (WebKit::WebRTCSessionDescriptionDescriptor::assign):
      (WebKit::WebRTCSessionDescriptionDescriptor::reset):
      (WebKit::WebRTCSessionDescriptionDescriptor::operator WTF::PassRefPtr<WebCore::RTCSessionDescriptionDescriptor>):
      (WebKit::WebRTCSessionDescriptionDescriptor::initialize):
      (WebKit::WebRTCSessionDescriptionDescriptor::type):
      (WebKit::WebRTCSessionDescriptionDescriptor::setType):
      (WebKit::WebRTCSessionDescriptionDescriptor::sdp):
      (WebKit::WebRTCSessionDescriptionDescriptor::setSDP):
      * platform/chromium/support/WebRTCSessionDescriptionRequest.cpp: Added.
      (WebKit):
      (WebKit::WebRTCSessionDescriptionRequest::WebRTCSessionDescriptionRequest):
      (WebKit::WebRTCSessionDescriptionRequest::assign):
      (WebKit::WebRTCSessionDescriptionRequest::reset):
      (WebKit::WebRTCSessionDescriptionRequest::requestSucceeded):
      (WebKit::WebRTCSessionDescriptionRequest::requestFailed):
      (ExtraDataContainer):
      (WebKit::ExtraDataContainer::ExtraDataContainer):
      (WebKit::ExtraDataContainer::extraData):
      (WebKit::WebRTCSessionDescriptionRequest::extraData):
      (WebKit::WebRTCSessionDescriptionRequest::setExtraData):
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::createOffer):
      (WebCore):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCSessionDescriptionDescriptor.h:
      (WebCore::RTCSessionDescriptionDescriptor::type):
      (WebCore::RTCSessionDescriptionDescriptor::sdp):
      * platform/mediastream/RTCSessionDescriptionRequest.h: Copied from Source/WebCore/platform/mediastream/RTCSessionDescriptionDescriptor.h.
      (WebCore):
      (RTCSessionDescriptionRequest):
      (ExtraData):
      (WebCore::RTCSessionDescriptionRequest::ExtraData::~ExtraData):
      (WebCore::RTCSessionDescriptionRequest::~RTCSessionDescriptionRequest):
      (WebCore::RTCSessionDescriptionRequest::extraData):
      (WebCore::RTCSessionDescriptionRequest::setExtraData):
      (WebCore::RTCSessionDescriptionRequest::RTCSessionDescriptionRequest):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::createOffer):
      (WebCore):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::SuccessCallbackTask::SuccessCallbackTask):
      (MockWebRTCPeerConnectionHandler::SuccessCallbackTask::runIfValid):
      (MockWebRTCPeerConnectionHandler::FailureCallbackTask::FailureCallbackTask):
      (MockWebRTCPeerConnectionHandler::FailureCallbackTask::runIfValid):
      (MockWebRTCPeerConnectionHandler::createOffer):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      (MockWebRTCPeerConnectionHandler::taskList):
      (SuccessCallbackTask):
      (FailureCallbackTask):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-createOffer-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-createOffer.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee34ed92
    • tommyw@google.com's avatar
      MediaStream API: Change the MediaStreamTrackList track added/removed signaling · 4b9a957b
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95721
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      Adding the signaling to the WebKit interface.
      
      * chromium/public/WebMediaStreamCenter.h:
      (WebKit::WebMediaStreamCenter::didAddMediaStreamTrack):
      (WebKit::WebMediaStreamCenter::didRemoveMediaStreamTrack):
      
      Source/WebCore:
      
      This allows the platform implementor to throw an NOT_SUPPORTED_ERR exception if it doesn support these methods.
      
      Patch covered by expanded existing test.
      
      * Modules/mediastream/MediaStreamTrackList.cpp:
      (WebCore::MediaStreamTrackList::add):
      (WebCore::MediaStreamTrackList::remove):
      * platform/mediastream/MediaStreamCenter.h:
      (MediaStreamCenter):
      * platform/mediastream/blackberry/MediaStreamCenterBlackBerry.cpp:
      (WebCore::MediaStreamCenterBlackBerry::didAddMediaStreamTrack):
      (WebCore):
      (WebCore::MediaStreamCenterBlackBerry::didRemoveMediaStreamTrack):
      * platform/mediastream/blackberry/MediaStreamCenterBlackBerry.h:
      (MediaStreamCenterBlackBerry):
      * platform/mediastream/chromium/MediaStreamCenterChromium.cpp:
      (WebCore::MediaStreamCenterChromium::didAddMediaStreamTrack):
      (WebCore::MediaStreamCenterChromium::didRemoveMediaStreamTrack):
      * platform/mediastream/chromium/MediaStreamCenterChromium.h:
      (MediaStreamCenterChromium):
      * platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp:
      (WebCore::MediaStreamCenterGStreamer::didAddMediaStreamTrack):
      (WebCore::MediaStreamCenterGStreamer::didRemoveMediaStreamTrack):
      * platform/mediastream/gstreamer/MediaStreamCenterGStreamer.h:
      (MediaStreamCenterGStreamer):
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebMediaStreamCenter.cpp:
      (MockWebMediaStreamCenter::didAddMediaStreamTrack):
      (MockWebMediaStreamCenter::didRemoveMediaStreamTrack):
      * DumpRenderTree/chromium/MockWebMediaStreamCenter.h:
      (MockWebMediaStreamCenter):
      
      LayoutTests:
      
      * fast/mediastream/MediaStreamTrackList.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b9a957b
  17. 03 Sep, 2012 1 commit
    • tommyw@google.com's avatar
      MediaStream API: Add Ice-related functionality to RTCPeerConnection · e902e881
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95565
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/WebRTCICECandidateDescriptor.h: Copied from Source/Platform/chromium/public/WebRTCPeerConnectionHandlerClient.h.
      (WebCore):
      (WebKit):
      (WebRTCICECandidateDescriptor):
      (WebKit::WebRTCICECandidateDescriptor::WebRTCICECandidateDescriptor):
      (WebKit::WebRTCICECandidateDescriptor::~WebRTCICECandidateDescriptor):
      (WebKit::WebRTCICECandidateDescriptor::operator=):
      (WebKit::WebRTCICECandidateDescriptor::isNull):
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCPeerConnectionHandlerClient.h:
      (WebKit):
      (WebRTCPeerConnectionHandlerClient):
      
      Source/WebCore:
      
      Adds all Ice-related functionality to RTCPeerConnection, including
      events, callbacks and methods.
      
      Test: fast/mediastream/RTCPeerConnection-ice.html
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCIceCandidateEvent.cpp: Added.
      (WebCore):
      (WebCore::RTCIceCandidateEvent::create):
      (WebCore::RTCIceCandidateEvent::RTCIceCandidateEvent):
      (WebCore::RTCIceCandidateEvent::~RTCIceCandidateEvent):
      (WebCore::RTCIceCandidateEvent::candidate):
      (WebCore::RTCIceCandidateEvent::interfaceName):
      * Modules/mediastream/RTCIceCandidateEvent.h: Added.
      (WebCore):
      (RTCIceCandidateEvent):
      * Modules/mediastream/RTCIceCandidateEvent.idl: Added.
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      (WebCore::RTCPeerConnection::updateIce):
      (WebCore):
      (WebCore::RTCPeerConnection::addIceCandidate):
      (WebCore::RTCPeerConnection::iceState):
      (WebCore::RTCPeerConnection::close):
      (WebCore::RTCPeerConnection::didGenerateIceCandidate):
      (WebCore::RTCPeerConnection::didChangeIceState):
      (WebCore::RTCPeerConnection::stop):
      (WebCore::RTCPeerConnection::changeIceState):
      * Modules/mediastream/RTCPeerConnection.h:
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * WebCore.gypi:
      * dom/EventNames.h:
      (WebCore):
      * dom/EventNames.in:
      * platform/chromium/support/WebRTCICECandidateDescriptor.cpp: Copied from Source/WebCore/platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp.
      (WebKit):
      (WebKit::WebRTCICECandidateDescriptor::WebRTCICECandidateDescriptor):
      (WebKit::WebRTCICECandidateDescriptor::assign):
      (WebKit::WebRTCICECandidateDescriptor::reset):
      (WebKit::WebRTCICECandidateDescriptor::initialize):
      (WebKit::WebRTCICECandidateDescriptor::operator PassRefPtr<WebCore::RTCIceCandidateDescriptor>):
      (WebKit::WebRTCICECandidateDescriptor::candidate):
      (WebKit::WebRTCICECandidateDescriptor::sdpMid):
      (WebKit::WebRTCICECandidateDescriptor::sdpMLineIndex):
      * platform/mediastream/RTCIceCandidateDescriptor.h:
      (WebCore::RTCIceCandidateDescriptor::candidate):
      (WebCore::RTCIceCandidateDescriptor::sdpMid):
      (WebCore::RTCIceCandidateDescriptor::sdpMLineIndex):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCPeerConnectionHandlerClient.h:
      (WebCore):
      (RTCPeerConnectionHandlerClient):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::updateIce):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerChromium::addIceCandidate):
      (WebCore::RTCPeerConnectionHandlerChromium::didGenerateICECandidate):
      (WebCore::RTCPeerConnectionHandlerChromium::didChangeICEState):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (WebKit):
      (RTCPeerConnectionHandlerChromium):
      
      Source/WebKit/chromium:
      
      * src/AssertMatchingEnums.cpp:
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler):
      (MockWebRTCPeerConnectionHandler::updateICE):
      (MockWebRTCPeerConnectionHandler::addICECandidate):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-ice-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-ice.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127425 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e902e881
  18. 01 Sep, 2012 1 commit
    • tommyw@google.com's avatar
      MediaStream API: Add MediaStream management to RTCPeerConnection · 0cc32da8
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95543
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebMediaStreamCenter.h:
      (WebMediaStreamCenter):
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCPeerConnectionHandlerClient.h:
      (WebKit):
      (WebRTCPeerConnectionHandlerClient):
      
      Source/WebCore:
      
      This includes addStream/removeStream to RTCPeerConnection,
      as well as didAddRemoteStream/didRemoveRemoteStream to RTCPeerConnectionHandlerClient.
      
      Test: fast/mediastream/RTCPeerConnection-AddRemoveStream.html
      
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::parseConfiguration):
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      (WebCore::RTCPeerConnection::addStream):
      (WebCore):
      (WebCore::RTCPeerConnection::removeStream):
      (WebCore::RTCPeerConnection::localStreams):
      (WebCore::RTCPeerConnection::remoteStreams):
      (WebCore::RTCPeerConnection::didAddRemoteStream):
      (WebCore::RTCPeerConnection::didRemoveRemoteStream):
      * Modules/mediastream/RTCPeerConnection.h:
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * bindings/js/Dictionary.cpp:
      (WebCore::Dictionary::getOwnPropertiesAsStringHashMap):
      (WebCore::Dictionary::getOwnPropertyNames):
      * bindings/v8/Dictionary.cpp:
      (WebCore::Dictionary::getOwnPropertiesAsStringHashMap):
      (WebCore::Dictionary::getOwnPropertyNames):
      * bindings/v8/Dictionary.h:
      (Dictionary):
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::addStream):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerDummy::removeStream):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCPeerConnectionHandlerClient.h:
      (WebCore):
      (RTCPeerConnectionHandlerClient):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::addStream):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerChromium::removeStream):
      (WebCore::RTCPeerConnectionHandlerChromium::didAddRemoteStream):
      (WebCore::RTCPeerConnectionHandlerChromium::didRemoveRemoteStream):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (WebKit):
      (RTCPeerConnectionHandlerChromium):
      
      Source/WebKit/chromium:
      
      * src/AssertMatchingEnums.cpp:
      
      Tools:
      
      Extending MockWebRTCPeerConnectionHandler to handle addStream/removeStream.
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler):
      (MockWebRTCPeerConnectionHandler::addStream):
      (MockWebRTCPeerConnectionHandler::removeStream):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-AddRemoveStream-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-AddRemoveStream.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0cc32da8
  19. 30 Aug, 2012 1 commit
    • tommyw@google.com's avatar
      MediaStream API: Introduce MediaConstraints · d6365cf7
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95198
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      Adds WebMediaConstraints.
      
      * Platform.gypi:
      * chromium/public/WebMediaConstraints.h: Copied from Source/Platform/chromium/public/WebRTCPeerConnectionHandler.h.
      (WebCore):
      (WebKit):
      (WebMediaConstraints):
      (WebKit::WebMediaConstraints::WebMediaConstraints):
      (WebKit::WebMediaConstraints::~WebMediaConstraints):
      (WebKit::WebMediaConstraints::operator=):
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebKit):
      (WebRTCPeerConnectionHandler):
      
      Source/WebCore:
      
      This introduces MediaConstraints together with relevant infrastructure, a chromium mock and LayoutTests.
      
      Patch covered by expanded existing tests.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/MediaConstraintsImpl.cpp: Added.
      (WebCore):
      (WebCore::MediaConstraintsImpl::create):
      (WebCore::MediaConstraintsImpl::initialize):
      (WebCore::MediaConstraintsImpl::~MediaConstraintsImpl):
      (WebCore::MediaConstraintsImpl::getMandatoryConstraintNames):
      (WebCore::MediaConstraintsImpl::getOptionalConstraintNames):
      (WebCore::MediaConstraintsImpl::getMandatoryConstraintValue):
      (WebCore::MediaConstraintsImpl::getOptionalConstraintValue):
      * Modules/mediastream/MediaConstraintsImpl.h: Copied from Source/WebCore/platform/mediastream/RTCPeerConnectionHandler.h.
      (WebCore):
      (MediaConstraintsImpl):
      (WebCore::MediaConstraintsImpl::MediaConstraintsImpl):
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::create):
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.h:
      (WebCore):
      (RTCPeerConnection):
      * WebCore.gypi:
      * bindings/js/Dictionary.cpp:
      (WebCore::Dictionary::getOwnPropertyNames):
      (WebCore):
      * bindings/js/Dictionary.h:
      (Dictionary):
      * bindings/v8/Dictionary.cpp:
      (WebCore::Dictionary::getOwnPropertyNames):
      (WebCore):
      * bindings/v8/Dictionary.h:
      (Dictionary):
      * platform/chromium/support/WebMediaConstraints.cpp: Copied from Source/WebCore/platform/mediastream/RTCPeerConnectionHandler.cpp.
      (WebKit):
      (WebKit::WebMediaConstraints::WebMediaConstraints):
      (WebKit::WebMediaConstraints::assign):
      (WebKit::WebMediaConstraints::reset):
      (WebKit::WebMediaConstraints::isNull):
      (WebKit::WebMediaConstraints::getMandatoryConstraintNames):
      (WebKit::WebMediaConstraints::getOptionalConstraintNames):
      (WebKit::WebMediaConstraints::getMandatoryConstraintValue):
      (WebKit::WebMediaConstraints::getOptionalConstraintValue):
      * platform/mediastream/MediaConstraints.h: Copied from Source/WebCore/platform/mediastream/RTCPeerConnectionHandler.h.
      (WebCore):
      (MediaConstraints):
      (WebCore::MediaConstraints::~MediaConstraints):
      (WebCore::MediaConstraints::MediaConstraints):
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::initialize):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (WebCore):
      (RTCPeerConnectionHandler):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::initialize):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Tools:
      
      Extending the MockWebRTCPeerConnectionHandler with MediaConstraints functionality.
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler):
      (isSupportedConstraint):
      (isValidConstraint):
      (MockWebRTCPeerConnectionHandler::initialize):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-expected.txt:
      * fast/mediastream/RTCPeerConnection.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6365cf7
  20. 29 Aug, 2012 2 commits
    • abarth@webkit.org's avatar
      Deploy ASCIILiteral hotness throughout WebCore · f6d1b8c3
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95282
      
      Reviewed by Eric Seidel.
      
      As recommended by http://trac.webkit.org/wiki/EfficientStrings.
      This patch converts all the DEFINE_STATIC_LOCAL Strings.
      
      * Modules/indexeddb/IDBDatabase.cpp:
      (WebCore::IDBDatabase::transaction):
      * Modules/indexeddb/IDBIndex.cpp:
      (WebCore::IDBIndex::openCursor):
      (WebCore::IDBIndex::openKeyCursor):
      * Modules/indexeddb/IDBObjectStore.cpp:
      (WebCore::IDBObjectStore::openCursor):
      * Modules/mediastream/MediaStreamTrack.cpp:
      (WebCore::MediaStreamTrack::kind):
      * css/CSSPropertySourceData.cpp:
      (WebCore::CSSPropertySourceData::toString):
      * dom/Document.cpp:
      (WebCore::Document::processHttpEquiv):
      * dom/MicroDataItemList.cpp:
      (WebCore::MicroDataItemList::undefinedItemType):
      * dom/ScriptElement.cpp:
      (WebCore::ScriptElement::notifyFinished):
      * editing/MarkupAccumulator.cpp:
      (WebCore::MarkupAccumulator::shouldAddNamespaceElement):
      * html/FormController.cpp:
      (WebCore::formStateSignature):
      * html/HTMLTrackElement.cpp:
      (WebCore::HTMLTrackElement::canLoadUrl):
      * html/ImageInputType.cpp:
      (WebCore::ImageInputType::appendFormData):
      * html/canvas/CanvasRenderingContext2D.cpp:
      (WebCore::CanvasRenderingContext2D::getImageData):
      * html/parser/XSSAuditor.cpp:
      (WebCore::XSSAuditor::init):
      (WebCore::XSSAuditor::filterToken):
      (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected):
      * inspector/InspectorCSSAgent.cpp:
      (WebCore::computePseudoClassMask):
      * inspector/InspectorDebuggerAgent.cpp:
      (WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
      * inspector/InspectorIndexedDBAgent.cpp:
      (WebCore):
      * inspector/InspectorOverlay.cpp:
      * inspector/InspectorStyleSheet.cpp:
      (WebCore::InspectorStyle::setPropertyText):
      (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
      * loader/ImageLoader.cpp:
      (WebCore::ImageLoader::notifyFinished):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::didReceiveResponse):
      * loader/TextTrackLoader.cpp:
      (WebCore::TextTrackLoader::corsPolicyPreventedLoad):
      * loader/icon/IconDatabase.cpp:
      (WebCore::IconDatabase::defaultDatabaseFilename):
      * page/ContentSecurityPolicy.cpp:
      (WebCore::CSPDirectiveList::allowJavaScriptURLs):
      (WebCore::CSPDirectiveList::allowInlineEventHandlers):
      (WebCore::CSPDirectiveList::allowInlineScript):
      (WebCore::CSPDirectiveList::allowInlineStyle):
      (WebCore::CSPDirectiveList::allowEval):
      (WebCore::CSPDirectiveList::allowScriptNonce):
      (WebCore::CSPDirectiveList::allowScriptFromSource):
      (WebCore::CSPDirectiveList::allowObjectFromSource):
      (WebCore::CSPDirectiveList::allowChildFrameFromSource):
      (WebCore::CSPDirectiveList::allowImageFromSource):
      (WebCore::CSPDirectiveList::allowStyleFromSource):
      (WebCore::CSPDirectiveList::allowFontFromSource):
      (WebCore::CSPDirectiveList::allowMediaFromSource):
      (WebCore::CSPDirectiveList::allowConnectToSource):
      (WebCore::CSPDirectiveList::allowFormAction):
      (WebCore::CSPDirectiveList::addDirective):
      * page/Page.cpp:
      (WebCore::Page::groupName):
      * platform/animation/Animation.cpp:
      (WebCore::Animation::initialAnimationName):
      * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp:
      (WebCore::CookieDatabaseBackingStore::upgradeTableIfNeeded):
      * platform/blackberry/RenderThemeBlackBerry.cpp:
      (WebCore::RenderThemeBlackBerry::defaultGUIFont):
      * platform/chromium/ClipboardUtilitiesChromium.cpp:
      (WebCore::replaceNewlinesWithWindowsStyleNewlines):
      * platform/efl/RenderThemeEfl.cpp:
      (WebCore::RenderThemeEfl::systemFont):
      * platform/graphics/filters/CustomFilterCompiledProgram.cpp:
      (WebCore):
      * platform/win/ClipboardUtilitiesWin.cpp:
      (WebCore::replaceNewlinesWithWindowsStyleNewlines):
      * rendering/RenderThemeChromiumSkia.cpp:
      (WebCore::RenderThemeChromiumSkia::defaultGUIFont):
      * svg/SVGAngle.cpp:
      (WebCore::SVGAngle::valueAsString):
      * svg/SVGTransform.cpp:
      (WebCore::SVGTransform::transformTypePrefixForParsing):
      * xml/parser/XMLTokenizer.cpp:
      (WebCore::XMLTokenizer::nextToken):
      * xml/parser/XMLTreeBuilder.cpp:
      (WebCore::XMLTreeBuilder::processXMLEntity):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6d1b8c3
    • abarth@webkit.org's avatar
      Deploy ASCIILiteral and StringBuilder in more places in WebCore · dc48592b
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95291
      
      Reviewed by Benjamin Poulain.
      
      I wanted to deploy ASCIILiteral in more places in WebCore, but there's
      a bunch of code that should be using StringBuilder, which I couldn't
      resist deploying as well.
      
      * Modules/mediastream/PeerConnection00.cpp:
      (WebCore::PeerConnection00::createIceOptions):
      * bindings/js/JSBlobCustom.cpp:
      (WebCore::JSBlobConstructor::constructJSBlob):
      * bindings/v8/V8LazyEventListener.cpp:
      (WebCore::V8LazyEventListener::prepareListenerObject):
      * bindings/v8/custom/V8BlobCustom.cpp:
      (WebCore::V8Blob::constructorCallback):
      * css/CSSCanvasValue.cpp:
      (WebCore::CSSCanvasValue::customCssText):
      * css/CSSCrossfadeValue.cpp:
      (WebCore::CSSCrossfadeValue::customCssText):
      * css/CSSPageRule.cpp:
      (WebCore::CSSPageRule::selectorText):
      * css/CSSSelector.cpp:
      (WebCore::CSSSelector::selectorText):
      * editing/EditorCommand.cpp:
      (WebCore::executeToggleStyleInList):
      * editing/SmartReplaceICU.cpp:
      (WebCore::getSmartSet):
      * editing/markup.cpp:
      (WebCore::fillContainerFromString):
      * html/HTMLTitleElement.cpp:
      (WebCore::HTMLTitleElement::text):
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::didFailLoading):
      * page/EventSource.cpp:
      (WebCore::EventSource::didReceiveResponse):
      * platform/blackberry/LocalizedStringsBlackBerry.cpp:
      (WebCore::platformLanguage):
      * platform/graphics/GraphicsLayer.cpp:
      (WebCore::GraphicsLayer::animationNameForTransition):
      * platform/network/blackberry/rss/RSSAtomParser.cpp:
      (WebCore::RSSAtomParser::parseContent):
      * platform/sql/SQLiteDatabase.cpp:
      (WebCore::SQLiteDatabase::open):
      (WebCore::SQLiteDatabase::setFullsync):
      (WebCore::SQLiteDatabase::maximumSize):
      (WebCore::SQLiteDatabase::pageSize):
      (WebCore::SQLiteDatabase::freeSpaceSize):
      (WebCore::SQLiteDatabase::totalSize):
      (WebCore::SQLiteDatabase::tableExists):
      (WebCore::SQLiteDatabase::clearAllTables):
      (WebCore::SQLiteDatabase::runVacuumCommand):
      (WebCore::SQLiteDatabase::runIncrementalVacuumCommand):
      (WebCore::SQLiteDatabase::turnOnIncrementalAutoVacuum):
      * platform/win/FileSystemWin.cpp:
      (WebCore::bundleName):
      (WebCore::storageDirectory):
      * plugins/PluginStream.cpp:
      (WebCore::PluginStream::startStream):
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::setTextFromOption):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc48592b
  21. 27 Aug, 2012 1 commit
    • tommyw@google.com's avatar
      MediaStream API: Fix review comments from patch #93119 · 00610e74
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95064
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Adding const to accessors.
      
      Change covered by exisiting tests..
      
      * Modules/mediastream/RTCIceCandidate.cpp:
      (WebCore::RTCIceCandidate::candidate):
      (WebCore::RTCIceCandidate::sdpMid):
      (WebCore::RTCIceCandidate::sdpMLineIndex):
      * Modules/mediastream/RTCIceCandidate.h:
      (RTCIceCandidate):
      * Modules/mediastream/RTCSessionDescription.cpp:
      (WebCore::RTCSessionDescription::create):
      (WebCore::RTCSessionDescription::type):
      (WebCore::RTCSessionDescription::sdp):
      * Modules/mediastream/RTCSessionDescription.h:
      (RTCSessionDescription):
      
      LayoutTests:
      
      * fast/mediastream/RTCIceCandidate-expected.txt:
      * fast/mediastream/RTCIceCandidate.html:
      * fast/mediastream/RTCSessionDescription-expected.txt:
      * fast/mediastream/RTCSessionDescription.html:
      * fast/mediastream/constructors-expected.txt:
      * fast/mediastream/constructors.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00610e74
  22. 24 Aug, 2012 1 commit
    • tommyw@google.com's avatar
      MediaStream API: Add readyState functionality to RTCPeerConnection · 1daea42b
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=94813
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebRTCPeerConnectionHandler.h:
      (WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCPeerConnectionHandlerClient.h:
      (WebRTCPeerConnectionHandlerClient):
      
      Source/WebCore:
      
      This patch adds readyState functionality to RTCPeerConnection together with related callbacks and methods.
      
      Test: fast/mediastream/RTCPeerConnection-state.html
      
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      (WebCore::RTCPeerConnection::readyState):
      (WebCore):
      (WebCore::RTCPeerConnection::close):
      (WebCore::RTCPeerConnection::didChangeReadyState):
      (WebCore::RTCPeerConnection::stop):
      (WebCore::RTCPeerConnection::changeReadyState):
      * Modules/mediastream/RTCPeerConnection.h:
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * platform/mediastream/RTCPeerConnectionHandler.cpp:
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::stop):
      (WebCore):
      * platform/mediastream/RTCPeerConnectionHandler.h:
      (RTCPeerConnectionHandler):
      * platform/mediastream/RTCPeerConnectionHandlerClient.h:
      (RTCPeerConnectionHandlerClient):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
      (WebCore::RTCPeerConnectionHandlerChromium::RTCPeerConnectionHandlerChromium):
      (WebCore::RTCPeerConnectionHandlerChromium::stop):
      (WebCore):
      (WebCore::RTCPeerConnectionHandlerChromium::didChangeReadyState):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
      (RTCPeerConnectionHandlerChromium):
      
      Source/WebKit/chromium:
      
      * src/AssertMatchingEnums.cpp:
      
      Tools:
      
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
      (MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler):
      (MockWebRTCPeerConnectionHandler::stop):
      * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.h:
      (MockWebRTCPeerConnectionHandler):
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-state-expected.txt: Added.
      * fast/mediastream/RTCPeerConnection-state.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1daea42b
  23. 22 Aug, 2012 2 commits
    • tommyw@google.com's avatar
      MediaStream API: Introduce RTCSessionDescription · fd61222d
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=93119
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      This patch introduces RTCSessionDescription together with its
      corresponding WebCore/platform representation.
      
      Test: fast/mediastream/RTCSessionDescription.html
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/DOMWindowMediaStream.idl:
      * Modules/mediastream/RTCSessionDescription.cpp: Added.
      (WebCore):
      (WebCore::RTCSessionDescription::create):
      (WebCore::RTCSessionDescription::RTCSessionDescription):
      (WebCore::RTCSessionDescription::~RTCSessionDescription):
      (WebCore::RTCSessionDescription::type):
      (WebCore::RTCSessionDescription::setType):
      (WebCore::RTCSessionDescription::sdp):
      (WebCore::RTCSessionDescription::setSdp):
      (WebCore::RTCSessionDescription::descriptor):
      * Modules/mediastream/RTCSessionDescription.h: Added.
      (WebCore):
      (RTCSessionDescription):
      * Modules/mediastream/RTCSessionDescription.idl: Added.
      * WebCore.gypi:
      * platform/mediastream/RTCSessionDescriptionDescriptor.cpp: Added.
      (WebCore):
      (WebCore::RTCSessionDescriptionDescriptor::create):
      (WebCore::RTCSessionDescriptionDescriptor::RTCSessionDescriptionDescriptor):
      (WebCore::RTCSessionDescriptionDescriptor::~RTCSessionDescriptionDescriptor):
      * platform/mediastream/RTCSessionDescriptionDescriptor.h: Added.
      (WebCore):
      (RTCSessionDescriptionDescriptor):
      (WebCore::RTCSessionDescriptionDescriptor::type):
      (WebCore::RTCSessionDescriptionDescriptor::setType):
      (WebCore::RTCSessionDescriptionDescriptor::sdp):
      (WebCore::RTCSessionDescriptionDescriptor::setSdp):
      
      LayoutTests:
      
      * fast/mediastream/RTCSessionDescription-expected.txt: Added.
      * fast/mediastream/RTCSessionDescription.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd61222d
    • tommyw@google.com's avatar
      MediaStream API: Introduce RTCIceCandidate · ab240673
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=93117
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      This patch introduces RTCIceCandidate together with its corresponding
      WebCore/platform representation.
      
      Test: fast/mediastream/RTCIceCandidate.html
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/DOMWindowMediaStream.idl:
      * Modules/mediastream/RTCIceCandidate.cpp: Added.
      (WebCore):
      (WebCore::RTCIceCandidate::create):
      (WebCore::RTCIceCandidate::RTCIceCandidate):
      (WebCore::RTCIceCandidate::~RTCIceCandidate):
      (WebCore::RTCIceCandidate::candidate):
      (WebCore::RTCIceCandidate::sdpMid):
      (WebCore::RTCIceCandidate::sdpMLineIndex):
      (WebCore::RTCIceCandidate::descriptor):
      * Modules/mediastream/RTCIceCandidate.h: Added.
      (WebCore):
      (RTCIceCandidate):
      * Modules/mediastream/RTCIceCandidate.idl: Added.
      * WebCore.gypi:
      * platform/mediastream/RTCIceCandidateDescriptor.cpp: Added.
      (WebCore):
      (WebCore::RTCIceCandidateDescriptor::create):
      (WebCore::RTCIceCandidateDescriptor::RTCIceCandidateDescriptor):
      (WebCore::RTCIceCandidateDescriptor::~RTCIceCandidateDescriptor):
      * platform/mediastream/RTCIceCandidateDescriptor.h: Added.
      (WebCore):
      (RTCIceCandidateDescriptor):
      (WebCore::RTCIceCandidateDescriptor::candidate):
      (WebCore::RTCIceCandidateDescriptor::sdpMid):
      (WebCore::RTCIceCandidateDescriptor::sdpMLineIndex):
      
      LayoutTests:
      
      * fast/mediastream/RTCIceCandidate-expected.txt: Added.
      * fast/mediastream/RTCIceCandidate.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab240673
  24. 13 Aug, 2012 1 commit
  25. 07 Aug, 2012 1 commit
    • annacc@chromium.org's avatar
      Create a MediaSource object. · e024c4e1
      annacc@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=91773
      
      Reviewed by Eric Carlson.
      
      MediaSource object is needed in order to implement the new
      object-oriented MediaSource API:
      http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
      
      No new tests - will be able to test after landing:
      https://bugs.webkit.org/show_bug.cgi?id=91775
      
      Adding new files to build files:
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      
      New MediaSource object:
      * Modules/mediasource/MediaSource.cpp: Added.
      * Modules/mediasource/MediaSource.h: Added.
      * Modules/mediasource/MediaSource.idl: Added.
      
      Create a registry for the blob storage and lookup:
      * Modules/mediasource/MediaSourceRegistry.cpp: Added.
      * Modules/mediasource/MediaSourceRegistry.h: Added.
      
      Connect SourceBuffer to MediaSource:
      * Modules/mediasource/SourceBuffer.cpp:
      (WebCore::SourceBuffer::SourceBuffer):
      (WebCore::SourceBuffer::buffered): Forward call to MediaSource.
      (WebCore::SourceBuffer::append): Ditto.
      (WebCore::SourceBuffer::abort): Ditto.
      * Modules/mediasource/SourceBuffer.h:
      (WebCore::SourceBuffer::create): Add a MediaSource to the constructor.
      (WebCore::SourceBuffer::clear): Clear the MediaSource.
      (SourceBuffer):
      * Modules/mediasource/SourceBufferList.cpp: include SourceBuffer.h
      * Modules/mediasource/SourceBufferList.h:
      
      Make MediaSource an EventTarget:
      * dom/EventTarget.h:
      (WebCore):
      * dom/EventTargetFactory.in:
      
      Enable creation of MediaSource object URL from JavaScript:
      * html/DOMURL.cpp:
      (WebCore):
      (WebCore::DOMURL::createObjectURL):
      (WebCore::DOMURL::revokeObjectURL):
      * html/DOMURL.h:
      (WebCore):
      (DOMURL):
      * html/DOMURL.idl:
      * html/PublicURLManager.h: create a new sourceURLs list for storing
          reigstered MediaSource URLS.
      (WebCore::PublicURLManager::contextDestroyed): make sure everything is
          removed from the sourceURLs list upon destruction.
      (PublicURLManager):
      (WebCore::PublicURLManager::sourceURLs): getter for the sourceURLs list.
      
      New MediaSource constructor:
      * page/DOMWindow.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e024c4e1
  26. 02 Aug, 2012 3 commits
    • tommyw@google.com's avatar
      MediaStream API: Add RTCPeerConnectionHandler infrastructure · 4f130ef2
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=92866
      
      Reviewed by Adam Barth.
      
      Introducing RTCPeerConnectionHandler & RTCPeerConnectionHandlerClient,
      together with the Chromium WebKit interface, following the pattern of
      the previous PeerConnection00Handler but with the optimizations from MediaStreamCenter.
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/Platform.h:
      (WebKit):
      (Platform):
      (WebKit::Platform::createRTCPeerConnectionHandler):
      * chromium/public/WebRTCPeerConnectionHandler.h: Added.
      (WebKit):
      (WebRTCPeerConnectionHandler):
      (WebKit::WebRTCPeerConnectionHandler::~WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCPeerConnectionHandlerClient.h: Added.
      (WebKit):
      (WebRTCPeerConnectionHandlerClient):
      (WebKit::WebRTCPeerConnectionHandlerClient::~WebRTCPeerConnectionHandlerClient):
      
      Source/WebCore:
      
      Not yet testable due to not enough code landed.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::create):
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.h:
      (RTCPeerConnection):
      * WebCore.gypi:
      * platform/mediastream/RTCPeerConnectionHandler.cpp: Added.
      (WebCore):
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandler::create):
      (WebCore::RTCPeerConnectionHandlerDummy::RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::~RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::initialize):
      * platform/mediastream/RTCPeerConnectionHandler.h: Copied from Source/WebCore/Modules/mediastream/RTCPeerConnection.h.
      (WebCore):
      (RTCPeerConnectionHandler):
      (WebCore::RTCPeerConnectionHandler::~RTCPeerConnectionHandler):
      (WebCore::RTCPeerConnectionHandler::RTCPeerConnectionHandler):
      * platform/mediastream/RTCPeerConnectionHandlerClient.h: Copied from Source/WebCore/Modules/mediastream/RTCPeerConnection.h.
      (WebCore):
      (RTCPeerConnectionHandlerClient):
      (WebCore::RTCPeerConnectionHandlerClient::~RTCPeerConnectionHandlerClient):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp: Added.
      (WebCore):
      (WebCore::RTCPeerConnectionHandler::create):
      (WebCore::RTCPeerConnectionHandlerChromium::RTCPeerConnectionHandlerChromium):
      (WebCore::RTCPeerConnectionHandlerChromium::~RTCPeerConnectionHandlerChromium):
      (WebCore::RTCPeerConnectionHandlerChromium::initialize):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h: Added.
      (WebCore):
      (RTCPeerConnectionHandlerChromium):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124460 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f130ef2
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r124439. · 57b6b2b8
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/124439
      https://bugs.webkit.org/show_bug.cgi?id=92980
      
      Broke Chromium Mac Release compile (Requested by apavlov on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-08-02
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/Platform.h:
      (WebKit):
      (Platform):
      (WebKit::Platform::createPeerConnectionHandler):
      * chromium/public/WebRTCPeerConnectionHandler.h: Removed.
      * chromium/public/WebRTCPeerConnectionHandlerClient.h: Removed.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::create):
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.h:
      * WebCore.gypi:
      * platform/mediastream/RTCPeerConnectionHandler.cpp: Removed.
      * platform/mediastream/RTCPeerConnectionHandler.h: Removed.
      * platform/mediastream/RTCPeerConnectionHandlerClient.h: Removed.
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp: Removed.
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57b6b2b8
    • tommyw@google.com's avatar
      MediaStream API: Add RTCPeerConnectionHandler infrastructure · 512be54d
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=92866
      
      Reviewed by Kentaro Hara.
      
      Introducing RTCPeerConnectionHandler & RTCPeerConnectionHandlerClient,
      together with the Chromium WebKit interface, following the pattern of
      the previous PeerConnection00Handler but with the optimizations from MediaStreamCenter.
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/Platform.h:
      (WebKit):
      (Platform):
      (WebKit::Platform::createRTCPeerConnectionHandler):
      * chromium/public/WebRTCPeerConnectionHandler.h: Added.
      (WebKit):
      (WebRTCPeerConnectionHandler):
      (WebKit::WebRTCPeerConnectionHandler::~WebRTCPeerConnectionHandler):
      * chromium/public/WebRTCPeerConnectionHandlerClient.h: Added.
      (WebKit):
      (WebRTCPeerConnectionHandlerClient):
      (WebKit::WebRTCPeerConnectionHandlerClient::~WebRTCPeerConnectionHandlerClient):
      
      Source/WebCore:
      
      Not yet testable due to not enough code landed.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::create):
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.h:
      (RTCPeerConnection):
      * WebCore.gypi:
      * platform/mediastream/RTCPeerConnectionHandler.cpp: Added.
      (WebCore):
      (RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandler::create):
      (WebCore::RTCPeerConnectionHandlerDummy::RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::~RTCPeerConnectionHandlerDummy):
      (WebCore::RTCPeerConnectionHandlerDummy::initialize):
      * platform/mediastream/RTCPeerConnectionHandler.h: Copied from Source/WebCore/Modules/mediastream/RTCPeerConnection.h.
      (WebCore):
      (RTCPeerConnectionHandler):
      (WebCore::RTCPeerConnectionHandler::~RTCPeerConnectionHandler):
      (WebCore::RTCPeerConnectionHandler::RTCPeerConnectionHandler):
      * platform/mediastream/RTCPeerConnectionHandlerClient.h: Copied from Source/WebCore/Modules/mediastream/RTCPeerConnection.h.
      (WebCore):
      (RTCPeerConnectionHandlerClient):
      (WebCore::RTCPeerConnectionHandlerClient::~RTCPeerConnectionHandlerClient):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp: Added.
      (WebCore):
      (WebCore::RTCPeerConnectionHandler::create):
      (WebCore::RTCPeerConnectionHandlerChromium::RTCPeerConnectionHandlerChromium):
      (WebCore::RTCPeerConnectionHandlerChromium::~RTCPeerConnectionHandlerChromium):
      (WebCore::RTCPeerConnectionHandlerChromium::initialize):
      * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h: Added.
      (WebCore):
      (RTCPeerConnectionHandlerChromium):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      512be54d