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

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

Issue 206073005: PassRefPtr is stolen by first agent invocation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: chmod Created 6 years, 9 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*, PassRefPtr<ScriptArguments>, unsigned long requestId entifier = 0); 79 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str ing& message, ScriptState*, ScriptArguments*, 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); 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, PassRefPtr<ScriptCallStack>, unsigned long requestIdentifier = 0); 83 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str ing& message, ScriptCallStack*, unsigned long requestIdentifier = 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*, PassRefPtr<ScriptArguments>);
93 93
(...skipping 24 matching lines...) Expand all
118 HashMap<String, double> m_times; 118 HashMap<String, double> m_times;
119 bool m_enabled; 119 bool m_enabled;
120 private: 120 private:
121 static int s_enabledAgentCount; 121 static int s_enabledAgentCount;
122 }; 122 };
123 123
124 } // namespace WebCore 124 } // namespace WebCore
125 125
126 126
127 #endif // !defined(InspectorConsoleAgent_h) 127 #endif // !defined(InspectorConsoleAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698