Changeset 178603 in webkit for trunk/Source/JavaScriptCore/replay


Ignore:
Timestamp:
Jan 16, 2015, 2:13:08 PM (10 years ago)
Author:
Brian Burg
Message:

Web Replay: purge remaining PassRefPtr uses and minor cleanup
https://bugs.webkit.org/show_bug.cgi?id=140456

Reviewed by Andreas Kling.

Source/JavaScriptCore:

Get rid of PassRefPtr. Introduce default initializers where it makes sense.
Remove mistaken uses of AtomicString that were not removed as part of r174113.

  • replay/EmptyInputCursor.h:
  • replay/InputCursor.h:

(JSC::InputCursor::InputCursor):

Source/WebCore:

Get rid of PassRefPtr. Introduce default initializers where it makes sense. Change
uses of ASSERT to ASSERT_ARG when the assert is a precondition on an argument.

Remove mistaken uses of AtomicString that were not removed as part of r174113.

No new tests, no behavior changed.

  • inspector/InspectorReplayAgent.cpp:

(WebCore::SerializeInputToJSONFunctor::operator()):
(WebCore::SerializeInputToJSONFunctor::returnValue):
(WebCore::InspectorReplayAgent::sessionCreated):
(WebCore::InspectorReplayAgent::sessionModified):
(WebCore::InspectorReplayAgent::sessionLoaded):
(WebCore::InspectorReplayAgent::segmentCreated):
(WebCore::InspectorReplayAgent::segmentCompleted):
(WebCore::InspectorReplayAgent::segmentLoaded):
(WebCore::InspectorReplayAgent::switchSession):
(WebCore::InspectorReplayAgent::insertSessionSegment):
(WebCore::InspectorReplayAgent::removeSessionSegment):
(WebCore::InspectorReplayAgent::findSession):
(WebCore::InspectorReplayAgent::findSegment):

  • inspector/InspectorReplayAgent.h:
  • replay/CapturingInputCursor.cpp:

(WebCore::CapturingInputCursor::CapturingInputCursor):
(WebCore::CapturingInputCursor::create):
(WebCore::CapturingInputCursor::loadInput):

  • replay/CapturingInputCursor.h:
  • replay/EventLoopInputDispatcher.cpp:

(WebCore::EventLoopInputDispatcher::EventLoopInputDispatcher):

  • replay/EventLoopInputDispatcher.h:
  • replay/FunctorInputCursor.h:

(WebCore::FunctorInputCursor::FunctorInputCursor):
(WebCore::FunctorInputCursor::loadInput):

  • replay/ReplayController.cpp:

(WebCore::ReplayController::ReplayController):
(WebCore::ReplayController::setForceDeterministicSettings):
(WebCore::ReplayController::setSessionState):
(WebCore::ReplayController::setSegmentState):
(WebCore::ReplayController::switchSession):
(WebCore::ReplayController::createSegment):
(WebCore::ReplayController::completeSegment):
(WebCore::ReplayController::loadSegmentAtIndex):
(WebCore::ReplayController::unloadSegment):
(WebCore::ReplayController::frameNavigated):
(WebCore::ReplayController::loadedSession):
(WebCore::ReplayController::loadedSegment):
(WebCore::ReplayController::activeInputCursor):
(WebCore::ReplayController::dispatcher):

  • replay/ReplayController.h:
  • replay/ReplaySession.cpp:

(WebCore::ReplaySession::create):
(WebCore::ReplaySession::at):
(WebCore::ReplaySession::appendSegment):
(WebCore::ReplaySession::insertSegment):
(WebCore::ReplaySession::removeSegment):

  • replay/ReplaySession.h:
  • replay/ReplaySessionSegment.cpp:

(WebCore::ReplaySessionSegment::create):
(WebCore::ReplaySessionSegment::ReplaySessionSegment):

  • replay/ReplaySessionSegment.h:
  • replay/ReplayingInputCursor.cpp:

(WebCore::ReplayingInputCursor::ReplayingInputCursor):
(WebCore::ReplayingInputCursor::create):
(WebCore::ReplayingInputCursor::loadInput):

  • replay/ReplayingInputCursor.h:
  • replay/SegmentedInputStorage.cpp:

(WebCore::SegmentedInputStorage::store):
(WebCore::SegmentedInputStorage::queue):
(WebCore::SegmentedInputStorage::SegmentedInputStorage): Deleted.

  • replay/SegmentedInputStorage.h:
Location:
trunk/Source/JavaScriptCore/replay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/replay/EmptyInputCursor.h

    r163346 r178603  
    4141    virtual ~EmptyInputCursor() { }
    4242
    43     static PassRefPtr<EmptyInputCursor> create()
     43    static Ref<EmptyInputCursor> create()
    4444    {
    45         return adoptRef(new EmptyInputCursor());
     45        return adoptRef(*new EmptyInputCursor());
    4646    }
    4747
     
    6161
    6262protected:
    63     virtual NondeterministicInputBase* loadInput(InputQueue, const AtomicString&) override
     63    virtual NondeterministicInputBase* loadInput(InputQueue, const String&) override
    6464    {
    6565        ASSERT_NOT_REACHED();
  • trunk/Source/JavaScriptCore/replay/InputCursor.h

    r173978 r178603  
    3434#include <wtf/Noncopyable.h>
    3535#include <wtf/RefCounted.h>
    36 #include <wtf/text/AtomicString.h>
    3736
    3837namespace JSC {
     
    4140    WTF_MAKE_NONCOPYABLE(InputCursor);
    4241public:
    43     InputCursor()
    44         : m_withinEventLoopInputExtent(false)
    45     {
    46     }
    47 
     42    InputCursor() { }
    4843    virtual ~InputCursor() { }
    4944
     
    7974    virtual NondeterministicInputBase* uncheckedLoadInput(InputQueue) = 0;
    8075protected:
    81     virtual NondeterministicInputBase* loadInput(InputQueue, const AtomicString&) = 0;
     76    virtual NondeterministicInputBase* loadInput(InputQueue, const String&) = 0;
    8277
    8378private:
    84     bool m_withinEventLoopInputExtent;
     79    bool m_withinEventLoopInputExtent {false};
    8580};
    8681
Note: See TracChangeset for help on using the changeset viewer.