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

Side by Side Diff: Source/core/inspector/InspectorInstrumentationCustomInl.h

Issue 761143003: DevTools: remove ScriptPreprocessor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 21 matching lines...) Expand all
32 #define InspectorInstrumentationCustom_inl_h 32 #define InspectorInstrumentationCustom_inl_h
33 33
34 #include "bindings/core/v8/ScriptSourceCode.h" 34 #include "bindings/core/v8/ScriptSourceCode.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 namespace InspectorInstrumentation { 38 namespace InspectorInstrumentation {
39 39
40 bool isDebuggerPausedImpl(InstrumentingAgents*); 40 bool isDebuggerPausedImpl(InstrumentingAgents*);
41 bool collectingHTMLParseErrorsImpl(InstrumentingAgents*); 41 bool collectingHTMLParseErrorsImpl(InstrumentingAgents*);
42 ScriptSourceCode preprocessImpl(InstrumentingAgents*, LocalFrame*, const ScriptS ourceCode&);
43 String preprocessEventListenerImpl(InstrumentingAgents*, LocalFrame*, const Stri ng& source, const String& url, const String& functionName);
44 void appendAsyncCallStack(ExecutionContext*, ScriptCallStack*); 42 void appendAsyncCallStack(ExecutionContext*, ScriptCallStack*);
45 43
46 bool canvasAgentEnabled(ExecutionContext*); 44 bool canvasAgentEnabled(ExecutionContext*);
47 bool consoleAgentEnabled(ExecutionContext*); 45 bool consoleAgentEnabled(ExecutionContext*);
48 46
49 inline bool isDebuggerPaused(LocalFrame* frame) 47 inline bool isDebuggerPaused(LocalFrame* frame)
50 { 48 {
51 FAST_RETURN_IF_NO_FRONTENDS(false); 49 FAST_RETURN_IF_NO_FRONTENDS(false);
52 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame) ) 50 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame) )
53 return isDebuggerPausedImpl(instrumentingAgents); 51 return isDebuggerPausedImpl(instrumentingAgents);
54 return false; 52 return false;
55 } 53 }
56 54
57 inline bool collectingHTMLParseErrors(Document* document) 55 inline bool collectingHTMLParseErrors(Document* document)
58 { 56 {
59 FAST_RETURN_IF_NO_FRONTENDS(false); 57 FAST_RETURN_IF_NO_FRONTENDS(false);
60 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(docume nt)) 58 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(docume nt))
61 return collectingHTMLParseErrorsImpl(instrumentingAgents); 59 return collectingHTMLParseErrorsImpl(instrumentingAgents);
62 return false; 60 return false;
63 } 61 }
64 62
65 inline String preprocessEventListener(LocalFrame* frame, const String& source, c onst String& url, const String& functionName)
66 {
67 FAST_RETURN_IF_NO_FRONTENDS(source);
68 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame) )
69 return preprocessEventListenerImpl(instrumentingAgents, frame, source, u rl, functionName);
70 return source;
71 }
72
73 inline ScriptSourceCode preprocess(LocalFrame* frame, const ScriptSourceCode& so urceCode)
74 {
75 FAST_RETURN_IF_NO_FRONTENDS(ScriptSourceCode());
76 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsFor(frame) )
77 return preprocessImpl(instrumentingAgents, frame, sourceCode);
78 return ScriptSourceCode();
79 }
80
81 } // namespace InspectorInstrumentation 63 } // namespace InspectorInstrumentation
82 64
83 } // namespace blink 65 } // namespace blink
84 66
85 #endif // InspectorInstrumentationCustom_inl_h 67 #endif // InspectorInstrumentationCustom_inl_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.cpp ('k') | Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698