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

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

Issue 1514523004: DevTools: remove V8DebuggerListener and ScriptDebuggerBase abstractions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 5 years 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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 } 166 }
167 167
168 void PageRuntimeAgent::reportExecutionContext(ScriptState* scriptState, bool isP ageContext, const String& origin, const String& frameId) 168 void PageRuntimeAgent::reportExecutionContext(ScriptState* scriptState, bool isP ageContext, const String& origin, const String& frameId)
169 { 169 {
170 int executionContextId = injectedScriptManager()->injectedScriptIdFor(script State); 170 int executionContextId = injectedScriptManager()->injectedScriptIdFor(script State);
171 m_scriptStateToId.set(scriptState, executionContextId); 171 m_scriptStateToId.set(scriptState, executionContextId);
172 DOMWrapperWorld& world = scriptState->world(); 172 DOMWrapperWorld& world = scriptState->world();
173 String humanReadableName = world.isIsolatedWorld() ? world.isolatedWorldHuma nReadableName() : ""; 173 String humanReadableName = world.isIsolatedWorld() ? world.isolatedWorldHuma nReadableName() : "";
174 String type = isPageContext ? "" : "Extension"; 174 String type = isPageContext ? "" : "Extension";
175 InspectorRuntimeAgent::addExecutionContextToFrontend(executionContextId, typ e, origin, humanReadableName, frameId); 175 InspectorRuntimeAgent::reportExecutionContextCreated(executionContextId, typ e, origin, humanReadableName, frameId);
176 } 176 }
177 177
178 } // namespace blink 178 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698