Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1063)

Unified Diff: Source/core/inspector/InspectorHistory.cpp

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/InspectorHistory.h ('k') | Source/core/inspector/InspectorInputAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorHistory.cpp
diff --git a/Source/core/inspector/InspectorHistory.cpp b/Source/core/inspector/InspectorHistory.cpp
index b73699cd1d2aa15ebe02329d92674d5d8b1a6673..6597d2f405d324babd29e5c6934785bb9aa35127 100644
--- a/Source/core/inspector/InspectorHistory.cpp
+++ b/Source/core/inspector/InspectorHistory.cpp
@@ -62,6 +62,10 @@ InspectorHistory::Action::~Action()
{
}
+void InspectorHistory::Action::trace(Visitor* visitor)
+{
+}
+
String InspectorHistory::Action::toString()
{
return m_name;
@@ -77,13 +81,13 @@ String InspectorHistory::Action::mergeId()
return "";
}
-void InspectorHistory::Action::merge(PassRefPtr<Action>)
+void InspectorHistory::Action::merge(PassRefPtrWillBeRawPtr<Action>)
{
}
InspectorHistory::InspectorHistory() : m_afterLastActionIndex(0) { }
-bool InspectorHistory::perform(PassRefPtr<Action> action, ExceptionState& exceptionState)
+bool InspectorHistory::perform(PassRefPtrWillBeRawPtr<Action> action, ExceptionState& exceptionState)
{
if (!action->perform(exceptionState))
return false;
@@ -100,7 +104,7 @@ bool InspectorHistory::perform(PassRefPtr<Action> action, ExceptionState& except
void InspectorHistory::markUndoableState()
{
- perform(adoptRef(new UndoableStateMark()), IGNORE_EXCEPTION);
+ perform(adoptRefWillBeNoop(new UndoableStateMark()), IGNORE_EXCEPTION);
}
bool InspectorHistory::undo(ExceptionState& exceptionState)
@@ -146,5 +150,10 @@ void InspectorHistory::reset()
m_history.clear();
}
+void InspectorHistory::trace(Visitor* visitor)
+{
+ visitor->trace(m_history);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/inspector/InspectorHistory.h ('k') | Source/core/inspector/InspectorInputAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698