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

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

Issue 900543003: DevTools: do not abuse inspector controller for the front-end side plumbing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed initializer. Created 5 years, 10 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/InspectorInspectorAgent.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorInspectorAgent.cpp
diff --git a/Source/core/inspector/InspectorInspectorAgent.cpp b/Source/core/inspector/InspectorInspectorAgent.cpp
index 43f7ff54ce19b59ee7bb1626d47ad108a53586d0..caf993d990c322e49c2f6b533126f58698f0b805 100644
--- a/Source/core/inspector/InspectorInspectorAgent.cpp
+++ b/Source/core/inspector/InspectorInspectorAgent.cpp
@@ -75,24 +75,6 @@ void InspectorInspectorAgent::trace(Visitor* visitor)
InspectorBaseAgent::trace(visitor);
}
-void InspectorInspectorAgent::didClearDocumentOfWindowObject(LocalFrame* frame)
-{
- if (m_injectedScriptForOrigin.isEmpty())
- return;
-
- String origin = frame->document()->securityOrigin()->toRawString();
- String script = m_injectedScriptForOrigin.get(origin);
- if (script.isEmpty())
- return;
- int injectedScriptId = m_injectedScriptManager->injectedScriptIdFor(ScriptState::forMainWorld(frame));
- StringBuilder scriptSource;
- scriptSource.append(script);
- scriptSource.append('(');
- scriptSource.appendNumber(injectedScriptId);
- scriptSource.append(')');
- frame->script().executeScriptInMainWorld(scriptSource.toString());
-}
-
void InspectorInspectorAgent::init()
{
m_instrumentingAgents->setInspectorInspectorAgent(this);
@@ -152,11 +134,6 @@ void InspectorInspectorAgent::evaluateForTestInFrontend(long callId, const Strin
}
}
-void InspectorInspectorAgent::setInjectedScriptForOrigin(const String& origin, const String& source)
-{
- m_injectedScriptForOrigin.set(origin, source);
-}
-
void InspectorInspectorAgent::inspect(PassRefPtr<TypeBuilder::Runtime::RemoteObject> objectToInspect, PassRefPtr<JSONObject> hints)
{
if (m_state->getBoolean(InspectorAgentState::inspectorAgentEnabled) && m_frontend) {
« no previous file with comments | « Source/core/inspector/InspectorInspectorAgent.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698