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

Unified Diff: third_party/WebKit/Source/core/inspector/protocol/CacheStorage.json

Issue 2035653005: DevTools: split protocol.json into files per domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/protocol/CacheStorage.json
diff --git a/third_party/WebKit/Source/core/inspector/protocol/CacheStorage.json b/third_party/WebKit/Source/core/inspector/protocol/CacheStorage.json
new file mode 100644
index 0000000000000000000000000000000000000000..6f0103c1b342350bda2244d30981e0fdd0e3b2bd
--- /dev/null
+++ b/third_party/WebKit/Source/core/inspector/protocol/CacheStorage.json
@@ -0,0 +1,144 @@
+{
+ "domain": "CacheStorage",
+ "version": {
+ "major": "1",
+ "minor": "1"
+ },
+ "hidden": true,
+ "types": [
+ {
+ "id": "CacheId",
+ "type": "string",
+ "description": "Unique identifier of the Cache object."
+ },
+ {
+ "id": "DataEntry",
+ "type": "object",
+ "description": "Data entry.",
+ "properties": [
+ {
+ "name": "request",
+ "type": "string",
+ "description": "Request url spec."
+ },
+ {
+ "name": "response",
+ "type": "string",
+ "description": "Response stataus text."
+ }
+ ]
+ },
+ {
+ "id": "Cache",
+ "type": "object",
+ "description": "Cache identifier.",
+ "properties": [
+ {
+ "name": "cacheId",
+ "$ref": "CacheId",
+ "description": "An opaque unique id of the cache."
+ },
+ {
+ "name": "securityOrigin",
+ "type": "string",
+ "description": "Security origin of the cache."
+ },
+ {
+ "name": "cacheName",
+ "type": "string",
+ "description": "The name of the cache."
+ }
+ ]
+ }
+ ],
+ "commands": [
+ {
+ "name": "requestCacheNames",
+ "async": true,
+ "parameters": [
+ {
+ "name": "securityOrigin",
+ "type": "string",
+ "description": "Security origin."
+ }
+ ],
+ "returns": [
+ {
+ "name": "caches",
+ "type": "array",
+ "items": {
+ "$ref": "Cache"
+ },
+ "description": "Caches for the security origin."
+ }
+ ],
+ "description": "Requests cache names."
+ },
+ {
+ "name": "requestEntries",
+ "async": true,
+ "parameters": [
+ {
+ "name": "cacheId",
+ "$ref": "CacheId",
+ "description": "ID of cache to get entries from."
+ },
+ {
+ "name": "skipCount",
+ "type": "integer",
+ "description": "Number of records to skip."
+ },
+ {
+ "name": "pageSize",
+ "type": "integer",
+ "description": "Number of records to fetch."
+ }
+ ],
+ "returns": [
+ {
+ "name": "cacheDataEntries",
+ "type": "array",
+ "items": {
+ "$ref": "DataEntry"
+ },
+ "description": "Array of object store data entries."
+ },
+ {
+ "name": "hasMore",
+ "type": "boolean",
+ "description": "If true, there are more entries to fetch in the given range."
+ }
+ ],
+ "description": "Requests data from cache."
+ },
+ {
+ "name": "deleteCache",
+ "async": true,
+ "parameters": [
+ {
+ "name": "cacheId",
+ "$ref": "CacheId",
+ "description": "Id of cache for deletion."
+ }
+ ],
+ "description": "Deletes a cache."
+ },
+ {
+ "name": "deleteEntry",
+ "async": true,
+ "parameters": [
+ {
+ "name": "cacheId",
+ "$ref": "CacheId",
+ "description": "Id of cache where the entry will be deleted."
+ },
+ {
+ "name": "request",
+ "type": "string",
+ "description": "URL spec of the request."
+ }
+ ],
+ "description": "Deletes a cache entry."
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698