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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 PassRefPtrWillBeRawPtr<InjectedScriptHost> InjectedScriptHost::create() 46 PassRefPtrWillBeRawPtr<InjectedScriptHost> InjectedScriptHost::create()
47 { 47 {
48 return adoptRefWillBeNoop(new InjectedScriptHost()); 48 return adoptRefWillBeNoop(new InjectedScriptHost());
49 } 49 }
50 50
51 InjectedScriptHost::InjectedScriptHost() 51 InjectedScriptHost::InjectedScriptHost()
52 : m_instrumentingAgents(nullptr) 52 : m_instrumentingAgents(nullptr)
53 , m_scriptDebugServer(0) 53 , m_scriptDebugServer(0)
54 { 54 {
55 ScriptWrappable::init(this);
56 m_defaultInspectableObject = adoptPtr(new InspectableObject()); 55 m_defaultInspectableObject = adoptPtr(new InspectableObject());
57 } 56 }
58 57
59 InjectedScriptHost::~InjectedScriptHost() 58 InjectedScriptHost::~InjectedScriptHost()
60 { 59 {
61 } 60 }
62 61
63 void InjectedScriptHost::trace(Visitor* visitor) 62 void InjectedScriptHost::trace(Visitor* visitor)
64 { 63 {
65 visitor->trace(m_instrumentingAgents); 64 visitor->trace(m_instrumentingAgents);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 141 }
143 142
144 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber) 143 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber)
145 { 144 {
146 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0) 145 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru mentingAgents->inspectorDebuggerAgent() : 0)
147 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp ectorDebuggerAgent::MonitorCommandBreakpointSource); 146 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp ectorDebuggerAgent::MonitorCommandBreakpointSource);
148 } 147 }
149 148
150 } // namespace blink 149 } // namespace blink
151 150
OLDNEW
« no previous file with comments | « Source/core/html/track/vtt/VTTRegionList.cpp ('k') | Source/core/inspector/InspectorFrontendHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698