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

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

Issue 1216863004: [DevTools] Move debugger classes to core/inspector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 16 matching lines...) Expand all
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 32
33 #include "bindings/core/v8/ScriptCallStackFactory.h" 33 #include "bindings/core/v8/ScriptCallStackFactory.h"
34 #include "bindings/core/v8/ScriptRegexp.h" 34 #include "bindings/core/v8/ScriptRegexp.h"
35 #include "bindings/core/v8/ScriptValue.h" 35 #include "bindings/core/v8/ScriptValue.h"
36 #include "bindings/core/v8/V8Binding.h" 36 #include "bindings/core/v8/V8Binding.h"
37 #include "bindings/core/v8/V8Debugger.h"
38 #include "bindings/core/v8/V8RecursionScope.h" 37 #include "bindings/core/v8/V8RecursionScope.h"
39 #include "bindings/core/v8/V8ScriptRunner.h" 38 #include "bindings/core/v8/V8ScriptRunner.h"
40 #include "core/dom/Microtask.h" 39 #include "core/dom/Microtask.h"
41 #include "core/inspector/AsyncCallChain.h" 40 #include "core/inspector/AsyncCallChain.h"
42 #include "core/inspector/ConsoleMessage.h" 41 #include "core/inspector/ConsoleMessage.h"
43 #include "core/inspector/ContentSearchUtils.h" 42 #include "core/inspector/ContentSearchUtils.h"
44 #include "core/inspector/InjectedScript.h" 43 #include "core/inspector/InjectedScript.h"
45 #include "core/inspector/InjectedScriptManager.h" 44 #include "core/inspector/InjectedScriptManager.h"
46 #include "core/inspector/InspectorState.h" 45 #include "core/inspector/InspectorState.h"
47 #include "core/inspector/InstrumentingAgents.h" 46 #include "core/inspector/InstrumentingAgents.h"
48 #include "core/inspector/JavaScriptCallFrame.h" 47 #include "core/inspector/JavaScriptCallFrame.h"
49 #include "core/inspector/ScriptAsyncCallStack.h" 48 #include "core/inspector/ScriptAsyncCallStack.h"
50 #include "core/inspector/ScriptCallFrame.h" 49 #include "core/inspector/ScriptCallFrame.h"
51 #include "core/inspector/ScriptCallStack.h" 50 #include "core/inspector/ScriptCallStack.h"
52 #include "core/inspector/V8AsyncCallTracker.h" 51 #include "core/inspector/V8AsyncCallTracker.h"
52 #include "core/inspector/V8Debugger.h"
53 #include "platform/JSONValues.h" 53 #include "platform/JSONValues.h"
54 #include "wtf/text/StringBuilder.h" 54 #include "wtf/text/StringBuilder.h"
55 #include "wtf/text/WTFString.h" 55 #include "wtf/text/WTFString.h"
56 56
57 using blink::TypeBuilder::Array; 57 using blink::TypeBuilder::Array;
58 using blink::TypeBuilder::Console::AsyncStackTrace; 58 using blink::TypeBuilder::Console::AsyncStackTrace;
59 using blink::TypeBuilder::Debugger::AsyncOperation; 59 using blink::TypeBuilder::Debugger::AsyncOperation;
60 using blink::TypeBuilder::Debugger::BreakpointId; 60 using blink::TypeBuilder::Debugger::BreakpointId;
61 using blink::TypeBuilder::Debugger::CallFrame; 61 using blink::TypeBuilder::Debugger::CallFrame;
62 using blink::TypeBuilder::Debugger::CollectionEntry; 62 using blink::TypeBuilder::Debugger::CollectionEntry;
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 RefPtr<ExceptionDetails> exceptionDetails = ExceptionDetails::create().setTe xt(toCoreStringWithUndefinedOrNullCheck(message->Get())); 1712 RefPtr<ExceptionDetails> exceptionDetails = ExceptionDetails::create().setTe xt(toCoreStringWithUndefinedOrNullCheck(message->Get()));
1713 exceptionDetails->setLine(message->GetLineNumber()); 1713 exceptionDetails->setLine(message->GetLineNumber());
1714 exceptionDetails->setColumn(message->GetStartColumn()); 1714 exceptionDetails->setColumn(message->GetStartColumn());
1715 v8::Local<v8::StackTrace> messageStackTrace = message->GetStackTrace(); 1715 v8::Local<v8::StackTrace> messageStackTrace = message->GetStackTrace();
1716 if (!messageStackTrace.IsEmpty() && messageStackTrace->GetFrameCount() > 0) 1716 if (!messageStackTrace.IsEmpty() && messageStackTrace->GetFrameCount() > 0)
1717 exceptionDetails->setStackTrace(createScriptCallStack(isolate, messageSt ackTrace, messageStackTrace->GetFrameCount())->buildInspectorArray()); 1717 exceptionDetails->setStackTrace(createScriptCallStack(isolate, messageSt ackTrace, messageStackTrace->GetFrameCount())->buildInspectorArray());
1718 return exceptionDetails.release(); 1718 return exceptionDetails.release();
1719 } 1719 }
1720 1720
1721 } // namespace blink 1721 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.cpp ('k') | Source/core/inspector/InspectorRuntimeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698