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

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

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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
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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 581
582 void InspectorPageAgent::didClearDocumentOfWindowObject(LocalFrame* frame) 582 void InspectorPageAgent::didClearDocumentOfWindowObject(LocalFrame* frame)
583 { 583 {
584 if (!frontend()) 584 if (!frontend())
585 return; 585 return;
586 586
587 protocol::DictionaryValue* scripts = m_state->getObject(PageAgentState::page AgentScriptsToEvaluateOnLoad); 587 protocol::DictionaryValue* scripts = m_state->getObject(PageAgentState::page AgentScriptsToEvaluateOnLoad);
588 if (scripts) { 588 if (scripts) {
589 for (size_t i = 0; i < scripts->size(); ++i) { 589 for (size_t i = 0; i < scripts->size(); ++i) {
590 auto script = scripts->at(i); 590 auto script = scripts->at(i);
591 String scriptText; 591 String16 scriptText;
592 if (script.second->asString(&scriptText)) 592 if (script.second->asString(&scriptText))
593 frame->script().executeScriptInMainWorld(scriptText); 593 frame->script().executeScriptInMainWorld(scriptText);
594 } 594 }
595 } 595 }
596 if (!m_scriptToEvaluateOnLoadOnce.isEmpty()) 596 if (!m_scriptToEvaluateOnLoadOnce.isEmpty())
597 frame->script().executeScriptInMainWorld(m_scriptToEvaluateOnLoadOnce); 597 frame->script().executeScriptInMainWorld(m_scriptToEvaluateOnLoadOnce);
598 } 598 }
599 599
600 void InspectorPageAgent::domContentLoadedEventFired(LocalFrame* frame) 600 void InspectorPageAgent::domContentLoadedEventFired(LocalFrame* frame)
601 { 601 {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 781
782 DEFINE_TRACE(InspectorPageAgent) 782 DEFINE_TRACE(InspectorPageAgent)
783 { 783 {
784 visitor->trace(m_inspectedFrames); 784 visitor->trace(m_inspectedFrames);
785 visitor->trace(m_debuggerAgent); 785 visitor->trace(m_debuggerAgent);
786 visitor->trace(m_inspectorResourceContentLoader); 786 visitor->trace(m_inspectorResourceContentLoader);
787 InspectorBaseAgent::trace(visitor); 787 InspectorBaseAgent::trace(visitor);
788 } 788 }
789 789
790 } // namespace blink 790 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698