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

Unified Diff: chrome/common/extensions/api/devtools/network.json

Issue 10797039: Extensions Docs Server: devtools API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move parsing logic into utils Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/devtools/network.json
diff --git a/chrome/common/extensions/api/devtools/network.json b/chrome/common/extensions/api/devtools/network.json
new file mode 100644
index 0000000000000000000000000000000000000000..c7dc56e621f89f8eb5d909e097323f93a811fbea
--- /dev/null
+++ b/chrome/common/extensions/api/devtools/network.json
@@ -0,0 +1,87 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ {
+ "namespace": "devtools.network",
+ "nocompile": true,
+ "types": [
+ {
+ "id": "Request",
+ "type": "object",
+ "description": "Represents a network request for a document resource (script, image and so on). See HAR Specification for reference.",
+ "functions": [
+ {
+ "name": "getContent",
+ "type": "function",
+ "description": "Returns content of the response body.",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "A function that receives the response body when the request completes.",
+ "parameters": [
+ {
+ "name": "content",
+ "type": "string",
+ "description": "Content of the response body (potentially encoded)."
+ },
+ {
+ "name": "encoding",
+ "type": "string",
+ "description": "Empty if content is not encoded, encoding name otherwise. Currently, only base64 is supported."
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "functions": [
+ {
+ "name": "getHAR",
+ "type": "function",
+ "description": "Returns HAR log that contains all known network requests.",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "A function that receives the HAR log when the request completes.",
+ "parameters": [
+ {
+ "name": "harLog",
+ "type": "object",
+ "additionalProperties": {"type": "any"},
+ "description": "A HAR log. See HAR specification for details."
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "onRequestFinished",
+ "type": "function",
+ "description": "Fired when a network request is finished and all request data are available.",
+ "parameters": [
+ { "name": "request", "$ref": "Request", "description": "Description of a network request in the form of a HAR entry. See HAR specification for details." }
+ ]
+ },
+ {
+ "name": "onNavigated",
+ "type": "function",
+ "description": "Fired when the inspected window navigates to a new page.",
+ "parameters": [
+ {
+ "name": "url",
+ "type": "string",
+ "description": "URL of the new page."
+ }
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « chrome/common/extensions/api/devtools/inspected_window.json ('k') | chrome/common/extensions/api/devtools/panels.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698