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

Side by Side Diff: Source/core/inspector/PageRuntimeAgent.cpp

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/PageRuntimeAgent.h ('k') | Source/core/inspector/WorkerConsoleAgent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 PageRuntimeAgent::PageRuntimeAgent(InjectedScriptManager* injectedScriptManager, ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgent* pageAgent ) 48 PageRuntimeAgent::PageRuntimeAgent(InjectedScriptManager* injectedScriptManager, ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgent* pageAgent )
49 : InspectorRuntimeAgent(injectedScriptManager, scriptDebugServer) 49 : InspectorRuntimeAgent(injectedScriptManager, scriptDebugServer)
50 , m_inspectedPage(page) 50 , m_inspectedPage(page)
51 , m_pageAgent(pageAgent) 51 , m_pageAgent(pageAgent)
52 , m_mainWorldContextCreated(false) 52 , m_mainWorldContextCreated(false)
53 { 53 {
54 } 54 }
55 55
56 PageRuntimeAgent::~PageRuntimeAgent() 56 PageRuntimeAgent::~PageRuntimeAgent()
57 { 57 {
58 #if !ENABLE(OILPAN)
58 m_instrumentingAgents->setPageRuntimeAgent(0); 59 m_instrumentingAgents->setPageRuntimeAgent(0);
60 #endif
61 }
62
63 void PageRuntimeAgent::trace(Visitor* visitor)
64 {
65 visitor->trace(m_pageAgent);
66 InspectorRuntimeAgent::trace(visitor);
59 } 67 }
60 68
61 void PageRuntimeAgent::init() 69 void PageRuntimeAgent::init()
62 { 70 {
63 m_instrumentingAgents->setPageRuntimeAgent(this); 71 m_instrumentingAgents->setPageRuntimeAgent(this);
64 } 72 }
65 73
66 void PageRuntimeAgent::enable(ErrorString* errorString) 74 void PageRuntimeAgent::enable(ErrorString* errorString)
67 { 75 {
68 if (m_enabled) 76 if (m_enabled)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 if (scriptState->contextIsEmpty() || window == scriptState->domWindow()) { 162 if (scriptState->contextIsEmpty() || window == scriptState->domWindow()) {
155 scriptStatesToRemove.append(scriptState); 163 scriptStatesToRemove.append(scriptState);
156 m_frontend->executionContextDestroyed(it->value); 164 m_frontend->executionContextDestroyed(it->value);
157 } 165 }
158 } 166 }
159 m_scriptStateToId.removeAll(scriptStatesToRemove); 167 m_scriptStateToId.removeAll(scriptStatesToRemove);
160 } 168 }
161 169
162 } // namespace WebCore 170 } // namespace WebCore
163 171
OLDNEW
« no previous file with comments | « Source/core/inspector/PageRuntimeAgent.h ('k') | Source/core/inspector/WorkerConsoleAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698