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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/inspector/InspectorLogAgent.h" 5 #include "core/inspector/InspectorLogAgent.h"
6 6
7 #include "bindings/core/v8/SourceLocation.h" 7 #include "bindings/core/v8/SourceLocation.h"
8 #include "core/frame/PerformanceMonitor.h" 8 #include "core/frame/PerformanceMonitor.h"
9 #include "core/inspector/ConsoleMessage.h" 9 #include "core/inspector/ConsoleMessage.h"
10 #include "core/inspector/ConsoleMessageStorage.h" 10 #include "core/inspector/ConsoleMessageStorage.h"
11 #include "core/inspector/IdentifiersFactory.h" 11 #include "core/inspector/IdentifiersFactory.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 using protocol::Response; 15 using protocol::Response;
16 16
17 namespace LogAgentState { 17 namespace LogAgentState {
18 static const char kLogEnabled[] = "logEnabled"; 18 static const char kLogEnabled[] = "logEnabled";
19 static const char kLogViolations[] = "logViolations"; 19 static const char kLogViolations[] = "logViolations";
20 } 20 } // namespace LogAgentState
21 21
22 namespace { 22 namespace {
23 23
24 String MessageSourceValue(MessageSource source) { 24 String MessageSourceValue(MessageSource source) {
25 DCHECK(source != kConsoleAPIMessageSource); 25 DCHECK(source != kConsoleAPIMessageSource);
26 switch (source) { 26 switch (source) {
27 case kXMLMessageSource: 27 case kXMLMessageSource:
28 return protocol::Log::LogEntry::SourceEnum::Xml; 28 return protocol::Log::LogEntry::SourceEnum::Xml;
29 case kJSMessageSource: 29 case kJSMessageSource:
30 return protocol::Log::LogEntry::SourceEnum::Javascript; 30 return protocol::Log::LogEntry::SourceEnum::Javascript;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void InspectorLogAgent::ReportGenericViolation(PerformanceMonitor::Violation, 224 void InspectorLogAgent::ReportGenericViolation(PerformanceMonitor::Violation,
225 const String& text, 225 const String& text,
226 double time, 226 double time,
227 SourceLocation* location) { 227 SourceLocation* location) {
228 ConsoleMessage* message = ConsoleMessage::Create( 228 ConsoleMessage* message = ConsoleMessage::Create(
229 kViolationMessageSource, kVerboseMessageLevel, text, location->Clone()); 229 kViolationMessageSource, kVerboseMessageLevel, text, location->Clone());
230 ConsoleMessageAdded(message); 230 ConsoleMessageAdded(message);
231 }; 231 };
232 232
233 } // namespace blink 233 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698