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

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

Issue 667393002: [XHR] No need to remember line number and URL on send() for inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 2 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 | « no previous file | Source/core/inspector/InspectorConsoleAgent.cpp » ('j') | 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 void addMessageToConsole(ConsoleMessage*); 72 void addMessageToConsole(ConsoleMessage*);
73 void consoleMessagesCleared(); 73 void consoleMessagesCleared();
74 74
75 void setTracingBasedTimeline(ErrorString*, bool enabled); 75 void setTracingBasedTimeline(ErrorString*, bool enabled);
76 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); 76 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*);
77 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState* ); 77 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState* );
78 78
79 void didCommitLoad(LocalFrame*, DocumentLoader*); 79 void didCommitLoad(LocalFrame*, DocumentLoader*);
80 80
81 void didFinishXHRLoading(XMLHttpRequest*, ThreadableLoaderClient*, unsigned long requestIdentifier, ScriptString, const AtomicString& method, const String& url, const String& sendURL, unsigned sendLineNumber); 81 void didFinishXHRLoading(XMLHttpRequest*, ThreadableLoaderClient*, unsigned long requestIdentifier, ScriptString, const AtomicString& method, const String& url);
82 void addProfileFinishedMessageToConsole(PassRefPtrWillBeRawPtr<ScriptProfile >, unsigned lineNumber, const String& sourceURL); 82 void addProfileFinishedMessageToConsole(PassRefPtrWillBeRawPtr<ScriptProfile >, unsigned lineNumber, const String& sourceURL);
83 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum ber, const String& sourceURL); 83 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum ber, const String& sourceURL);
84 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) override; 84 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) override;
85 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; 85 virtual void addInspectedNode(ErrorString*, int nodeId) = 0;
86 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId) override; 86 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId) override;
87 87
88 virtual bool isWorkerAgent() = 0; 88 virtual bool isWorkerAgent() = 0;
89 89
90 virtual void setLastEvaluationResult(ErrorString*, const String& objectId) o verride; 90 virtual void setLastEvaluationResult(ErrorString*, const String& objectId) o verride;
91 91
92 protected: 92 protected:
93 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); 93 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview);
94 virtual ConsoleMessageStorage* messageStorage() = 0; 94 virtual ConsoleMessageStorage* messageStorage() = 0;
95 95
96 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; 96 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent;
97 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; 97 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
98 InspectorFrontend::Console* m_frontend; 98 InspectorFrontend::Console* m_frontend;
99 bool m_enabled; 99 bool m_enabled;
100 private: 100 private:
101 static int s_enabledAgentCount; 101 static int s_enabledAgentCount;
102 }; 102 };
103 103
104 } // namespace blink 104 } // namespace blink
105 105
106 106
107 #endif // !defined(InspectorConsoleAgent_h) 107 #endif // !defined(InspectorConsoleAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorConsoleAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698