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

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

Issue 325143002: Oilpan: Prepare moving inspector script related classes to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 6 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 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void enable(ErrorString*) OVERRIDE FINAL; 69 virtual void enable(ErrorString*) OVERRIDE FINAL;
70 virtual void disable(ErrorString*) OVERRIDE FINAL; 70 virtual void disable(ErrorString*) OVERRIDE FINAL;
71 virtual void clearMessages(ErrorString*) OVERRIDE; 71 virtual void clearMessages(ErrorString*) OVERRIDE;
72 bool enabled() { return m_enabled; } 72 bool enabled() { return m_enabled; }
73 void reset(); 73 void reset();
74 74
75 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; 75 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL;
76 virtual void clearFrontend() OVERRIDE FINAL; 76 virtual void clearFrontend() OVERRIDE FINAL;
77 virtual void restore() OVERRIDE FINAL; 77 virtual void restore() OVERRIDE FINAL;
78 78
79 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str ing& message, ScriptState*, ScriptArguments*, unsigned long requestIdentifier = 0); 79 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str ing& message, ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>, unsigned lo ng requestIdentifier = 0);
80 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str ing& message, const String& scriptId, unsigned lineNumber, unsigned columnNumber = 0, ScriptState* = 0, unsigned long requestIdentifier = 0); 80 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str ing& message, const String& scriptId, unsigned lineNumber, unsigned columnNumber = 0, ScriptState* = 0, unsigned long requestIdentifier = 0);
81 81
82 // FIXME: Remove once we no longer generate stacks outside of Inspector. 82 // FIXME: Remove once we no longer generate stacks outside of Inspector.
83 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str ing& message, ScriptCallStack*, unsigned long requestIdentifier = 0); 83 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str ing& message, PassRefPtrWillBeRawPtr<ScriptCallStack>, unsigned long requestIden tifier = 0);
84 84
85 Vector<unsigned> consoleMessageArgumentCounts(); 85 Vector<unsigned> consoleMessageArgumentCounts();
86 86
87 void consoleTime(ExecutionContext*, const String& title); 87 void consoleTime(ExecutionContext*, const String& title);
88 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*); 88 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*);
89 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); 89 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*);
90 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState* ); 90 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState* );
91 91
92 void consoleCount(ScriptState*, PassRefPtr<ScriptArguments>); 92 void consoleCount(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>);
93 93
94 void frameWindowDiscarded(DOMWindow*); 94 void frameWindowDiscarded(DOMWindow*);
95 void didCommitLoad(LocalFrame*, DocumentLoader*); 95 void didCommitLoad(LocalFrame*, DocumentLoader*);
96 96
97 void didFinishXHRLoading(XMLHttpRequest*, ThreadableLoaderClient*, unsigned long requestIdentifier, ScriptString, const AtomicString& method, const String& url, const String& sendURL, unsigned sendLineNumber); 97 void didFinishXHRLoading(XMLHttpRequest*, ThreadableLoaderClient*, unsigned long requestIdentifier, ScriptString, const AtomicString& method, const String& url, const String& sendURL, unsigned sendLineNumber);
98 void didReceiveResourceResponse(LocalFrame*, unsigned long requestIdentifier , DocumentLoader*, const ResourceResponse&, ResourceLoader*); 98 void didReceiveResourceResponse(LocalFrame*, unsigned long requestIdentifier , DocumentLoader*, const ResourceResponse&, ResourceLoader*);
99 void didFailLoading(unsigned long requestIdentifier, const ResourceError&); 99 void didFailLoading(unsigned long requestIdentifier, const ResourceError&);
100 void addProfileFinishedMessageToConsole(PassRefPtr<ScriptProfile>, unsigned lineNumber, const String& sourceURL); 100 void addProfileFinishedMessageToConsole(PassRefPtrWillBeRawPtr<ScriptProfile >, unsigned lineNumber, const String& sourceURL);
101 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum ber, const String& sourceURL); 101 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum ber, const String& sourceURL);
102 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) OVERRIDE; 102 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) OVERRIDE;
103 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; 103 virtual void addInspectedNode(ErrorString*, int nodeId) = 0;
104 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId) OVERRIDE; 104 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId) OVERRIDE;
105 105
106 virtual bool isWorkerAgent() = 0; 106 virtual bool isWorkerAgent() = 0;
107 107
108 protected: 108 protected:
109 void addConsoleMessage(PassOwnPtr<ConsoleMessage>); 109 void addConsoleMessage(PassOwnPtr<ConsoleMessage>);
110 110
111 InspectorTimelineAgent* m_timelineAgent; 111 InspectorTimelineAgent* m_timelineAgent;
112 InjectedScriptManager* m_injectedScriptManager; 112 InjectedScriptManager* m_injectedScriptManager;
113 InspectorFrontend::Console* m_frontend; 113 InspectorFrontend::Console* m_frontend;
114 Vector<OwnPtr<ConsoleMessage> > m_consoleMessages; 114 Vector<OwnPtr<ConsoleMessage> > m_consoleMessages;
115 int m_expiredConsoleMessageCount; 115 int m_expiredConsoleMessageCount;
116 HashCountedSet<String> m_counts; 116 HashCountedSet<String> m_counts;
117 HashMap<String, double> m_times; 117 HashMap<String, double> m_times;
118 bool m_enabled; 118 bool m_enabled;
119 private: 119 private:
120 static int s_enabledAgentCount; 120 static int s_enabledAgentCount;
121 }; 121 };
122 122
123 } // namespace WebCore 123 } // namespace WebCore
124 124
125 125
126 #endif // !defined(InspectorConsoleAgent_h) 126 #endif // !defined(InspectorConsoleAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/ConsoleMessage.cpp ('k') | Source/core/inspector/InspectorConsoleAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698