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

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

Issue 2720213002: Removed FrameHost::deprecation() (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounterTest.cpp ('k') | no next file » | 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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/inspector/MainThreadDebugger.h" 31 #include "core/inspector/MainThreadDebugger.h"
32 32
33 #include <memory> 33 #include <memory>
34
34 #include "bindings/core/v8/BindingSecurity.h" 35 #include "bindings/core/v8/BindingSecurity.h"
35 #include "bindings/core/v8/DOMWrapperWorld.h" 36 #include "bindings/core/v8/DOMWrapperWorld.h"
36 #include "bindings/core/v8/ScriptController.h" 37 #include "bindings/core/v8/ScriptController.h"
37 #include "bindings/core/v8/SourceLocation.h" 38 #include "bindings/core/v8/SourceLocation.h"
38 #include "bindings/core/v8/V8ErrorHandler.h" 39 #include "bindings/core/v8/V8ErrorHandler.h"
39 #include "bindings/core/v8/V8Node.h" 40 #include "bindings/core/v8/V8Node.h"
40 #include "bindings/core/v8/V8Window.h" 41 #include "bindings/core/v8/V8Window.h"
41 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" 42 #include "bindings/core/v8/WorkerOrWorkletScriptController.h"
42 #include "core/dom/ContainerNode.h" 43 #include "core/dom/ContainerNode.h"
43 #include "core/dom/Document.h" 44 #include "core/dom/Document.h"
44 #include "core/dom/Element.h" 45 #include "core/dom/Element.h"
45 #include "core/dom/ExecutionContext.h" 46 #include "core/dom/ExecutionContext.h"
46 #include "core/dom/StaticNodeList.h" 47 #include "core/dom/StaticNodeList.h"
47 #include "core/events/ErrorEvent.h" 48 #include "core/events/ErrorEvent.h"
48 #include "core/frame/Deprecation.h" 49 #include "core/frame/Deprecation.h"
49 #include "core/frame/FrameConsole.h" 50 #include "core/frame/FrameConsole.h"
50 #include "core/frame/FrameHost.h" 51 #include "core/frame/FrameHost.h"
51 #include "core/frame/LocalDOMWindow.h" 52 #include "core/frame/LocalDOMWindow.h"
52 #include "core/frame/LocalFrame.h" 53 #include "core/frame/LocalFrame.h"
53 #include "core/frame/Settings.h" 54 #include "core/frame/Settings.h"
54 #include "core/frame/UseCounter.h" 55 #include "core/frame/UseCounter.h"
55 #include "core/inspector/ConsoleMessage.h" 56 #include "core/inspector/ConsoleMessage.h"
56 #include "core/inspector/ConsoleMessageStorage.h" 57 #include "core/inspector/ConsoleMessageStorage.h"
57 #include "core/inspector/IdentifiersFactory.h" 58 #include "core/inspector/IdentifiersFactory.h"
58 #include "core/inspector/InspectedFrames.h" 59 #include "core/inspector/InspectedFrames.h"
59 #include "core/inspector/InspectorTaskRunner.h" 60 #include "core/inspector/InspectorTaskRunner.h"
60 #include "core/inspector/V8InspectorString.h" 61 #include "core/inspector/V8InspectorString.h"
61 #include "core/inspector/protocol/Protocol.h" 62 #include "core/inspector/protocol/Protocol.h"
63 #include "core/page/Page.h"
62 #include "core/timing/MemoryInfo.h" 64 #include "core/timing/MemoryInfo.h"
63 #include "core/workers/MainThreadWorkletGlobalScope.h" 65 #include "core/workers/MainThreadWorkletGlobalScope.h"
64 #include "core/xml/XPathEvaluator.h" 66 #include "core/xml/XPathEvaluator.h"
65 #include "core/xml/XPathResult.h" 67 #include "core/xml/XPathResult.h"
66 #include "platform/UserGestureIndicator.h" 68 #include "platform/UserGestureIndicator.h"
67 #include "wtf/PtrUtil.h" 69 #include "wtf/PtrUtil.h"
68 #include "wtf/ThreadingPrimitives.h" 70 #include "wtf/ThreadingPrimitives.h"
69 71
70 namespace blink { 72 namespace blink {
71 73
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 252 }
251 253
252 void MainThreadDebugger::quitMessageLoopOnPause() { 254 void MainThreadDebugger::quitMessageLoopOnPause() {
253 m_paused = false; 255 m_paused = false;
254 if (m_clientMessageLoop) 256 if (m_clientMessageLoop)
255 m_clientMessageLoop->quitNow(); 257 m_clientMessageLoop->quitNow();
256 } 258 }
257 259
258 void MainThreadDebugger::muteMetrics(int contextGroupId) { 260 void MainThreadDebugger::muteMetrics(int contextGroupId) {
259 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId); 261 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId);
260 if (frame && frame->host()) { 262 if (frame && frame->page()) {
261 frame->host()->useCounter().muteForInspector(); 263 frame->page()->useCounter().muteForInspector();
262 frame->host()->deprecation().muteForInspector(); 264 frame->page()->deprecation().muteForInspector();
263 } 265 }
264 } 266 }
265 267
266 void MainThreadDebugger::unmuteMetrics(int contextGroupId) { 268 void MainThreadDebugger::unmuteMetrics(int contextGroupId) {
267 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId); 269 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId);
268 if (frame && frame->host()) { 270 if (frame && frame->page()) {
269 frame->host()->useCounter().unmuteForInspector(); 271 frame->page()->useCounter().unmuteForInspector();
270 frame->host()->deprecation().unmuteForInspector(); 272 frame->page()->deprecation().unmuteForInspector();
271 } 273 }
272 } 274 }
273 275
274 v8::Local<v8::Context> MainThreadDebugger::ensureDefaultContextInGroup( 276 v8::Local<v8::Context> MainThreadDebugger::ensureDefaultContextInGroup(
275 int contextGroupId) { 277 int contextGroupId) {
276 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId); 278 LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId);
277 ScriptState* scriptState = frame ? ScriptState::forMainWorld(frame) : nullptr; 279 ScriptState* scriptState = frame ? ScriptState::forMainWorld(frame) : nullptr;
278 return scriptState ? scriptState->context() : v8::Local<v8::Context>(); 280 return scriptState ? scriptState->context() : v8::Local<v8::Context>();
279 } 281 }
280 282
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 context, nodes, index++, 462 context, nodes, index++,
461 ToV8(node, info.Holder(), info.GetIsolate())) 463 ToV8(node, info.Holder(), info.GetIsolate()))
462 .FromMaybe(false)) 464 .FromMaybe(false))
463 return; 465 return;
464 } 466 }
465 info.GetReturnValue().Set(nodes); 467 info.GetReturnValue().Set(nodes);
466 } 468 }
467 } 469 }
468 470
469 } // namespace blink 471 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698