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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 { 61 {
62 } 62 }
63 63
64 DEFINE_TRACE(InjectedScriptHost) 64 DEFINE_TRACE(InjectedScriptHost)
65 { 65 {
66 visitor->trace(m_consoleAgent); 66 visitor->trace(m_consoleAgent);
67 visitor->trace(m_inspectedObjects); 67 visitor->trace(m_inspectedObjects);
68 visitor->trace(m_defaultInspectableObject); 68 visitor->trace(m_defaultInspectableObject);
69 } 69 }
70 70
71 void InjectedScriptHost::init(InspectorConsoleAgent* consoleAgent, V8DebuggerAge nt* debuggerAgent, PassOwnPtr<InspectCallback> inspectCallback, V8Debugger* debu gger, PassOwnPtr<InjectedScriptHostClient> injectedScriptHostClient)
72 {
73 m_consoleAgent = consoleAgent;
74 m_debuggerAgent = debuggerAgent;
75 m_inspectCallback = inspectCallback;
76 m_debugger = debugger;
77 m_client = injectedScriptHostClient;
78 }
79
71 void InjectedScriptHost::disconnect() 80 void InjectedScriptHost::disconnect()
72 { 81 {
73 m_consoleAgent = nullptr; 82 m_consoleAgent = nullptr;
74 m_debuggerAgent = nullptr; 83 m_debuggerAgent = nullptr;
75 m_inspectCallback = nullptr; 84 m_inspectCallback = nullptr;
76 m_debugger = nullptr; 85 m_debugger = nullptr;
77 } 86 }
78 87
79 void InjectedScriptHost::inspectImpl(PassRefPtr<JSONValue> object, PassRefPtr<JS ONValue> hints) 88 void InjectedScriptHost::inspectImpl(PassRefPtr<JSONValue> object, PassRefPtr<JS ONValue> hints)
80 { 89 {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, V8Deb uggerAgent::MonitorCommandBreakpointSource, builder.toString()); 155 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, V8Deb uggerAgent::MonitorCommandBreakpointSource, builder.toString());
147 } 156 }
148 157
149 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber) 158 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber)
150 { 159 {
151 if (m_debuggerAgent) 160 if (m_debuggerAgent)
152 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, V8 DebuggerAgent::MonitorCommandBreakpointSource); 161 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, V8 DebuggerAgent::MonitorCommandBreakpointSource);
153 } 162 }
154 163
155 } // namespace blink 164 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698