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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 8548013: Moving experimental.metrics API to metricsPrivate (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "MessageSender", 6 "id": "MessageSender",
7 "type": "object", 7 "type": "object",
8 "description": "An object containing information about the script contex t that sent a message or request.", 8 "description": "An object containing information about the script contex t that sent a message or request.",
9 "properties": { 9 "properties": {
10 "tab": {"$ref": "Tab", "optional": true, "description":"This property will <b>only</b> be present when the connection was opened from a tab or content script."}, 10 "tab": {"$ref": "Tab", "optional": true, "description":"This property will <b>only</b> be present when the connection was opened from a tab or content script."},
(...skipping 5115 matching lines...) Expand 10 before | Expand all | Expand 10 after
5126 "name": "callback", 5126 "name": "callback",
5127 "optional": true, 5127 "optional": true,
5128 "parameters": [], 5128 "parameters": [],
5129 "description": "Called when removal is complete." 5129 "description": "Called when removal is complete."
5130 } 5130 }
5131 ] 5131 ]
5132 } 5132 }
5133 ] 5133 ]
5134 }, 5134 },
5135 { 5135 {
5136 "namespace": "experimental.metrics", 5136 "namespace": "metricsPrivate",
5137 "nodoc": true, 5137 "nodoc": true,
5138 "types": [ 5138 "types": [
5139 { 5139 {
5140 "id": "MetricType", 5140 "id": "MetricType",
5141 "type": "object", 5141 "type": "object",
5142 "description": "Describes the type of metric that is to be collected.", 5142 "description": "Describes the type of metric that is to be collected.",
5143 "properties": { 5143 "properties": {
5144 "metricName": {"type": "string", "description": "A unique name within the extension for the metric."}, 5144 "metricName": {"type": "string", "description": "A unique name within the extension for the metric."},
5145 "type": { 5145 "type": {
5146 "type": "string", 5146 "type": "string",
5147 "enum": ["histogram-log", "histogram-linear"], 5147 "enum": ["histogram-log", "histogram-linear"],
5148 "description": "The type of metric, such as 'histogram-log' or 'hist ogram-linear'." 5148 "description": "The type of metric, such as 'histogram-log' or 'hist ogram-linear'."
5149 }, 5149 },
5150 "min": {"type": "integer", "description": "The minimum sample value to be recoded. Must be greater than zero."}, 5150 "min": {"type": "integer", "description": "The minimum sample value to be recoded. Must be greater than zero."},
5151 "max": {"type": "integer", "description": "The maximum sample value to be recoded."}, 5151 "max": {"type": "integer", "description": "The maximum sample value to be recoded."},
5152 "buckets": {"type": "integer", "description": "The number of buckets t o use when separating the recorded values."} 5152 "buckets": {"type": "integer", "description": "The number of buckets t o use when separating the recorded values."}
5153 } 5153 }
5154 } 5154 }
5155 ], 5155 ],
5156 "functions": [ 5156 "functions": [
5157 { 5157 {
5158 "name": "getEnabled",
5159 "type": "function",
5160 "description": "Gets the user preference to send UMA and crash reports t o Google.",
5161 "parameters": [
5162 {
5163 "type": "function",
5164 "name": "callback",
5165 "parameters": [
5166 {"name": "enabled", "type": "boolean"}
5167 ]
5168 }
5169 ]
5170 },
5171 {
5172 "name": "setEnabled",
5173 "type": "function",
5174 "description": "Sets the user preference to send UMA and crash reports t o Google.",
5175 "parameters": [
5176 {"name": "enabled", "type": "boolean", "description": "True for settin g Chrome to actively send UMA and crash reports, false for disabling this."},
5177 {
5178 "type": "function",
5179 "name": "callback",
5180 "parameters": [
5181 {
5182 "name": "enabled",
5183 "type": "boolean",
5184 "description": "The actual value set. If it is not the one passe d in parameter, the value couldn't be changed (e.g. because of security)."
5185 }
5186 ]
5187 }
5188 ]
5189 },
5190 {
5191 "name": "recordUserAction", 5158 "name": "recordUserAction",
5192 "type": "function", 5159 "type": "function",
5193 "description": "Records an action performed by the user.", 5160 "description": "Records an action performed by the user.",
5194 "parameters": [ 5161 "parameters": [
5195 {"name": "name", "type": "string"} 5162 {"name": "name", "type": "string"}
5196 ] 5163 ]
5197 }, 5164 },
5198 { 5165 {
5199 "name": "recordPercentage", 5166 "name": "recordPercentage",
5200 "type": "function", 5167 "type": "function",
(...skipping 4031 matching lines...) Expand 10 before | Expand all | Expand 10 after
9232 } 9199 }
9233 } 9200 }
9234 } 9201 }
9235 ] 9202 ]
9236 } 9203 }
9237 ] 9204 ]
9238 } 9205 }
9239 ] 9206 ]
9240 } 9207 }
9241 ] 9208 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698