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

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

Issue 293963003: Remove ScriptObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "core/inspector/InspectorDebuggerAgent.h" 31 #include "core/inspector/InspectorDebuggerAgent.h"
32 #include "core/inspector/JavaScriptCallFrame.h" 32 #include "core/inspector/JavaScriptCallFrame.h"
33 33
34 #include "bindings/v8/ScriptDebugServer.h" 34 #include "bindings/v8/ScriptDebugServer.h"
35 #include "bindings/v8/ScriptObject.h"
36 #include "bindings/v8/ScriptRegexp.h" 35 #include "bindings/v8/ScriptRegexp.h"
37 #include "bindings/v8/ScriptSourceCode.h" 36 #include "bindings/v8/ScriptSourceCode.h"
37 #include "bindings/v8/ScriptValue.h"
38 #include "core/dom/Document.h" 38 #include "core/dom/Document.h"
39 #include "core/fetch/Resource.h" 39 #include "core/fetch/Resource.h"
40 #include "core/inspector/ContentSearchUtils.h" 40 #include "core/inspector/ContentSearchUtils.h"
41 #include "core/inspector/InjectedScriptManager.h" 41 #include "core/inspector/InjectedScriptManager.h"
42 #include "core/inspector/InspectorPageAgent.h" 42 #include "core/inspector/InspectorPageAgent.h"
43 #include "core/inspector/InspectorState.h" 43 #include "core/inspector/InspectorState.h"
44 #include "core/inspector/InstrumentingAgents.h" 44 #include "core/inspector/InstrumentingAgents.h"
45 #include "core/inspector/ScriptArguments.h" 45 #include "core/inspector/ScriptArguments.h"
46 #include "core/inspector/ScriptCallStack.h" 46 #include "core/inspector/ScriptCallStack.h"
47 #include "platform/JSONValues.h" 47 #include "platform/JSONValues.h"
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 { 781 {
782 if (m_asyncCallStackTracker.isEnabled()) 782 if (m_asyncCallStackTracker.isEnabled())
783 m_asyncCallStackTracker.didFireAsyncCall(); 783 m_asyncCallStackTracker.didFireAsyncCall();
784 } 784 }
785 785
786 bool InspectorDebuggerAgent::isPromiseTrackerEnabled() 786 bool InspectorDebuggerAgent::isPromiseTrackerEnabled()
787 { 787 {
788 return m_promiseTracker.isEnabled(); 788 return m_promiseTracker.isEnabled();
789 } 789 }
790 790
791 void InspectorDebuggerAgent::didCreatePromise(const ScriptObject& promise) 791 void InspectorDebuggerAgent::didCreatePromise(const ScriptValue& promise)
792 { 792 {
793 if (m_promiseTracker.isEnabled()) 793 if (m_promiseTracker.isEnabled())
794 m_promiseTracker.didCreatePromise(promise); 794 m_promiseTracker.didCreatePromise(promise);
795 } 795 }
796 796
797 void InspectorDebuggerAgent::didUpdatePromiseParent(const ScriptObject& promise, const ScriptObject& parentPromise) 797 void InspectorDebuggerAgent::didUpdatePromiseParent(const ScriptValue& promise, const ScriptValue& parentPromise)
798 { 798 {
799 if (m_promiseTracker.isEnabled()) 799 if (m_promiseTracker.isEnabled())
800 m_promiseTracker.didUpdatePromiseParent(promise, parentPromise); 800 m_promiseTracker.didUpdatePromiseParent(promise, parentPromise);
801 } 801 }
802 802
803 void InspectorDebuggerAgent::didUpdatePromiseState(const ScriptObject& promise, V8PromiseCustom::PromiseState state, const ScriptValue& result) 803 void InspectorDebuggerAgent::didUpdatePromiseState(const ScriptValue& promise, V 8PromiseCustom::PromiseState state, const ScriptValue& result)
804 { 804 {
805 if (m_promiseTracker.isEnabled()) 805 if (m_promiseTracker.isEnabled())
806 m_promiseTracker.didUpdatePromiseState(promise, state, result); 806 m_promiseTracker.didUpdatePromiseState(promise, state, result);
807 } 807 }
808 808
809 void InspectorDebuggerAgent::pause(ErrorString*) 809 void InspectorDebuggerAgent::pause(ErrorString*)
810 { 810 {
811 if (m_javaScriptPauseScheduled) 811 if (m_javaScriptPauseScheduled)
812 return; 812 return;
813 clearBreakDetails(); 813 clearBreakDetails();
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 m_scripts.clear(); 1284 m_scripts.clear();
1285 m_breakpointIdToDebugServerBreakpointIds.clear(); 1285 m_breakpointIdToDebugServerBreakpointIds.clear();
1286 m_asyncCallStackTracker.clear(); 1286 m_asyncCallStackTracker.clear();
1287 m_promiseTracker.clear(); 1287 m_promiseTracker.clear();
1288 if (m_frontend) 1288 if (m_frontend)
1289 m_frontend->globalObjectCleared(); 1289 m_frontend->globalObjectCleared();
1290 } 1290 }
1291 1291
1292 } // namespace WebCore 1292 } // namespace WebCore
1293 1293
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698