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 {
OtherMessageSource,
DeprecationMessageSource,
WorkerMessageSource,
ViolationMessageSource
ViolationMessageSource,
InterventionMessageSource
};
enum MessageLevel {
......
......@@ -44,6 +44,8 @@ String messageSourceValue(MessageSource source) {
return protocol::Log::LogEntry::SourceEnum::Worker;
case ViolationMessageSource:
return protocol::Log::LogEntry::SourceEnum::Violation;
case InterventionMessageSource:
return protocol::Log::LogEntry::SourceEnum::Intervention;
default:
return protocol::Log::LogEntry::SourceEnum::Other;
}
......
......@@ -4374,7 +4374,7 @@
"type": "object",
"description": "Log entry.",
"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": "text", "type": "string", "description": "Logged text." },
{ "name": "timestamp", "$ref": "Runtime.Timestamp", "description": "Timestamp when this entry was added." },
......
......@@ -498,10 +498,11 @@ SDK.ConsoleMessage.MessageSource = {
Rendering: 'rendering',
CSS: 'css',
Security: 'security',
Violation: 'violation',
Other: 'other',
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