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

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: Rebase 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 5146 matching lines...) Expand 10 before | Expand all | Expand 10 after
5157 "name": "callback", 5157 "name": "callback",
5158 "optional": true, 5158 "optional": true,
5159 "parameters": [], 5159 "parameters": [],
5160 "description": "Called when removal is complete." 5160 "description": "Called when removal is complete."
5161 } 5161 }
5162 ] 5162 ]
5163 } 5163 }
5164 ] 5164 ]
5165 }, 5165 },
5166 { 5166 {
5167 "namespace": "experimental.metrics", 5167 "namespace": "metricsPrivate",
5168 "nodoc": true, 5168 "nodoc": true,
5169 "types": [ 5169 "types": [
5170 { 5170 {
5171 "id": "MetricType", 5171 "id": "MetricType",
5172 "type": "object", 5172 "type": "object",
5173 "description": "Describes the type of metric that is to be collected.", 5173 "description": "Describes the type of metric that is to be collected.",
5174 "properties": { 5174 "properties": {
5175 "metricName": {"type": "string", "description": "A unique name within the extension for the metric."}, 5175 "metricName": {"type": "string", "description": "A unique name within the extension for the metric."},
5176 "type": { 5176 "type": {
5177 "type": "string", 5177 "type": "string",
5178 "enum": ["histogram-log", "histogram-linear"], 5178 "enum": ["histogram-log", "histogram-linear"],
5179 "description": "The type of metric, such as 'histogram-log' or 'hist ogram-linear'." 5179 "description": "The type of metric, such as 'histogram-log' or 'hist ogram-linear'."
5180 }, 5180 },
5181 "min": {"type": "integer", "description": "The minimum sample value to be recoded. Must be greater than zero."}, 5181 "min": {"type": "integer", "description": "The minimum sample value to be recoded. Must be greater than zero."},
5182 "max": {"type": "integer", "description": "The maximum sample value to be recoded."}, 5182 "max": {"type": "integer", "description": "The maximum sample value to be recoded."},
5183 "buckets": {"type": "integer", "description": "The number of buckets t o use when separating the recorded values."} 5183 "buckets": {"type": "integer", "description": "The number of buckets t o use when separating the recorded values."}
5184 } 5184 }
5185 } 5185 }
5186 ], 5186 ],
5187 "functions": [ 5187 "functions": [
5188 { 5188 {
5189 "name": "getEnabled",
5190 "type": "function",
5191 "description": "Gets the user preference to send UMA and crash reports t o Google.",
5192 "parameters": [
5193 {
5194 "type": "function",
5195 "name": "callback",
5196 "parameters": [
5197 {"name": "enabled", "type": "boolean"}
5198 ]
5199 }
5200 ]
5201 },
5202 {
5203 "name": "setEnabled",
5204 "type": "function",
5205 "description": "Sets the user preference to send UMA and crash reports t o Google.",
5206 "parameters": [
5207 {"name": "enabled", "type": "boolean", "description": "True for settin g Chrome to actively send UMA and crash reports, false for disabling this."},
5208 {
5209 "type": "function",
5210 "name": "callback",
5211 "parameters": [
5212 {
5213 "name": "enabled",
5214 "type": "boolean",
5215 "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)."
5216 }
5217 ]
5218 }
5219 ]
5220 },
5221 {
5222 "name": "recordUserAction", 5189 "name": "recordUserAction",
5223 "type": "function", 5190 "type": "function",
5224 "description": "Records an action performed by the user.", 5191 "description": "Records an action performed by the user.",
5225 "parameters": [ 5192 "parameters": [
5226 {"name": "name", "type": "string"} 5193 {"name": "name", "type": "string"}
5227 ] 5194 ]
5228 }, 5195 },
5229 { 5196 {
5230 "name": "recordPercentage", 5197 "name": "recordPercentage",
5231 "type": "function", 5198 "type": "function",
(...skipping 4031 matching lines...) Expand 10 before | Expand all | Expand 10 after
9263 } 9230 }
9264 } 9231 }
9265 } 9232 }
9266 ] 9233 ]
9267 } 9234 }
9268 ] 9235 ]
9269 } 9236 }
9270 ] 9237 ]
9271 } 9238 }
9272 ] 9239 ]
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/manifest.json ('k') | chrome/common/extensions/extension_permission_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698