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

Unified Diff: third_party/WebKit/Source/core/inspector/protocol/Database.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/Database.json
diff --git a/third_party/WebKit/Source/core/inspector/protocol/Database.json b/third_party/WebKit/Source/core/inspector/protocol/Database.json
new file mode 100644
index 0000000000000000000000000000000000000000..85130fd304e6b3f9e7cc6aa01a171fc2a1934a80
--- /dev/null
+++ b/third_party/WebKit/Source/core/inspector/protocol/Database.json
@@ -0,0 +1,137 @@
+{
+ "domain": "Database",
+ "version": {
+ "major": "1",
+ "minor": "1"
+ },
+ "hidden": true,
+ "types": [
+ {
+ "id": "DatabaseId",
+ "type": "string",
+ "description": "Unique identifier of Database object.",
+ "hidden": true
+ },
+ {
+ "id": "Database",
+ "type": "object",
+ "description": "Database object.",
+ "hidden": true,
+ "properties": [
+ {
+ "name": "id",
+ "$ref": "DatabaseId",
+ "description": "Database ID."
+ },
+ {
+ "name": "domain",
+ "type": "string",
+ "description": "Database domain."
+ },
+ {
+ "name": "name",
+ "type": "string",
+ "description": "Database name."
+ },
+ {
+ "name": "version",
+ "type": "string",
+ "description": "Database version."
+ }
+ ]
+ },
+ {
+ "id": "Error",
+ "type": "object",
+ "description": "Database error.",
+ "properties": [
+ {
+ "name": "message",
+ "type": "string",
+ "description": "Error message."
+ },
+ {
+ "name": "code",
+ "type": "integer",
+ "description": "Error code."
+ }
+ ]
+ }
+ ],
+ "commands": [
+ {
+ "name": "enable",
+ "description": "Enables database tracking, database events will now be delivered to the client."
+ },
+ {
+ "name": "disable",
+ "description": "Disables database tracking, prevents database events from being sent to the client."
+ },
+ {
+ "name": "getDatabaseTableNames",
+ "parameters": [
+ {
+ "name": "databaseId",
+ "$ref": "DatabaseId"
+ }
+ ],
+ "returns": [
+ {
+ "name": "tableNames",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ },
+ {
+ "name": "executeSQL",
+ "async": true,
+ "parameters": [
+ {
+ "name": "databaseId",
+ "$ref": "DatabaseId"
+ },
+ {
+ "name": "query",
+ "type": "string"
+ }
+ ],
+ "returns": [
+ {
+ "name": "columnNames",
+ "type": "array",
+ "optional": true,
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "values",
+ "type": "array",
+ "optional": true,
+ "items": {
+ "type": "any"
+ }
+ },
+ {
+ "name": "sqlError",
+ "$ref": "Error",
+ "optional": true
+ }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "addDatabase",
+ "parameters": [
+ {
+ "name": "database",
+ "$ref": "Database"
+ }
+ ]
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698