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

Unified Diff: Source/core/inspector/ConsoleMessage.h

Issue 464293002: [DevTools] ConsoleMessage storage moved from ConsoleAgent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@remove-can-generate
Patch Set: Rebased 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/ConsoleMessage.h
diff --git a/Source/core/inspector/ConsoleMessage.h b/Source/core/inspector/ConsoleMessage.h
index 8619924afc4431281ca944e9839247c12aa9b7e4..4e3c2e11659f0e0e6d02b02e8372c66a079ba0f3 100644
--- a/Source/core/inspector/ConsoleMessage.h
+++ b/Source/core/inspector/ConsoleMessage.h
@@ -7,15 +7,19 @@
#include "bindings/core/v8/ScriptState.h"
#include "core/frame/ConsoleTypes.h"
+#include "core/inspector/ConsoleAPITypes.h"
#include "core/inspector/ScriptCallStack.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
namespace blink {
+class InjectedScriptManager;
+class ScriptArguments;
class ScriptCallStack;
class ScriptState;
class WorkerGlobalScopeProxy;
@@ -39,13 +43,24 @@ public:
void setURL(const String&);
unsigned lineNumber() const;
void setLineNumber(unsigned);
+ PassRefPtr<ScriptArguments> scriptArguments() const;
+ void setScriptArguments(PassRefPtr<ScriptArguments>);
+ MessageType type() const;
+ void setType(MessageType);
+ double timestamp() const;
+ void setTimestamp(double);
+ WorkerGlobalScopeProxy* workerId() { return m_workerProxy; }
+ void setWorkerId(WorkerGlobalScopeProxy* proxy) { m_workerProxy = proxy; }
MessageSource source() const;
MessageLevel level() const;
const String& message() const;
unsigned columnNumber() const;
- void setWorkerId(WorkerGlobalScopeProxy* proxy) { m_workerProxy = proxy; }
- WorkerGlobalScopeProxy* workerId() { return m_workerProxy; }
+
+ void windowCleared(LocalDOMWindow*);
+ unsigned argumentCount();
+
+ void autogenerateMetadata();
void trace(Visitor*);
@@ -54,15 +69,18 @@ private:
ConsoleMessage(MessageSource, MessageLevel, const String& message, const String& url = String(), unsigned lineNumber = 0, unsigned columnNumber = 0);
MessageSource m_source;
+ MessageType m_type;
MessageLevel m_level;
String m_message;
String m_url;
unsigned m_lineNumber;
unsigned m_columnNumber;
+ RefPtr<ScriptArguments> m_arguments;
RefPtrWillBeMember<ScriptCallStack> m_callStack;
- ScriptState* m_scriptState;
+ OwnPtr<ScriptStateProtectingContext> m_scriptState;
unsigned long m_requestIdentifier;
WorkerGlobalScopeProxy* m_workerProxy;
+ double m_timestamp;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698