Commit d310c8c6 authored by pfeldman's avatar pfeldman Committed by Commit bot

DevTools: add interventions message source into log entries.

Review-Url: https://codereview.chromium.org/2623423004
Cr-Commit-Position: refs/heads/master@{#443505}
parent aea9d395
...@@ -19,7 +19,8 @@ enum MessageSource { ...@@ -19,7 +19,8 @@ enum MessageSource {
OtherMessageSource, OtherMessageSource,
DeprecationMessageSource, DeprecationMessageSource,
WorkerMessageSource, WorkerMessageSource,
ViolationMessageSource ViolationMessageSource,
InterventionMessageSource
}; };
enum MessageLevel { enum MessageLevel {
......
...@@ -44,6 +44,8 @@ String messageSourceValue(MessageSource source) { ...@@ -44,6 +44,8 @@ String messageSourceValue(MessageSource source) {
return protocol::Log::LogEntry::SourceEnum::Worker; return protocol::Log::LogEntry::SourceEnum::Worker;
case ViolationMessageSource: case ViolationMessageSource:
return protocol::Log::LogEntry::SourceEnum::Violation; return protocol::Log::LogEntry::SourceEnum::Violation;
case InterventionMessageSource:
return protocol::Log::LogEntry::SourceEnum::Intervention;
default: default:
return protocol::Log::LogEntry::SourceEnum::Other; return protocol::Log::LogEntry::SourceEnum::Other;
} }
......
...@@ -4374,7 +4374,7 @@ ...@@ -4374,7 +4374,7 @@
"type": "object", "type": "object",
"description": "Log entry.", "description": "Log entry.",
"properties": [ "properties": [
{ "name": "source", "type": "string", "enum": ["xml", "javascript", "network", "storage", "appcache", "rendering", "security", "deprecation", "worker", "violation", "other"], "description": "Log entry source." }, { "name": "source", "type": "string", "enum": ["xml", "javascript", "network", "storage", "appcache", "rendering", "security", "deprecation", "worker", "violation", "intervention", "other"], "description": "Log entry source." },
{ "name": "level", "type": "string", "enum": ["log", "warning", "error", "debug", "info"], "description": "Log entry severity." }, { "name": "level", "type": "string", "enum": ["log", "warning", "error", "debug", "info"], "description": "Log entry severity." },
{ "name": "text", "type": "string", "description": "Logged text." }, { "name": "text", "type": "string", "description": "Logged text." },
{ "name": "timestamp", "$ref": "Runtime.Timestamp", "description": "Timestamp when this entry was added." }, { "name": "timestamp", "$ref": "Runtime.Timestamp", "description": "Timestamp when this entry was added." },
......
...@@ -498,10 +498,11 @@ SDK.ConsoleMessage.MessageSource = { ...@@ -498,10 +498,11 @@ SDK.ConsoleMessage.MessageSource = {
Rendering: 'rendering', Rendering: 'rendering',
CSS: 'css', CSS: 'css',
Security: 'security', Security: 'security',
Violation: 'violation',
Other: 'other',
Deprecation: 'deprecation', Deprecation: 'deprecation',
Worker: 'worker' Worker: 'worker',
Violation: 'violation',
Intervention: 'intervention',
Other: 'other'
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment