OLD | NEW |
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 , m_frontend(0) | 57 , m_frontend(0) |
58 , m_injectedScriptManager(injectedScriptManager) | 58 , m_injectedScriptManager(injectedScriptManager) |
59 , m_scriptDebugServer(scriptDebugServer) | 59 , m_scriptDebugServer(scriptDebugServer) |
60 { | 60 { |
61 } | 61 } |
62 | 62 |
63 InspectorRuntimeAgent::~InspectorRuntimeAgent() | 63 InspectorRuntimeAgent::~InspectorRuntimeAgent() |
64 { | 64 { |
65 } | 65 } |
66 | 66 |
| 67 void InspectorRuntimeAgent::trace(Visitor* visitor) |
| 68 { |
| 69 visitor->trace(m_injectedScriptManager); |
| 70 InspectorBaseAgent::trace(visitor); |
| 71 } |
| 72 |
67 static ScriptDebugServer::PauseOnExceptionsState setPauseOnExceptionsState(Scrip
tDebugServer* scriptDebugServer, ScriptDebugServer::PauseOnExceptionsState newSt
ate) | 73 static ScriptDebugServer::PauseOnExceptionsState setPauseOnExceptionsState(Scrip
tDebugServer* scriptDebugServer, ScriptDebugServer::PauseOnExceptionsState newSt
ate) |
68 { | 74 { |
69 ASSERT(scriptDebugServer); | 75 ASSERT(scriptDebugServer); |
70 ScriptDebugServer::PauseOnExceptionsState presentState = scriptDebugServer->
pauseOnExceptionsState(); | 76 ScriptDebugServer::PauseOnExceptionsState presentState = scriptDebugServer->
pauseOnExceptionsState(); |
71 if (presentState != newState) | 77 if (presentState != newState) |
72 scriptDebugServer->setPauseOnExceptionsState(newState); | 78 scriptDebugServer->setPauseOnExceptionsState(newState); |
73 return presentState; | 79 return presentState; |
74 } | 80 } |
75 | 81 |
76 void InspectorRuntimeAgent::evaluate(ErrorString* errorString, const String& exp
ression, const String* const objectGroup, const bool* const includeCommandLineAP
I, const bool* const doNotPauseOnExceptionsAndMuteConsole, const int* executionC
ontextId, const bool* const returnByValue, const bool* generatePreview, RefPtr<T
ypeBuilder::Runtime::RemoteObject>& result, TypeBuilder::OptOutput<bool>* wasThr
own) | 82 void InspectorRuntimeAgent::evaluate(ErrorString* errorString, const String& exp
ression, const String* const objectGroup, const bool* const includeCommandLineAP
I, const bool* const doNotPauseOnExceptionsAndMuteConsole, const int* executionC
ontextId, const bool* const returnByValue, const bool* generatePreview, RefPtr<T
ypeBuilder::Runtime::RemoteObject>& result, TypeBuilder::OptOutput<bool>* wasThr
own) |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 m_frontend->executionContextCreated(ExecutionContextDescription::create() | 213 m_frontend->executionContextCreated(ExecutionContextDescription::create() |
208 .setId(executionContextId) | 214 .setId(executionContextId) |
209 .setIsPageContext(isPageContext) | 215 .setIsPageContext(isPageContext) |
210 .setName(name) | 216 .setName(name) |
211 .setFrameId(frameId) | 217 .setFrameId(frameId) |
212 .release()); | 218 .release()); |
213 } | 219 } |
214 | 220 |
215 } // namespace WebCore | 221 } // namespace WebCore |
216 | 222 |
OLD | NEW |