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

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

Issue 447553002: Remove inspector deadcode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 return; 140 return;
141 141
142 reset(); 142 reset();
143 143
144 scriptDebugServer().setPreprocessorSource(String()); 144 scriptDebugServer().setPreprocessorSource(String());
145 ASSERT(m_pageAgent); 145 ASSERT(m_pageAgent);
146 if (!m_pageAgent->scriptPreprocessorSource().isEmpty()) 146 if (!m_pageAgent->scriptPreprocessorSource().isEmpty())
147 scriptDebugServer().setPreprocessorSource(m_pageAgent->scriptPreprocesso rSource()); 147 scriptDebugServer().setPreprocessorSource(m_pageAgent->scriptPreprocesso rSource());
148 } 148 }
149 149
150 String PageDebuggerAgent::preprocessEventListener(LocalFrame* frame, const Strin g& source, const String& url, const String& functionName)
vsevik 2014/08/06 07:26:39 I believe this is actually the code that was inten
pdr. 2014/08/06 20:11:47 I see what you mean, but I think this was just add
vsevik 2014/08/07 13:43:35 I meant that we might want to add another implemen
151 {
152 ASSERT(frame);
153 ASSERT(m_pageScriptDebugServer);
154 return m_pageScriptDebugServer->preprocessEventListener(frame, source, url, functionName);
155 }
156
157 PassOwnPtr<ScriptSourceCode> PageDebuggerAgent::preprocess(LocalFrame* frame, co nst ScriptSourceCode& sourceCode)
158 {
159 ASSERT(m_pageScriptDebugServer);
160 ASSERT(frame);
161 return m_pageScriptDebugServer->preprocess(frame, sourceCode);
162 }
163
164 void PageDebuggerAgent::didCommitLoad(LocalFrame* frame, DocumentLoader* loader) 150 void PageDebuggerAgent::didCommitLoad(LocalFrame* frame, DocumentLoader* loader)
165 { 151 {
166 Frame* mainFrame = frame->page()->deprecatedLocalMainFrame(); 152 Frame* mainFrame = frame->page()->deprecatedLocalMainFrame();
167 if (loader->frame() == mainFrame) 153 if (loader->frame() == mainFrame)
168 pageDidCommitLoad(); 154 pageDidCommitLoad();
169 } 155 }
170 156
171 } // namespace blink 157 } // namespace blink
172 158
OLDNEW
« no previous file with comments | « Source/core/inspector/PageDebuggerAgent.h ('k') | Source/platform/graphics/GraphicsContextRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698