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

Side by Side 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, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace": "devtools.network",
8 "nocompile": true,
9 "types": [
10 {
11 "id": "Request",
12 "type": "object",
13 "description": "Represents a network request for a document resource (sc ript, image and so on). See HAR Specification for reference.",
14 "functions": [
15 {
16 "name": "getContent",
17 "type": "function",
18 "description": "Returns content of the response body.",
19 "parameters": [
20 {
21 "name": "callback",
22 "type": "function",
23 "description": "A function that receives the response body when the request completes.",
24 "parameters": [
25 {
26 "name": "content",
27 "type": "string",
28 "description": "Content of the response body (potentially en coded)."
29 },
30 {
31 "name": "encoding",
32 "type": "string",
33 "description": "Empty if content is not encoded, encoding na me otherwise. Currently, only base64 is supported."
34 }
35 ]
36 }
37 ]
38 }
39 ]
40 }
41 ],
42 "functions": [
43 {
44 "name": "getHAR",
45 "type": "function",
46 "description": "Returns HAR log that contains all known network requests .",
47 "parameters": [
48 {
49 "name": "callback",
50 "type": "function",
51 "description": "A function that receives the HAR log when the reques t completes.",
52 "parameters": [
53 {
54 "name": "harLog",
55 "type": "object",
56 "additionalProperties": {"type": "any"},
57 "description": "A HAR log. See HAR specification for details."
58 }
59 ]
60 }
61 ]
62 }
63 ],
64 "events": [
65 {
66 "name": "onRequestFinished",
67 "type": "function",
68 "description": "Fired when a network request is finished and all request data are available.",
69 "parameters": [
70 { "name": "request", "$ref": "Request", "description": "Description of a network request in the form of a HAR entry. See HAR specification for details ." }
71 ]
72 },
73 {
74 "name": "onNavigated",
75 "type": "function",
76 "description": "Fired when the inspected window navigates to a new page. ",
77 "parameters": [
78 {
79 "name": "url",
80 "type": "string",
81 "description": "URL of the new page."
82 }
83 ]
84 }
85 ]
86 }
87 ]
OLDNEW
« 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