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

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

Issue 1857713004: DevTools: simplify the async instrumentation harness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/inspector/ThreadDebugger.h" 5 #include "core/inspector/ThreadDebugger.h"
6 6
7 #include "bindings/core/v8/V8Binding.h" 7 #include "bindings/core/v8/V8Binding.h"
8 #include "bindings/core/v8/V8DOMException.h" 8 #include "bindings/core/v8/V8DOMException.h"
9 #include "bindings/core/v8/V8DOMTokenList.h" 9 #include "bindings/core/v8/V8DOMTokenList.h"
10 #include "bindings/core/v8/V8HTMLAllCollection.h" 10 #include "bindings/core/v8/V8HTMLAllCollection.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 if (V8DOMException::hasInstance(value, m_isolate)) 45 if (V8DOMException::hasInstance(value, m_isolate))
46 return "error"; 46 return "error";
47 return String(); 47 return String();
48 } 48 }
49 49
50 bool ThreadDebugger::formatAccessorsAsProperties(v8::Local<v8::Value> value) 50 bool ThreadDebugger::formatAccessorsAsProperties(v8::Local<v8::Value> value)
51 { 51 {
52 return V8DOMWrapper::isWrapper(m_isolate, value); 52 return V8DOMWrapper::isWrapper(m_isolate, value);
53 } 53 }
54 54
55 bool ThreadDebugger::hasRecursionLevel()
56 {
57 return !!v8::MicrotasksScope::GetCurrentDepth(m_isolate);
58 }
59
60 bool ThreadDebugger::isExecutionAllowed() 55 bool ThreadDebugger::isExecutionAllowed()
61 { 56 {
62 return !ScriptForbiddenScope::isScriptForbidden(); 57 return !ScriptForbiddenScope::isScriptForbidden();
63 } 58 }
64 59
65 double ThreadDebugger::currentTimeMS() 60 double ThreadDebugger::currentTimeMS()
66 { 61 {
67 return WTF::currentTimeMS(); 62 return WTF::currentTimeMS();
68 } 63 }
69 64
70 65
71 } // namespace blink 66 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/ThreadDebugger.h ('k') | third_party/WebKit/Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698