devtools-protocol 0.0.926578 → 0.0.926580
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +177 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +80 -0
- package/types/protocol-mapping.d.ts +31 -0
- package/types/protocol-proxy-api.d.ts +30 -0
- package/types/protocol.d.ts +123 -0
|
@@ -832,6 +832,183 @@
|
|
|
832
832
|
}
|
|
833
833
|
]
|
|
834
834
|
},
|
|
835
|
+
{
|
|
836
|
+
"domain": "ApplicationCache",
|
|
837
|
+
"description": "The domain is deprecated as AppCache is being removed (see crbug.com/582750).",
|
|
838
|
+
"experimental": true,
|
|
839
|
+
"deprecated": true,
|
|
840
|
+
"dependencies": [
|
|
841
|
+
"Page"
|
|
842
|
+
],
|
|
843
|
+
"types": [
|
|
844
|
+
{
|
|
845
|
+
"id": "ApplicationCacheResource",
|
|
846
|
+
"description": "Detailed application cache resource information.",
|
|
847
|
+
"type": "object",
|
|
848
|
+
"properties": [
|
|
849
|
+
{
|
|
850
|
+
"name": "url",
|
|
851
|
+
"description": "Resource url.",
|
|
852
|
+
"type": "string"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"name": "size",
|
|
856
|
+
"description": "Resource size.",
|
|
857
|
+
"type": "integer"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"name": "type",
|
|
861
|
+
"description": "Resource type.",
|
|
862
|
+
"type": "string"
|
|
863
|
+
}
|
|
864
|
+
]
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"id": "ApplicationCache",
|
|
868
|
+
"description": "Detailed application cache information.",
|
|
869
|
+
"type": "object",
|
|
870
|
+
"properties": [
|
|
871
|
+
{
|
|
872
|
+
"name": "manifestURL",
|
|
873
|
+
"description": "Manifest URL.",
|
|
874
|
+
"type": "string"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "size",
|
|
878
|
+
"description": "Application cache size.",
|
|
879
|
+
"type": "number"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "creationTime",
|
|
883
|
+
"description": "Application cache creation time.",
|
|
884
|
+
"type": "number"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "updateTime",
|
|
888
|
+
"description": "Application cache update time.",
|
|
889
|
+
"type": "number"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "resources",
|
|
893
|
+
"description": "Application cache resources.",
|
|
894
|
+
"type": "array",
|
|
895
|
+
"items": {
|
|
896
|
+
"$ref": "ApplicationCacheResource"
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
]
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"id": "FrameWithManifest",
|
|
903
|
+
"description": "Frame identifier - manifest URL pair.",
|
|
904
|
+
"type": "object",
|
|
905
|
+
"properties": [
|
|
906
|
+
{
|
|
907
|
+
"name": "frameId",
|
|
908
|
+
"description": "Frame identifier.",
|
|
909
|
+
"$ref": "Page.FrameId"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "manifestURL",
|
|
913
|
+
"description": "Manifest URL.",
|
|
914
|
+
"type": "string"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"name": "status",
|
|
918
|
+
"description": "Application cache status.",
|
|
919
|
+
"type": "integer"
|
|
920
|
+
}
|
|
921
|
+
]
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"commands": [
|
|
925
|
+
{
|
|
926
|
+
"name": "enable",
|
|
927
|
+
"description": "Enables application cache domain notifications."
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "getApplicationCacheForFrame",
|
|
931
|
+
"description": "Returns relevant application cache data for the document in given frame.",
|
|
932
|
+
"parameters": [
|
|
933
|
+
{
|
|
934
|
+
"name": "frameId",
|
|
935
|
+
"description": "Identifier of the frame containing document whose application cache is retrieved.",
|
|
936
|
+
"$ref": "Page.FrameId"
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
"returns": [
|
|
940
|
+
{
|
|
941
|
+
"name": "applicationCache",
|
|
942
|
+
"description": "Relevant application cache data for the document in given frame.",
|
|
943
|
+
"$ref": "ApplicationCache"
|
|
944
|
+
}
|
|
945
|
+
]
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "getFramesWithManifests",
|
|
949
|
+
"description": "Returns array of frame identifiers with manifest urls for each frame containing a document\nassociated with some application cache.",
|
|
950
|
+
"returns": [
|
|
951
|
+
{
|
|
952
|
+
"name": "frameIds",
|
|
953
|
+
"description": "Array of frame identifiers with manifest urls for each frame containing a document\nassociated with some application cache.",
|
|
954
|
+
"type": "array",
|
|
955
|
+
"items": {
|
|
956
|
+
"$ref": "FrameWithManifest"
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
]
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "getManifestForFrame",
|
|
963
|
+
"description": "Returns manifest URL for document in the given frame.",
|
|
964
|
+
"parameters": [
|
|
965
|
+
{
|
|
966
|
+
"name": "frameId",
|
|
967
|
+
"description": "Identifier of the frame containing document whose manifest is retrieved.",
|
|
968
|
+
"$ref": "Page.FrameId"
|
|
969
|
+
}
|
|
970
|
+
],
|
|
971
|
+
"returns": [
|
|
972
|
+
{
|
|
973
|
+
"name": "manifestURL",
|
|
974
|
+
"description": "Manifest URL for document in the given frame.",
|
|
975
|
+
"type": "string"
|
|
976
|
+
}
|
|
977
|
+
]
|
|
978
|
+
}
|
|
979
|
+
],
|
|
980
|
+
"events": [
|
|
981
|
+
{
|
|
982
|
+
"name": "applicationCacheStatusUpdated",
|
|
983
|
+
"parameters": [
|
|
984
|
+
{
|
|
985
|
+
"name": "frameId",
|
|
986
|
+
"description": "Identifier of the frame containing document whose application cache updated status.",
|
|
987
|
+
"$ref": "Page.FrameId"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "manifestURL",
|
|
991
|
+
"description": "Manifest URL.",
|
|
992
|
+
"type": "string"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"name": "status",
|
|
996
|
+
"description": "Updated application cache status.",
|
|
997
|
+
"type": "integer"
|
|
998
|
+
}
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "networkStateUpdated",
|
|
1003
|
+
"parameters": [
|
|
1004
|
+
{
|
|
1005
|
+
"name": "isNowOnline",
|
|
1006
|
+
"type": "boolean"
|
|
1007
|
+
}
|
|
1008
|
+
]
|
|
1009
|
+
}
|
|
1010
|
+
]
|
|
1011
|
+
},
|
|
835
1012
|
{
|
|
836
1013
|
"domain": "Audits",
|
|
837
1014
|
"description": "Audits domain allows investigation of page violations and possible improvements.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -408,6 +408,86 @@ experimental domain Animation
|
|
|
408
408
|
# Animation that was started.
|
|
409
409
|
Animation animation
|
|
410
410
|
|
|
411
|
+
# The domain is deprecated as AppCache is being removed (see crbug.com/582750).
|
|
412
|
+
experimental deprecated domain ApplicationCache
|
|
413
|
+
depends on Page
|
|
414
|
+
|
|
415
|
+
# Detailed application cache resource information.
|
|
416
|
+
type ApplicationCacheResource extends object
|
|
417
|
+
properties
|
|
418
|
+
# Resource url.
|
|
419
|
+
string url
|
|
420
|
+
# Resource size.
|
|
421
|
+
integer size
|
|
422
|
+
# Resource type.
|
|
423
|
+
string type
|
|
424
|
+
|
|
425
|
+
# Detailed application cache information.
|
|
426
|
+
type ApplicationCache extends object
|
|
427
|
+
properties
|
|
428
|
+
# Manifest URL.
|
|
429
|
+
string manifestURL
|
|
430
|
+
# Application cache size.
|
|
431
|
+
number size
|
|
432
|
+
# Application cache creation time.
|
|
433
|
+
number creationTime
|
|
434
|
+
# Application cache update time.
|
|
435
|
+
number updateTime
|
|
436
|
+
# Application cache resources.
|
|
437
|
+
array of ApplicationCacheResource resources
|
|
438
|
+
|
|
439
|
+
# Frame identifier - manifest URL pair.
|
|
440
|
+
type FrameWithManifest extends object
|
|
441
|
+
properties
|
|
442
|
+
# Frame identifier.
|
|
443
|
+
Page.FrameId frameId
|
|
444
|
+
# Manifest URL.
|
|
445
|
+
string manifestURL
|
|
446
|
+
# Application cache status.
|
|
447
|
+
integer status
|
|
448
|
+
|
|
449
|
+
# Enables application cache domain notifications.
|
|
450
|
+
command enable
|
|
451
|
+
|
|
452
|
+
# Returns relevant application cache data for the document in given frame.
|
|
453
|
+
command getApplicationCacheForFrame
|
|
454
|
+
parameters
|
|
455
|
+
# Identifier of the frame containing document whose application cache is retrieved.
|
|
456
|
+
Page.FrameId frameId
|
|
457
|
+
returns
|
|
458
|
+
# Relevant application cache data for the document in given frame.
|
|
459
|
+
ApplicationCache applicationCache
|
|
460
|
+
|
|
461
|
+
# Returns array of frame identifiers with manifest urls for each frame containing a document
|
|
462
|
+
# associated with some application cache.
|
|
463
|
+
command getFramesWithManifests
|
|
464
|
+
returns
|
|
465
|
+
# Array of frame identifiers with manifest urls for each frame containing a document
|
|
466
|
+
# associated with some application cache.
|
|
467
|
+
array of FrameWithManifest frameIds
|
|
468
|
+
|
|
469
|
+
# Returns manifest URL for document in the given frame.
|
|
470
|
+
command getManifestForFrame
|
|
471
|
+
parameters
|
|
472
|
+
# Identifier of the frame containing document whose manifest is retrieved.
|
|
473
|
+
Page.FrameId frameId
|
|
474
|
+
returns
|
|
475
|
+
# Manifest URL for document in the given frame.
|
|
476
|
+
string manifestURL
|
|
477
|
+
|
|
478
|
+
event applicationCacheStatusUpdated
|
|
479
|
+
parameters
|
|
480
|
+
# Identifier of the frame containing document whose application cache updated status.
|
|
481
|
+
Page.FrameId frameId
|
|
482
|
+
# Manifest URL.
|
|
483
|
+
string manifestURL
|
|
484
|
+
# Updated application cache status.
|
|
485
|
+
integer status
|
|
486
|
+
|
|
487
|
+
event networkStateUpdated
|
|
488
|
+
parameters
|
|
489
|
+
boolean isNowOnline
|
|
490
|
+
|
|
411
491
|
# Audits domain allows investigation of page violations and possible improvements.
|
|
412
492
|
experimental domain Audits
|
|
413
493
|
depends on Network
|
|
@@ -104,6 +104,8 @@ export namespace ProtocolMapping {
|
|
|
104
104
|
* Event for animation that has been started.
|
|
105
105
|
*/
|
|
106
106
|
'Animation.animationStarted': [Protocol.Animation.AnimationStartedEvent];
|
|
107
|
+
'ApplicationCache.applicationCacheStatusUpdated': [Protocol.ApplicationCache.ApplicationCacheStatusUpdatedEvent];
|
|
108
|
+
'ApplicationCache.networkStateUpdated': [Protocol.ApplicationCache.NetworkStateUpdatedEvent];
|
|
107
109
|
'Audits.issueAdded': [Protocol.Audits.IssueAddedEvent];
|
|
108
110
|
/**
|
|
109
111
|
* Called when the recording state for the service has been updated.
|
|
@@ -1374,6 +1376,35 @@ export namespace ProtocolMapping {
|
|
|
1374
1376
|
paramsType: [Protocol.Animation.SetTimingRequest];
|
|
1375
1377
|
returnType: void;
|
|
1376
1378
|
};
|
|
1379
|
+
/**
|
|
1380
|
+
* Enables application cache domain notifications.
|
|
1381
|
+
*/
|
|
1382
|
+
'ApplicationCache.enable': {
|
|
1383
|
+
paramsType: [];
|
|
1384
|
+
returnType: void;
|
|
1385
|
+
};
|
|
1386
|
+
/**
|
|
1387
|
+
* Returns relevant application cache data for the document in given frame.
|
|
1388
|
+
*/
|
|
1389
|
+
'ApplicationCache.getApplicationCacheForFrame': {
|
|
1390
|
+
paramsType: [Protocol.ApplicationCache.GetApplicationCacheForFrameRequest];
|
|
1391
|
+
returnType: Protocol.ApplicationCache.GetApplicationCacheForFrameResponse;
|
|
1392
|
+
};
|
|
1393
|
+
/**
|
|
1394
|
+
* Returns array of frame identifiers with manifest urls for each frame containing a document
|
|
1395
|
+
* associated with some application cache.
|
|
1396
|
+
*/
|
|
1397
|
+
'ApplicationCache.getFramesWithManifests': {
|
|
1398
|
+
paramsType: [];
|
|
1399
|
+
returnType: Protocol.ApplicationCache.GetFramesWithManifestsResponse;
|
|
1400
|
+
};
|
|
1401
|
+
/**
|
|
1402
|
+
* Returns manifest URL for document in the given frame.
|
|
1403
|
+
*/
|
|
1404
|
+
'ApplicationCache.getManifestForFrame': {
|
|
1405
|
+
paramsType: [Protocol.ApplicationCache.GetManifestForFrameRequest];
|
|
1406
|
+
returnType: Protocol.ApplicationCache.GetManifestForFrameResponse;
|
|
1407
|
+
};
|
|
1377
1408
|
/**
|
|
1378
1409
|
* Returns the response body and size if it were re-encoded with the specified settings. Only
|
|
1379
1410
|
* applies to images.
|
|
@@ -26,6 +26,8 @@ export namespace ProtocolProxyApi {
|
|
|
26
26
|
|
|
27
27
|
Animation: AnimationApi;
|
|
28
28
|
|
|
29
|
+
ApplicationCache: ApplicationCacheApi;
|
|
30
|
+
|
|
29
31
|
Audits: AuditsApi;
|
|
30
32
|
|
|
31
33
|
BackgroundService: BackgroundServiceApi;
|
|
@@ -739,6 +741,34 @@ export namespace ProtocolProxyApi {
|
|
|
739
741
|
|
|
740
742
|
}
|
|
741
743
|
|
|
744
|
+
export interface ApplicationCacheApi {
|
|
745
|
+
/**
|
|
746
|
+
* Enables application cache domain notifications.
|
|
747
|
+
*/
|
|
748
|
+
enable(): Promise<void>;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Returns relevant application cache data for the document in given frame.
|
|
752
|
+
*/
|
|
753
|
+
getApplicationCacheForFrame(params: Protocol.ApplicationCache.GetApplicationCacheForFrameRequest): Promise<Protocol.ApplicationCache.GetApplicationCacheForFrameResponse>;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Returns array of frame identifiers with manifest urls for each frame containing a document
|
|
757
|
+
* associated with some application cache.
|
|
758
|
+
*/
|
|
759
|
+
getFramesWithManifests(): Promise<Protocol.ApplicationCache.GetFramesWithManifestsResponse>;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Returns manifest URL for document in the given frame.
|
|
763
|
+
*/
|
|
764
|
+
getManifestForFrame(params: Protocol.ApplicationCache.GetManifestForFrameRequest): Promise<Protocol.ApplicationCache.GetManifestForFrameResponse>;
|
|
765
|
+
|
|
766
|
+
on(event: 'applicationCacheStatusUpdated', listener: (params: Protocol.ApplicationCache.ApplicationCacheStatusUpdatedEvent) => void): void;
|
|
767
|
+
|
|
768
|
+
on(event: 'networkStateUpdated', listener: (params: Protocol.ApplicationCache.NetworkStateUpdatedEvent) => void): void;
|
|
769
|
+
|
|
770
|
+
}
|
|
771
|
+
|
|
742
772
|
export interface AuditsApi {
|
|
743
773
|
/**
|
|
744
774
|
* Returns the response body and size if it were re-encoded with the specified settings. Only
|
package/types/protocol.d.ts
CHANGED
|
@@ -2997,6 +2997,129 @@ export namespace Protocol {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
2999
|
|
|
3000
|
+
/**
|
|
3001
|
+
* The domain is deprecated as AppCache is being removed (see crbug.com/582750).
|
|
3002
|
+
*/
|
|
3003
|
+
export namespace ApplicationCache {
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* Detailed application cache resource information.
|
|
3007
|
+
*/
|
|
3008
|
+
export interface ApplicationCacheResource {
|
|
3009
|
+
/**
|
|
3010
|
+
* Resource url.
|
|
3011
|
+
*/
|
|
3012
|
+
url: string;
|
|
3013
|
+
/**
|
|
3014
|
+
* Resource size.
|
|
3015
|
+
*/
|
|
3016
|
+
size: integer;
|
|
3017
|
+
/**
|
|
3018
|
+
* Resource type.
|
|
3019
|
+
*/
|
|
3020
|
+
type: string;
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
/**
|
|
3024
|
+
* Detailed application cache information.
|
|
3025
|
+
*/
|
|
3026
|
+
export interface ApplicationCache {
|
|
3027
|
+
/**
|
|
3028
|
+
* Manifest URL.
|
|
3029
|
+
*/
|
|
3030
|
+
manifestURL: string;
|
|
3031
|
+
/**
|
|
3032
|
+
* Application cache size.
|
|
3033
|
+
*/
|
|
3034
|
+
size: number;
|
|
3035
|
+
/**
|
|
3036
|
+
* Application cache creation time.
|
|
3037
|
+
*/
|
|
3038
|
+
creationTime: number;
|
|
3039
|
+
/**
|
|
3040
|
+
* Application cache update time.
|
|
3041
|
+
*/
|
|
3042
|
+
updateTime: number;
|
|
3043
|
+
/**
|
|
3044
|
+
* Application cache resources.
|
|
3045
|
+
*/
|
|
3046
|
+
resources: ApplicationCacheResource[];
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
/**
|
|
3050
|
+
* Frame identifier - manifest URL pair.
|
|
3051
|
+
*/
|
|
3052
|
+
export interface FrameWithManifest {
|
|
3053
|
+
/**
|
|
3054
|
+
* Frame identifier.
|
|
3055
|
+
*/
|
|
3056
|
+
frameId: Page.FrameId;
|
|
3057
|
+
/**
|
|
3058
|
+
* Manifest URL.
|
|
3059
|
+
*/
|
|
3060
|
+
manifestURL: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* Application cache status.
|
|
3063
|
+
*/
|
|
3064
|
+
status: integer;
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
export interface GetApplicationCacheForFrameRequest {
|
|
3068
|
+
/**
|
|
3069
|
+
* Identifier of the frame containing document whose application cache is retrieved.
|
|
3070
|
+
*/
|
|
3071
|
+
frameId: Page.FrameId;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
export interface GetApplicationCacheForFrameResponse {
|
|
3075
|
+
/**
|
|
3076
|
+
* Relevant application cache data for the document in given frame.
|
|
3077
|
+
*/
|
|
3078
|
+
applicationCache: ApplicationCache;
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
export interface GetFramesWithManifestsResponse {
|
|
3082
|
+
/**
|
|
3083
|
+
* Array of frame identifiers with manifest urls for each frame containing a document
|
|
3084
|
+
* associated with some application cache.
|
|
3085
|
+
*/
|
|
3086
|
+
frameIds: FrameWithManifest[];
|
|
3087
|
+
}
|
|
3088
|
+
|
|
3089
|
+
export interface GetManifestForFrameRequest {
|
|
3090
|
+
/**
|
|
3091
|
+
* Identifier of the frame containing document whose manifest is retrieved.
|
|
3092
|
+
*/
|
|
3093
|
+
frameId: Page.FrameId;
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
export interface GetManifestForFrameResponse {
|
|
3097
|
+
/**
|
|
3098
|
+
* Manifest URL for document in the given frame.
|
|
3099
|
+
*/
|
|
3100
|
+
manifestURL: string;
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
export interface ApplicationCacheStatusUpdatedEvent {
|
|
3104
|
+
/**
|
|
3105
|
+
* Identifier of the frame containing document whose application cache updated status.
|
|
3106
|
+
*/
|
|
3107
|
+
frameId: Page.FrameId;
|
|
3108
|
+
/**
|
|
3109
|
+
* Manifest URL.
|
|
3110
|
+
*/
|
|
3111
|
+
manifestURL: string;
|
|
3112
|
+
/**
|
|
3113
|
+
* Updated application cache status.
|
|
3114
|
+
*/
|
|
3115
|
+
status: integer;
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
export interface NetworkStateUpdatedEvent {
|
|
3119
|
+
isNowOnline: boolean;
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3000
3123
|
/**
|
|
3001
3124
|
* Audits domain allows investigation of page violations and possible improvements.
|
|
3002
3125
|
*/
|