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

Unified Diff: Source/core/inspector/InjectedScriptHost.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/InjectedScriptHost.h ('k') | Source/core/inspector/InjectedScriptHost.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InjectedScriptHost.cpp
diff --git a/Source/core/inspector/InjectedScriptHost.cpp b/Source/core/inspector/InjectedScriptHost.cpp
index 37092364360f494a9c5c7689dffaa3d84392f74e..14650d41a6ca32470cb9f110c1e8e64aeeb5b415 100644
--- a/Source/core/inspector/InjectedScriptHost.cpp
+++ b/Source/core/inspector/InjectedScriptHost.cpp
@@ -45,13 +45,13 @@ using namespace std;
namespace WebCore {
-PassRefPtr<InjectedScriptHost> InjectedScriptHost::create()
+PassRefPtrWillBeRawPtr<InjectedScriptHost> InjectedScriptHost::create()
{
- return adoptRef(new InjectedScriptHost());
+ return adoptRefWillBeNoop(new InjectedScriptHost());
}
InjectedScriptHost::InjectedScriptHost()
- : m_instrumentingAgents(0)
+ : m_instrumentingAgents(nullptr)
, m_scriptDebugServer(0)
{
ScriptWrappable::init(this);
@@ -62,9 +62,14 @@ InjectedScriptHost::~InjectedScriptHost()
{
}
+void InjectedScriptHost::trace(Visitor* visitor)
+{
+ visitor->trace(m_instrumentingAgents);
+}
+
void InjectedScriptHost::disconnect()
{
- m_instrumentingAgents = 0;
+ m_instrumentingAgents = nullptr;
m_scriptDebugServer = 0;
}
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.h ('k') | Source/core/inspector/InjectedScriptHost.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698