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

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

Issue 2194063002: [DevTools] Move canExecuteScript to V8DebuggerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void WorkerThreadDebugger::beginEnsureAllContextsInGroup(int contextGroupId) 150 void WorkerThreadDebugger::beginEnsureAllContextsInGroup(int contextGroupId)
151 { 151 {
152 DCHECK(contextGroupId == workerContextGroupId); 152 DCHECK(contextGroupId == workerContextGroupId);
153 } 153 }
154 154
155 void WorkerThreadDebugger::endEnsureAllContextsInGroup(int contextGroupId) 155 void WorkerThreadDebugger::endEnsureAllContextsInGroup(int contextGroupId)
156 { 156 {
157 DCHECK(contextGroupId == workerContextGroupId); 157 DCHECK(contextGroupId == workerContextGroupId);
158 } 158 }
159 159
160 bool WorkerThreadDebugger::canExecuteScripts(int contextGroupId)
161 {
162 DCHECK(contextGroupId == workerContextGroupId);
163 return true;
164 }
165
160 void WorkerThreadDebugger::consoleAPIMessage(int contextGroupId, V8ConsoleAPITyp e type, const String16& message, const String16& url, unsigned lineNumber, unsig ned columnNumber, V8StackTrace* stackTrace) 166 void WorkerThreadDebugger::consoleAPIMessage(int contextGroupId, V8ConsoleAPITyp e type, const String16& message, const String16& url, unsigned lineNumber, unsig ned columnNumber, V8StackTrace* stackTrace)
161 { 167 {
162 DCHECK(contextGroupId == workerContextGroupId); 168 DCHECK(contextGroupId == workerContextGroupId);
163 if (type == V8ConsoleAPIType::kClear) 169 if (type == V8ConsoleAPIType::kClear)
164 m_workerThread->consoleMessageStorage()->clear(); 170 m_workerThread->consoleMessageStorage()->clear();
165 // TODO(dgozman): do not wrap in ConsoleMessage. 171 // TODO(dgozman): do not wrap in ConsoleMessage.
166 ConsoleMessage* consoleMessage = ConsoleMessage::create(ConsoleAPIMessageSou rce, consoleAPITypeToMessageLevel(type), message, SourceLocation::create(url, li neNumber, columnNumber, stackTrace ? stackTrace->clone() : nullptr, 0)); 172 ConsoleMessage* consoleMessage = ConsoleMessage::create(ConsoleAPIMessageSou rce, consoleAPITypeToMessageLevel(type), message, SourceLocation::create(url, li neNumber, columnNumber, stackTrace ? stackTrace->clone() : nullptr, 0));
167 m_workerThread->workerReportingProxy().reportConsoleMessage(consoleMessage); 173 m_workerThread->workerReportingProxy().reportConsoleMessage(consoleMessage);
168 } 174 }
169 175
170 v8::MaybeLocal<v8::Value> WorkerThreadDebugger::memoryInfo(v8::Isolate*, v8::Loc al<v8::Context>) 176 v8::MaybeLocal<v8::Value> WorkerThreadDebugger::memoryInfo(v8::Isolate*, v8::Loc al<v8::Context>)
171 { 177 {
172 ASSERT_NOT_REACHED(); 178 ASSERT_NOT_REACHED();
173 return v8::MaybeLocal<v8::Value>(); 179 return v8::MaybeLocal<v8::Value>();
174 } 180 }
175 181
176 } // namespace blink 182 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698