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

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: 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
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 protected: 90 protected:
91 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); 91 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview);
92 virtual ConsoleMessageStorage* messageStorage() = 0; 92 virtual ConsoleMessageStorage* messageStorage() = 0;
93 93
94 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; 94 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent;
95 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; 95 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
96 InspectorFrontend::Console* m_frontend; 96 InspectorFrontend::Console* m_frontend;
97 bool m_enabled; 97 bool m_enabled;
98 private: 98 private:
99 static int s_enabledAgentCount; 99 static int s_enabledAgentCount;
100 }; 100 };
101 101
102 } // namespace blink 102 } // namespace blink
103 103
104 104
105 #endif // !defined(InspectorConsoleAgent_h) 105 #endif // !defined(InspectorConsoleAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorConsoleAgent.cpp » ('j') | Source/core/xml/XMLHttpRequest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698