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

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

Issue 472023002: [DevTools] ConsoleAPI messages pass through frame console (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: PassRefPtr<ConsoleMessage> -> PassRefPtrWillBeRawPtr<ConsoleMessage> Created 6 years, 4 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void enable(ErrorString*) OVERRIDE FINAL; 73 virtual void enable(ErrorString*) OVERRIDE FINAL;
74 virtual void disable(ErrorString*) OVERRIDE FINAL; 74 virtual void disable(ErrorString*) OVERRIDE FINAL;
75 virtual void clearMessages(ErrorString*) OVERRIDE; 75 virtual void clearMessages(ErrorString*) OVERRIDE;
76 bool enabled() { return m_enabled; } 76 bool enabled() { return m_enabled; }
77 void reset(); 77 void reset();
78 78
79 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; 79 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL;
80 virtual void clearFrontend() OVERRIDE FINAL; 80 virtual void clearFrontend() OVERRIDE FINAL;
81 virtual void restore() OVERRIDE FINAL; 81 virtual void restore() OVERRIDE FINAL;
82 82
83 void addConsoleAPIMessageToConsole(MessageType, MessageLevel, const String& message, ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>, unsigned long re questIdentifier = 0);
84 void addMessageToConsole(ConsoleMessage*); 83 void addMessageToConsole(ConsoleMessage*);
85 void adoptWorkerConsoleMessages(WorkerGlobalScopeProxy*); 84 void adoptWorkerConsoleMessages(WorkerGlobalScopeProxy*);
86 Vector<unsigned> consoleMessageArgumentCounts(); 85 Vector<unsigned> consoleMessageArgumentCounts();
87 86
88 void consoleTime(ExecutionContext*, const String& title); 87 void consoleTime(ExecutionContext*, const String& title);
89 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*); 88 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*);
90 void setTracingBasedTimeline(ErrorString*, bool enabled); 89 void setTracingBasedTimeline(ErrorString*, bool enabled);
91 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); 90 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*);
92 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState* ); 91 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState* );
93 92
(...skipping 26 matching lines...) Expand all
120 HashMap<String, double> m_times; 119 HashMap<String, double> m_times;
121 bool m_enabled; 120 bool m_enabled;
122 private: 121 private:
123 static int s_enabledAgentCount; 122 static int s_enabledAgentCount;
124 }; 123 };
125 124
126 } // namespace blink 125 } // namespace blink
127 126
128 127
129 #endif // !defined(InspectorConsoleAgent_h) 128 #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