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

Side by Side Diff: Source/core/inspector/ConsoleMessage.cpp

Issue 272613002: DevTools: implemented scriptFailedToParse protocol event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 , m_arguments(arguments) 106 , m_arguments(arguments)
107 , m_url() 107 , m_url()
108 , m_line(0) 108 , m_line(0)
109 , m_column(0) 109 , m_column(0)
110 , m_requestId(IdentifiersFactory::requestId(requestIdentifier)) 110 , m_requestId(IdentifiersFactory::requestId(requestIdentifier))
111 , m_timestamp(WTF::currentTime()) 111 , m_timestamp(WTF::currentTime())
112 { 112 {
113 autogenerateMetadata(canGenerateCallStack, scriptState); 113 autogenerateMetadata(canGenerateCallStack, scriptState);
114 } 114 }
115 115
116 ConsoleMessage::ConsoleMessage(bool, MessageSource source, MessageType type, Mes sageLevel level, const String& message, const String& url, unsigned line, unsign ed column, PassRefPtr<ScriptCallStack> callStack, ScriptState* scriptState, unsi gned long requestIdentifier)
117 : m_source(source)
118 , m_type(type)
119 , m_level(level)
120 , m_message(message)
121 , m_scriptState(scriptState)
122 , m_arguments(nullptr)
123 , m_callStack(callStack)
124 , m_url(url)
125 , m_line(line)
126 , m_column(column)
127 , m_requestId(IdentifiersFactory::requestId(requestIdentifier))
128 , m_timestamp(WTF::currentTime())
129 {
130 }
131
116 ConsoleMessage::~ConsoleMessage() 132 ConsoleMessage::~ConsoleMessage()
117 { 133 {
118 } 134 }
119 135
120 void ConsoleMessage::autogenerateMetadata(bool canGenerateCallStack, ScriptState * scriptState) 136 void ConsoleMessage::autogenerateMetadata(bool canGenerateCallStack, ScriptState * scriptState)
121 { 137 {
122 if (m_type == EndGroupMessageType) 138 if (m_type == EndGroupMessageType)
123 return; 139 return;
124 140
125 if (scriptState) 141 if (scriptState)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 267
252 unsigned ConsoleMessage::argumentCount() 268 unsigned ConsoleMessage::argumentCount()
253 { 269 {
254 if (m_arguments) 270 if (m_arguments)
255 return m_arguments->argumentCount(); 271 return m_arguments->argumentCount();
256 return 0; 272 return 0;
257 } 273 }
258 274
259 } // namespace WebCore 275 } // namespace WebCore
260 276
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698