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

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

Issue 1214863013: [DevTools] Remove ScriptDebugListener from V8Debugger. (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
« no previous file with comments | « no previous file | Source/core/inspector/ScriptDebuggerBase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 static LocalFrame* retrieveFrameWithGlobalObjectCheck(v8::Local<v8::Context> con text) 58 static LocalFrame* retrieveFrameWithGlobalObjectCheck(v8::Local<v8::Context> con text)
59 { 59 {
60 return toLocalFrame(toFrameIfNotDetached(context)); 60 return toLocalFrame(toFrameIfNotDetached(context));
61 } 61 }
62 62
63 // TODO(Oilpan): avoid keeping a raw reference separate from the 63 // TODO(Oilpan): avoid keeping a raw reference separate from the
64 // owner one; does not enable heap-movable objects. 64 // owner one; does not enable heap-movable objects.
65 MainThreadDebugger* MainThreadDebugger::s_instance = nullptr; 65 MainThreadDebugger* MainThreadDebugger::s_instance = nullptr;
66 66
67 MainThreadDebugger::MainThreadDebugger(PassOwnPtr<ClientMessageLoop> clientMessa geLoop, v8::Isolate* isolate) 67 MainThreadDebugger::MainThreadDebugger(PassOwnPtr<ClientMessageLoop> clientMessa geLoop, v8::Isolate* isolate)
68 : ScriptDebuggerBase(isolate, V8Debugger::create(isolate, this)) 68 : ScriptDebuggerBase(isolate)
69 , m_clientMessageLoop(clientMessageLoop) 69 , m_clientMessageLoop(clientMessageLoop)
70 , m_pausedFrame(nullptr) 70 , m_pausedFrame(nullptr)
71 , m_taskRunner(adoptPtr(new InspectorTaskRunner(isolate))) 71 , m_taskRunner(adoptPtr(new InspectorTaskRunner(isolate)))
72 { 72 {
73 MutexLocker locker(creationMutex()); 73 MutexLocker locker(creationMutex());
74 ASSERT(!s_instance); 74 ASSERT(!s_instance);
75 s_instance = this; 75 s_instance = this;
76 } 76 }
77 77
78 MainThreadDebugger::~MainThreadDebugger() 78 MainThreadDebugger::~MainThreadDebugger()
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 m_pausedFrame = 0; 178 m_pausedFrame = 0;
179 } 179 }
180 180
181 void MainThreadDebugger::quitMessageLoopOnPause() 181 void MainThreadDebugger::quitMessageLoopOnPause()
182 { 182 {
183 m_clientMessageLoop->quitNow(); 183 m_clientMessageLoop->quitNow();
184 } 184 }
185 185
186 } // namespace blink 186 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/ScriptDebuggerBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698