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

Side by Side Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2132673002: Adding Navigation Throttles to DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reduce number of delta lines in DevToolsProtocolTest Created 4 years, 5 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 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications.", 10 "description": "Enables inspector domain notifications.",
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 "id": "AppManifestError", 167 "id": "AppManifestError",
168 "description": "Error while paring app manifest.", 168 "description": "Error while paring app manifest.",
169 "type": "object", 169 "type": "object",
170 "properties": [ 170 "properties": [
171 { "name": "message", "type": "string", "description": "Error m essage." }, 171 { "name": "message", "type": "string", "description": "Error m essage." },
172 { "name": "critical", "type": "integer", "description": "If cr iticial, this is a non-recoverable parse error." }, 172 { "name": "critical", "type": "integer", "description": "If cr iticial, this is a non-recoverable parse error." },
173 { "name": "line", "type": "integer", "description": "Error lin e." }, 173 { "name": "line", "type": "integer", "description": "Error lin e." },
174 { "name": "column", "type": "integer", "description": "Error c olumn." } 174 { "name": "column", "type": "integer", "description": "Error c olumn." }
175 ], 175 ],
176 "hidden": true 176 "hidden": true
177 },
178 {
179 "id": "NavigationResponse",
180 "description": "Proceed: allow the navigation; Cancel: cancel th e navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.",
181 "type": "string",
182 "enum": ["Proceed", "Cancel", "CancelAndIgnore"],
183 "hidden": true
177 } 184 }
178 ], 185 ],
179 "commands": [ 186 "commands": [
180 { 187 {
181 "name": "enable", 188 "name": "enable",
182 "description": "Enables page domain notifications.", 189 "description": "Enables page domain notifications.",
183 "handlers": ["browser", "renderer"] 190 "handlers": ["browser", "renderer"]
184 }, 191 },
185 { 192 {
186 "name": "disable", 193 "name": "disable",
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 "name": "requestAppBanner", 481 "name": "requestAppBanner",
475 "hidden": true, 482 "hidden": true,
476 "handlers": ["browser"] 483 "handlers": ["browser"]
477 }, 484 },
478 { 485 {
479 "name": "setBlockedEventsWarningThreshold", 486 "name": "setBlockedEventsWarningThreshold",
480 "hidden": true, 487 "hidden": true,
481 "parameters": [ 488 "parameters": [
482 { "name": "threshold", "type": "number", "description": "If set to a positive number, specifies threshold in seconds for input event latency that will cause a console warning about blocked event to be issued. If zero or less, the warning is disabled." } 489 { "name": "threshold", "type": "number", "description": "If set to a positive number, specifies threshold in seconds for input event latency that will cause a console warning about blocked event to be issued. If zero or less, the warning is disabled." }
483 ] 490 ]
491 },
492 {
493 "name": "setControlNavigations",
494 "parameters": [
495 { "name": "enabled", "type": "boolean" }
496 ],
497 "description": "Toggles navigation throttling which allows progr amatic control over navigation and redirect response.",
498 "hidden": true,
499 "handlers": ["browser"]
500 },
501 {
502 "name": "processNavigation",
503 "parameters": [
504 { "name": "response", "$ref": "NavigationResponse" },
505 { "name": "navigationId", "type": "integer" }
506 ],
507 "description": "Should be sent in response to a navigationReques ted or a redirectRequested event, telling the browser how to handle the navigati on.",
508 "hidden": true,
509 "handlers": ["browser"]
484 } 510 }
485 ], 511 ],
486 "events": [ 512 "events": [
487 { 513 {
488 "name": "domContentEventFired", 514 "name": "domContentEventFired",
489 "parameters": [ 515 "parameters": [
490 { "name": "timestamp", "type": "number" } 516 { "name": "timestamp", "type": "number" }
491 ] 517 ]
492 }, 518 },
493 { 519 {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 "name": "interstitialShown", 631 "name": "interstitialShown",
606 "description": "Fired when interstitial page was shown", 632 "description": "Fired when interstitial page was shown",
607 "hidden": true, 633 "hidden": true,
608 "handlers": ["browser"] 634 "handlers": ["browser"]
609 }, 635 },
610 { 636 {
611 "name": "interstitialHidden", 637 "name": "interstitialHidden",
612 "description": "Fired when interstitial page was hidden", 638 "description": "Fired when interstitial page was hidden",
613 "hidden": true, 639 "hidden": true,
614 "handlers": ["browser"] 640 "handlers": ["browser"]
641 },
642 {
643 "name": "navigationRequested",
644 "description": "Fired when a navigation is started if navigation throttles are enabled. The navigation will be deferred until processNavigation is called.",
645 "parameters": [
646 { "name": "isInMainFrame", "type": "boolean", "description": "Whether the navigation is taking place in the main frame or in a subframe." },
647 { "name": "isRedirect", "type": "boolean", "description": "W hether the navigation has encountered a server redirect or not." },
648 { "name": "navigationId", "type": "integer" },
649 { "name": "url", "type": "string", "description": "URL of re quested navigation." },
650 { "name": "rendererInitiated", "type": "boolean", "descripti on": "Whether the navigation was initated by the renderer process." }
nasko 2016/07/14 16:47:20 Let's remove this bit too. It shouldn't matter whe
alex clarke (OOO till 29th) 2016/07/14 17:26:17 Done.
651 ],
652 "handlers": ["browser"]
615 } 653 }
616 ] 654 ]
617 }, 655 },
618 { 656 {
619 "domain": "Rendering", 657 "domain": "Rendering",
620 "description": "This domain allows to control rendering of the page.", 658 "description": "This domain allows to control rendering of the page.",
621 "hidden": true, 659 "hidden": true,
622 "commands": [ 660 "commands": [
623 { 661 {
624 "name": "setShowPaintRects", 662 "name": "setShowPaintRects",
(...skipping 3744 matching lines...) Expand 10 before | Expand all | Expand 10 after
4369 "description": "Informs that port was successfully bound and got a specified connection id.", 4407 "description": "Informs that port was successfully bound and got a specified connection id.",
4370 "parameters": [ 4408 "parameters": [
4371 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4409 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4372 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4410 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4373 ], 4411 ],
4374 "handlers": ["browser"] 4412 "handlers": ["browser"]
4375 } 4413 }
4376 ] 4414 ]
4377 }] 4415 }]
4378 } 4416 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698