Guest User

Untitled

a guest
Oct 28th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 117.54 KB | None | 0 0
  1. --- out/Debug/gen/blink/InspectorBackendDispatcher.cpp  2013-10-28 11:36:58.299171441 -0400
  2. +++ out/Debug/gen/blink/InspectorBackendDispatcher.cpp.bak  2013-10-28 11:36:40.111170914 -0400
  3. @@ -17,242 +17,477 @@
  4.  
  5.  namespace WebCore {
  6.  
  7. -const char* InspectorBackendDispatcher::commandNames[] = {
  8. -    "Inspector.enable",
  9. -    "Inspector.disable",
  10. -    "Inspector.reset",
  11. -    "Memory.getDOMCounters",
  12. -    "Page.enable",
  13. -    "Page.disable",
  14. -    "Page.addScriptToEvaluateOnLoad",
  15. -    "Page.removeScriptToEvaluateOnLoad",
  16. -    "Page.reload",
  17. -    "Page.navigate",
  18. -    "Page.getNavigationHistory",
  19. -    "Page.navigateToHistoryEntry",
  20. -    "Page.getCookies",
  21. -    "Page.deleteCookie",
  22. -    "Page.getResourceTree",
  23. -    "Page.getResourceContent",
  24. -    "Page.searchInResource",
  25. -    "Page.setDocumentContent",
  26. -    "Page.setDeviceMetricsOverride",
  27. -    "Page.setShowPaintRects",
  28. -    "Page.setShowDebugBorders",
  29. -    "Page.setShowFPSCounter",
  30. -    "Page.setContinuousPaintingEnabled",
  31. -    "Page.setShowScrollBottleneckRects",
  32. -    "Page.getScriptExecutionStatus",
  33. -    "Page.setScriptExecutionDisabled",
  34. -    "Page.setGeolocationOverride",
  35. -    "Page.clearGeolocationOverride",
  36. -    "Page.setDeviceOrientationOverride",
  37. -    "Page.clearDeviceOrientationOverride",
  38. -    "Page.setTouchEmulationEnabled",
  39. -    "Page.setEmulatedMedia",
  40. -    "Page.captureScreenshot",
  41. -    "Page.canScreencast",
  42. -    "Page.startScreencast",
  43. -    "Page.stopScreencast",
  44. -    "Page.handleJavaScriptDialog",
  45. -    "Page.setShowViewportSizeOnResize",
  46. -    "Page.setForceCompositingMode",
  47. -    "Runtime.evaluate",
  48. -    "Runtime.callFunctionOn",
  49. -    "Runtime.getProperties",
  50. -    "Runtime.releaseObject",
  51. -    "Runtime.releaseObjectGroup",
  52. -    "Runtime.run",
  53. -    "Runtime.enable",
  54. -    "Runtime.disable",
  55. -    "Console.enable",
  56. -    "Console.disable",
  57. -    "Console.clearMessages",
  58. -    "Console.setMonitoringXHREnabled",
  59. -    "Console.addInspectedNode",
  60. -    "Console.addInspectedHeapObject",
  61. -    "Network.enable",
  62. -    "Network.disable",
  63. -    "Network.setUserAgentOverride",
  64. -    "Network.setExtraHTTPHeaders",
  65. -    "Network.getResponseBody",
  66. -    "Network.replayXHR",
  67. -    "Network.canClearBrowserCache",
  68. -    "Network.clearBrowserCache",
  69. -    "Network.canClearBrowserCookies",
  70. -    "Network.clearBrowserCookies",
  71. -    "Network.setCacheDisabled",
  72. -    "Network.loadResourceForFrontend",
  73. -    "Database.enable",
  74. -    "Database.disable",
  75. -    "Database.getDatabaseTableNames",
  76. -    "Database.executeSQL",
  77. -    "IndexedDB.enable",
  78. -    "IndexedDB.disable",
  79. -    "IndexedDB.requestDatabaseNames",
  80. -    "IndexedDB.requestDatabase",
  81. -    "IndexedDB.requestData",
  82. -    "IndexedDB.clearObjectStore",
  83. -    "DOMStorage.enable",
  84. -    "DOMStorage.disable",
  85. -    "DOMStorage.getDOMStorageItems",
  86. -    "DOMStorage.setDOMStorageItem",
  87. -    "DOMStorage.removeDOMStorageItem",
  88. -    "ApplicationCache.getFramesWithManifests",
  89. -    "ApplicationCache.enable",
  90. -    "ApplicationCache.getManifestForFrame",
  91. -    "ApplicationCache.getApplicationCacheForFrame",
  92. -    "FileSystem.enable",
  93. -    "FileSystem.disable",
  94. -    "FileSystem.requestFileSystemRoot",
  95. -    "FileSystem.requestDirectoryContent",
  96. -    "FileSystem.requestMetadata",
  97. -    "FileSystem.requestFileContent",
  98. -    "FileSystem.deleteEntry",
  99. -    "DOM.getDocument",
  100. -    "DOM.requestChildNodes",
  101. -    "DOM.querySelector",
  102. -    "DOM.querySelectorAll",
  103. -    "DOM.setNodeName",
  104. -    "DOM.setNodeValue",
  105. -    "DOM.removeNode",
  106. -    "DOM.setAttributeValue",
  107. -    "DOM.setAttributesAsText",
  108. -    "DOM.removeAttribute",
  109. -    "DOM.getEventListenersForNode",
  110. -    "DOM.getOuterHTML",
  111. -    "DOM.setOuterHTML",
  112. -    "DOM.performSearch",
  113. -    "DOM.getSearchResults",
  114. -    "DOM.discardSearchResults",
  115. -    "DOM.requestNode",
  116. -    "DOM.setInspectModeEnabled",
  117. -    "DOM.highlightRect",
  118. -    "DOM.highlightQuad",
  119. -    "DOM.highlightNode",
  120. -    "DOM.hideHighlight",
  121. -    "DOM.highlightFrame",
  122. -    "DOM.pushNodeByPathToFrontend",
  123. -    "DOM.pushNodeByBackendIdToFrontend",
  124. -    "DOM.releaseBackendNodeIds",
  125. -    "DOM.resolveNode",
  126. -    "DOM.getAttributes",
  127. -    "DOM.moveTo",
  128. -    "DOM.undo",
  129. -    "DOM.redo",
  130. -    "DOM.markUndoableState",
  131. -    "DOM.focus",
  132. -    "DOM.setFileInputFiles",
  133. -    "DOM.getBoxModel",
  134. -    "DOM.getNodeForLocation",
  135. -    "DOM.getRelayoutBoundary",
  136. -    "CSS.enable",
  137. -    "CSS.disable",
  138. -    "CSS.getMatchedStylesForNode",
  139. -    "CSS.getInlineStylesForNode",
  140. -    "CSS.getComputedStyleForNode",
  141. -    "CSS.getPlatformFontsForNode",
  142. -    "CSS.getAllStyleSheets",
  143. -    "CSS.getStyleSheet",
  144. -    "CSS.getStyleSheetText",
  145. -    "CSS.setStyleSheetText",
  146. -    "CSS.setStyleText",
  147. -    "CSS.setPropertyText",
  148. -    "CSS.toggleProperty",
  149. -    "CSS.setRuleSelector",
  150. -    "CSS.addRule",
  151. -    "CSS.getSupportedCSSProperties",
  152. -    "CSS.forcePseudoState",
  153. -    "CSS.getNamedFlowCollection",
  154. -    "Timeline.enable",
  155. -    "Timeline.disable",
  156. -    "Timeline.start",
  157. -    "Timeline.stop",
  158. -    "Debugger.enable",
  159. -    "Debugger.disable",
  160. -    "Debugger.setBreakpointsActive",
  161. -    "Debugger.setSkipAllPauses",
  162. -    "Debugger.setBreakpointByUrl",
  163. -    "Debugger.setBreakpoint",
  164. -    "Debugger.removeBreakpoint",
  165. -    "Debugger.continueToLocation",
  166. -    "Debugger.stepOver",
  167. -    "Debugger.stepInto",
  168. -    "Debugger.stepOut",
  169. -    "Debugger.pause",
  170. -    "Debugger.resume",
  171. -    "Debugger.searchInContent",
  172. -    "Debugger.canSetScriptSource",
  173. -    "Debugger.setScriptSource",
  174. -    "Debugger.restartFrame",
  175. -    "Debugger.getScriptSource",
  176. -    "Debugger.getFunctionDetails",
  177. -    "Debugger.setPauseOnExceptions",
  178. -    "Debugger.evaluateOnCallFrame",
  179. -    "Debugger.compileScript",
  180. -    "Debugger.runScript",
  181. -    "Debugger.setOverlayMessage",
  182. -    "Debugger.setVariableValue",
  183. -    "Debugger.getStepInPositions",
  184. -    "Debugger.getBacktrace",
  185. -    "Debugger.skipStackFrames",
  186. -    "DOMDebugger.setDOMBreakpoint",
  187. -    "DOMDebugger.removeDOMBreakpoint",
  188. -    "DOMDebugger.setEventListenerBreakpoint",
  189. -    "DOMDebugger.removeEventListenerBreakpoint",
  190. -    "DOMDebugger.setInstrumentationBreakpoint",
  191. -    "DOMDebugger.removeInstrumentationBreakpoint",
  192. -    "DOMDebugger.setXHRBreakpoint",
  193. -    "DOMDebugger.removeXHRBreakpoint",
  194. -    "Profiler.enable",
  195. -    "Profiler.disable",
  196. -    "Profiler.setSamplingInterval",
  197. -    "Profiler.start",
  198. -    "Profiler.stop",
  199. -    "Profiler.getCPUProfile",
  200. -    "Profiler.removeProfile",
  201. -    "Profiler.clearProfiles",
  202. -    "HeapProfiler.enable",
  203. -    "HeapProfiler.disable",
  204. -    "HeapProfiler.startTrackingHeapObjects",
  205. -    "HeapProfiler.stopTrackingHeapObjects",
  206. -    "HeapProfiler.getHeapSnapshot",
  207. -    "HeapProfiler.removeProfile",
  208. -    "HeapProfiler.clearProfiles",
  209. -    "HeapProfiler.takeHeapSnapshot",
  210. -    "HeapProfiler.collectGarbage",
  211. -    "HeapProfiler.getObjectByHeapObjectId",
  212. -    "HeapProfiler.getHeapObjectId",
  213. -    "Worker.enable",
  214. -    "Worker.disable",
  215. -    "Worker.sendMessageToWorker",
  216. -    "Worker.canInspectWorkers",
  217. -    "Worker.connectToWorker",
  218. -    "Worker.disconnectFromWorker",
  219. -    "Worker.setAutoconnectToWorkers",
  220. -    "Canvas.enable",
  221. -    "Canvas.disable",
  222. -    "Canvas.dropTraceLog",
  223. -    "Canvas.hasUninstrumentedCanvases",
  224. -    "Canvas.captureFrame",
  225. -    "Canvas.startCapturing",
  226. -    "Canvas.stopCapturing",
  227. -    "Canvas.getTraceLog",
  228. -    "Canvas.replayTraceLog",
  229. -    "Canvas.getResourceState",
  230. -    "Canvas.evaluateTraceLogCallArgument",
  231. -    "Input.dispatchKeyEvent",
  232. -    "Input.dispatchMouseEvent",
  233. -    "Input.dispatchTouchEvent",
  234. -    "Input.dispatchGestureEvent",
  235. -    "LayerTree.enable",
  236. -    "LayerTree.disable",
  237. -    "LayerTree.getLayers",
  238. -    "LayerTree.compositingReasons",
  239. -    "Tracing.start",
  240. -    "Tracing.end",
  241. +const char InspectorBackendDispatcher::commandNames[] = {
  242. +    "Inspector.enable\0"
  243. +    "Inspector.disable\0"
  244. +    "Inspector.reset\0"
  245. +    "Memory.getDOMCounters\0"
  246. +    "Page.enable\0"
  247. +    "Page.disable\0"
  248. +    "Page.addScriptToEvaluateOnLoad\0"
  249. +    "Page.removeScriptToEvaluateOnLoad\0"
  250. +    "Page.reload\0"
  251. +    "Page.navigate\0"
  252. +    "Page.getNavigationHistory\0"
  253. +    "Page.navigateToHistoryEntry\0"
  254. +    "Page.getCookies\0"
  255. +    "Page.deleteCookie\0"
  256. +    "Page.getResourceTree\0"
  257. +    "Page.getResourceContent\0"
  258. +    "Page.searchInResource\0"
  259. +    "Page.setDocumentContent\0"
  260. +    "Page.setDeviceMetricsOverride\0"
  261. +    "Page.setShowPaintRects\0"
  262. +    "Page.setShowDebugBorders\0"
  263. +    "Page.setShowFPSCounter\0"
  264. +    "Page.setContinuousPaintingEnabled\0"
  265. +    "Page.setShowScrollBottleneckRects\0"
  266. +    "Page.getScriptExecutionStatus\0"
  267. +    "Page.setScriptExecutionDisabled\0"
  268. +    "Page.setGeolocationOverride\0"
  269. +    "Page.clearGeolocationOverride\0"
  270. +    "Page.setDeviceOrientationOverride\0"
  271. +    "Page.clearDeviceOrientationOverride\0"
  272. +    "Page.setTouchEmulationEnabled\0"
  273. +    "Page.setEmulatedMedia\0"
  274. +    "Page.captureScreenshot\0"
  275. +    "Page.canScreencast\0"
  276. +    "Page.startScreencast\0"
  277. +    "Page.stopScreencast\0"
  278. +    "Page.handleJavaScriptDialog\0"
  279. +    "Page.setShowViewportSizeOnResize\0"
  280. +    "Page.setForceCompositingMode\0"
  281. +    "Runtime.evaluate\0"
  282. +    "Runtime.callFunctionOn\0"
  283. +    "Runtime.getProperties\0"
  284. +    "Runtime.releaseObject\0"
  285. +    "Runtime.releaseObjectGroup\0"
  286. +    "Runtime.run\0"
  287. +    "Runtime.enable\0"
  288. +    "Runtime.disable\0"
  289. +    "Console.enable\0"
  290. +    "Console.disable\0"
  291. +    "Console.clearMessages\0"
  292. +    "Console.setMonitoringXHREnabled\0"
  293. +    "Console.addInspectedNode\0"
  294. +    "Console.addInspectedHeapObject\0"
  295. +    "Network.enable\0"
  296. +    "Network.disable\0"
  297. +    "Network.setUserAgentOverride\0"
  298. +    "Network.setExtraHTTPHeaders\0"
  299. +    "Network.getResponseBody\0"
  300. +    "Network.replayXHR\0"
  301. +    "Network.canClearBrowserCache\0"
  302. +    "Network.clearBrowserCache\0"
  303. +    "Network.canClearBrowserCookies\0"
  304. +    "Network.clearBrowserCookies\0"
  305. +    "Network.setCacheDisabled\0"
  306. +    "Network.loadResourceForFrontend\0"
  307. +    "Database.enable\0"
  308. +    "Database.disable\0"
  309. +    "Database.getDatabaseTableNames\0"
  310. +    "Database.executeSQL\0"
  311. +    "IndexedDB.enable\0"
  312. +    "IndexedDB.disable\0"
  313. +    "IndexedDB.requestDatabaseNames\0"
  314. +    "IndexedDB.requestDatabase\0"
  315. +    "IndexedDB.requestData\0"
  316. +    "IndexedDB.clearObjectStore\0"
  317. +    "DOMStorage.enable\0"
  318. +    "DOMStorage.disable\0"
  319. +    "DOMStorage.getDOMStorageItems\0"
  320. +    "DOMStorage.setDOMStorageItem\0"
  321. +    "DOMStorage.removeDOMStorageItem\0"
  322. +    "ApplicationCache.getFramesWithManifests\0"
  323. +    "ApplicationCache.enable\0"
  324. +    "ApplicationCache.getManifestForFrame\0"
  325. +    "ApplicationCache.getApplicationCacheForFrame\0"
  326. +    "FileSystem.enable\0"
  327. +    "FileSystem.disable\0"
  328. +    "FileSystem.requestFileSystemRoot\0"
  329. +    "FileSystem.requestDirectoryContent\0"
  330. +    "FileSystem.requestMetadata\0"
  331. +    "FileSystem.requestFileContent\0"
  332. +    "FileSystem.deleteEntry\0"
  333. +    "DOM.getDocument\0"
  334. +    "DOM.requestChildNodes\0"
  335. +    "DOM.querySelector\0"
  336. +    "DOM.querySelectorAll\0"
  337. +    "DOM.setNodeName\0"
  338. +    "DOM.setNodeValue\0"
  339. +    "DOM.removeNode\0"
  340. +    "DOM.setAttributeValue\0"
  341. +    "DOM.setAttributesAsText\0"
  342. +    "DOM.removeAttribute\0"
  343. +    "DOM.getEventListenersForNode\0"
  344. +    "DOM.getOuterHTML\0"
  345. +    "DOM.setOuterHTML\0"
  346. +    "DOM.performSearch\0"
  347. +    "DOM.getSearchResults\0"
  348. +    "DOM.discardSearchResults\0"
  349. +    "DOM.requestNode\0"
  350. +    "DOM.setInspectModeEnabled\0"
  351. +    "DOM.highlightRect\0"
  352. +    "DOM.highlightQuad\0"
  353. +    "DOM.highlightNode\0"
  354. +    "DOM.hideHighlight\0"
  355. +    "DOM.highlightFrame\0"
  356. +    "DOM.pushNodeByPathToFrontend\0"
  357. +    "DOM.pushNodeByBackendIdToFrontend\0"
  358. +    "DOM.releaseBackendNodeIds\0"
  359. +    "DOM.resolveNode\0"
  360. +    "DOM.getAttributes\0"
  361. +    "DOM.moveTo\0"
  362. +    "DOM.undo\0"
  363. +    "DOM.redo\0"
  364. +    "DOM.markUndoableState\0"
  365. +    "DOM.focus\0"
  366. +    "DOM.setFileInputFiles\0"
  367. +    "DOM.getBoxModel\0"
  368. +    "DOM.getNodeForLocation\0"
  369. +    "DOM.getRelayoutBoundary\0"
  370. +    "CSS.enable\0"
  371. +    "CSS.disable\0"
  372. +    "CSS.getMatchedStylesForNode\0"
  373. +    "CSS.getInlineStylesForNode\0"
  374. +    "CSS.getComputedStyleForNode\0"
  375. +    "CSS.getPlatformFontsForNode\0"
  376. +    "CSS.getAllStyleSheets\0"
  377. +    "CSS.getStyleSheet\0"
  378. +    "CSS.getStyleSheetText\0"
  379. +    "CSS.setStyleSheetText\0"
  380. +    "CSS.setStyleText\0"
  381. +    "CSS.setPropertyText\0"
  382. +    "CSS.toggleProperty\0"
  383. +    "CSS.setRuleSelector\0"
  384. +    "CSS.addRule\0"
  385. +    "CSS.getSupportedCSSProperties\0"
  386. +    "CSS.forcePseudoState\0"
  387. +    "CSS.getNamedFlowCollection\0"
  388. +    "Timeline.enable\0"
  389. +    "Timeline.disable\0"
  390. +    "Timeline.start\0"
  391. +    "Timeline.stop\0"
  392. +    "Debugger.enable\0"
  393. +    "Debugger.disable\0"
  394. +    "Debugger.setBreakpointsActive\0"
  395. +    "Debugger.setSkipAllPauses\0"
  396. +    "Debugger.setBreakpointByUrl\0"
  397. +    "Debugger.setBreakpoint\0"
  398. +    "Debugger.removeBreakpoint\0"
  399. +    "Debugger.continueToLocation\0"
  400. +    "Debugger.stepOver\0"
  401. +    "Debugger.stepInto\0"
  402. +    "Debugger.stepOut\0"
  403. +    "Debugger.pause\0"
  404. +    "Debugger.resume\0"
  405. +    "Debugger.searchInContent\0"
  406. +    "Debugger.canSetScriptSource\0"
  407. +    "Debugger.setScriptSource\0"
  408. +    "Debugger.restartFrame\0"
  409. +    "Debugger.getScriptSource\0"
  410. +    "Debugger.getFunctionDetails\0"
  411. +    "Debugger.setPauseOnExceptions\0"
  412. +    "Debugger.evaluateOnCallFrame\0"
  413. +    "Debugger.compileScript\0"
  414. +    "Debugger.runScript\0"
  415. +    "Debugger.setOverlayMessage\0"
  416. +    "Debugger.setVariableValue\0"
  417. +    "Debugger.getStepInPositions\0"
  418. +    "Debugger.getBacktrace\0"
  419. +    "Debugger.skipStackFrames\0"
  420. +    "DOMDebugger.setDOMBreakpoint\0"
  421. +    "DOMDebugger.removeDOMBreakpoint\0"
  422. +    "DOMDebugger.setEventListenerBreakpoint\0"
  423. +    "DOMDebugger.removeEventListenerBreakpoint\0"
  424. +    "DOMDebugger.setInstrumentationBreakpoint\0"
  425. +    "DOMDebugger.removeInstrumentationBreakpoint\0"
  426. +    "DOMDebugger.setXHRBreakpoint\0"
  427. +    "DOMDebugger.removeXHRBreakpoint\0"
  428. +    "Profiler.enable\0"
  429. +    "Profiler.disable\0"
  430. +    "Profiler.setSamplingInterval\0"
  431. +    "Profiler.start\0"
  432. +    "Profiler.stop\0"
  433. +    "Profiler.getCPUProfile\0"
  434. +    "Profiler.removeProfile\0"
  435. +    "Profiler.clearProfiles\0"
  436. +    "HeapProfiler.enable\0"
  437. +    "HeapProfiler.disable\0"
  438. +    "HeapProfiler.startTrackingHeapObjects\0"
  439. +    "HeapProfiler.stopTrackingHeapObjects\0"
  440. +    "HeapProfiler.getHeapSnapshot\0"
  441. +    "HeapProfiler.removeProfile\0"
  442. +    "HeapProfiler.clearProfiles\0"
  443. +    "HeapProfiler.takeHeapSnapshot\0"
  444. +    "HeapProfiler.collectGarbage\0"
  445. +    "HeapProfiler.getObjectByHeapObjectId\0"
  446. +    "HeapProfiler.getHeapObjectId\0"
  447. +    "Worker.enable\0"
  448. +    "Worker.disable\0"
  449. +    "Worker.sendMessageToWorker\0"
  450. +    "Worker.canInspectWorkers\0"
  451. +    "Worker.connectToWorker\0"
  452. +    "Worker.disconnectFromWorker\0"
  453. +    "Worker.setAutoconnectToWorkers\0"
  454. +    "Canvas.enable\0"
  455. +    "Canvas.disable\0"
  456. +    "Canvas.dropTraceLog\0"
  457. +    "Canvas.hasUninstrumentedCanvases\0"
  458. +    "Canvas.captureFrame\0"
  459. +    "Canvas.startCapturing\0"
  460. +    "Canvas.stopCapturing\0"
  461. +    "Canvas.getTraceLog\0"
  462. +    "Canvas.replayTraceLog\0"
  463. +    "Canvas.getResourceState\0"
  464. +    "Canvas.evaluateTraceLogCallArgument\0"
  465. +    "Input.dispatchKeyEvent\0"
  466. +    "Input.dispatchMouseEvent\0"
  467. +    "Input.dispatchTouchEvent\0"
  468. +    "Input.dispatchGestureEvent\0"
  469. +    "LayerTree.enable\0"
  470. +    "LayerTree.disable\0"
  471. +    "LayerTree.getLayers\0"
  472. +    "LayerTree.compositingReasons\0"
  473. +    "Tracing.start\0"
  474. +    "Tracing.end\0"
  475.  };
  476.  
  477. +const size_t InspectorBackendDispatcher::commandNamesIndex[] = {
  478. +    0,
  479. +    17,
  480. +    35,
  481. +    51,
  482. +    73,
  483. +    85,
  484. +    98,
  485. +    129,
  486. +    163,
  487. +    175,
  488. +    189,
  489. +    215,
  490. +    243,
  491. +    259,
  492. +    277,
  493. +    298,
  494. +    322,
  495. +    344,
  496. +    368,
  497. +    398,
  498. +    421,
  499. +    446,
  500. +    469,
  501. +    503,
  502. +    537,
  503. +    567,
  504. +    599,
  505. +    627,
  506. +    657,
  507. +    691,
  508. +    727,
  509. +    757,
  510. +    779,
  511. +    802,
  512. +    821,
  513. +    842,
  514. +    862,
  515. +    890,
  516. +    923,
  517. +    952,
  518. +    969,
  519. +    992,
  520. +    1014,
  521. +    1036,
  522. +    1063,
  523. +    1075,
  524. +    1090,
  525. +    1106,
  526. +    1121,
  527. +    1137,
  528. +    1159,
  529. +    1191,
  530. +    1216,
  531. +    1247,
  532. +    1262,
  533. +    1278,
  534. +    1307,
  535. +    1335,
  536. +    1359,
  537. +    1377,
  538. +    1406,
  539. +    1432,
  540. +    1463,
  541. +    1491,
  542. +    1516,
  543. +    1548,
  544. +    1564,
  545. +    1581,
  546. +    1612,
  547. +    1632,
  548. +    1649,
  549. +    1667,
  550. +    1698,
  551. +    1724,
  552. +    1746,
  553. +    1773,
  554. +    1791,
  555. +    1810,
  556. +    1840,
  557. +    1869,
  558. +    1901,
  559. +    1941,
  560. +    1965,
  561. +    2002,
  562. +    2047,
  563. +    2065,
  564. +    2084,
  565. +    2117,
  566. +    2152,
  567. +    2179,
  568. +    2209,
  569. +    2232,
  570. +    2248,
  571. +    2270,
  572. +    2288,
  573. +    2309,
  574. +    2325,
  575. +    2342,
  576. +    2357,
  577. +    2379,
  578. +    2403,
  579. +    2423,
  580. +    2452,
  581. +    2469,
  582. +    2486,
  583. +    2504,
  584. +    2525,
  585. +    2550,
  586. +    2566,
  587. +    2592,
  588. +    2610,
  589. +    2628,
  590. +    2646,
  591. +    2664,
  592. +    2683,
  593. +    2712,
  594. +    2746,
  595. +    2772,
  596. +    2788,
  597. +    2806,
  598. +    2817,
  599. +    2826,
  600. +    2835,
  601. +    2857,
  602. +    2867,
  603. +    2889,
  604. +    2905,
  605. +    2928,
  606. +    2952,
  607. +    2963,
  608. +    2975,
  609. +    3003,
  610. +    3030,
  611. +    3058,
  612. +    3086,
  613. +    3108,
  614. +    3126,
  615. +    3148,
  616. +    3170,
  617. +    3187,
  618. +    3207,
  619. +    3226,
  620. +    3246,
  621. +    3258,
  622. +    3288,
  623. +    3309,
  624. +    3336,
  625. +    3352,
  626. +    3369,
  627. +    3384,
  628. +    3398,
  629. +    3414,
  630. +    3431,
  631. +    3461,
  632. +    3487,
  633. +    3515,
  634. +    3538,
  635. +    3564,
  636. +    3592,
  637. +    3610,
  638. +    3628,
  639. +    3645,
  640. +    3660,
  641. +    3676,
  642. +    3701,
  643. +    3729,
  644. +    3754,
  645. +    3776,
  646. +    3801,
  647. +    3829,
  648. +    3859,
  649. +    3888,
  650. +    3911,
  651. +    3930,
  652. +    3957,
  653. +    3983,
  654. +    4011,
  655. +    4033,
  656. +    4058,
  657. +    4087,
  658. +    4119,
  659. +    4158,
  660. +    4200,
  661. +    4241,
  662. +    4285,
  663. +    4314,
  664. +    4346,
  665. +    4362,
  666. +    4379,
  667. +    4408,
  668. +    4423,
  669. +    4437,
  670. +    4460,
  671. +    4483,
  672. +    4506,
  673. +    4526,
  674. +    4547,
  675. +    4585,
  676. +    4622,
  677. +    4651,
  678. +    4678,
  679. +    4705,
  680. +    4735,
  681. +    4763,
  682. +    4800,
  683. +    4829,
  684. +    4843,
  685. +    4858,
  686. +    4885,
  687. +    4910,
  688. +    4933,
  689. +    4961,
  690. +    4992,
  691. +    5006,
  692. +    5021,
  693. +    5041,
  694. +    5074,
  695. +    5094,
  696. +    5116,
  697. +    5137,
  698. +    5156,
  699. +    5178,
  700. +    5202,
  701. +    5238,
  702. +    5261,
  703. +    5286,
  704. +    5311,
  705. +    5338,
  706. +    5355,
  707. +    5373,
  708. +    5393,
  709. +    5422,
  710. +    5436,
  711. +};
  712.  
  713.  class InspectorBackendDispatcherImpl : public InspectorBackendDispatcher {
  714.  public:
  715. @@ -604,7 +839,7 @@
  716.  
  717.  
  718.      }
  719. -    sendResponse(callId, result, commandNames[kInspector_enableCmd], protocolErrors, error, resultErrorData);
  720. +    sendResponse(callId, result, commandNames + commandNamesIndex[kInspector_enableCmd], protocolErrors, error, resultErrorData);
  721.  }
  722.  
  723.  void InspectorBackendDispatcherImpl::Inspector_disable(long callId, JSONObject*)
  724. @@ -623,7 +858,7 @@
  725.  
  726.  
  727.      }
  728. -    sendResponse(callId, result, commandNames[kInspector_disableCmd], protocolErrors, error, resultErrorData);
  729. +    sendResponse(callId, result, commandNames + commandNamesIndex[kInspector_disableCmd], protocolErrors, error, resultErrorData);
  730.  }
  731.  
  732.  void InspectorBackendDispatcherImpl::Inspector_reset(long callId, JSONObject*)
  733. @@ -642,7 +877,7 @@
  734.  
  735.  
  736.      }
  737. -    sendResponse(callId, result, commandNames[kInspector_resetCmd], protocolErrors, error, resultErrorData);
  738. +    sendResponse(callId, result, commandNames + commandNamesIndex[kInspector_resetCmd], protocolErrors, error, resultErrorData);
  739.  }
  740.  
  741.  void InspectorBackendDispatcherImpl::Memory_getDOMCounters(long callId, JSONObject*)
  742. @@ -669,7 +904,7 @@
  743.              result->setNumber("jsEventListeners", out_jsEventListeners);
  744.          }
  745.      }
  746. -    sendResponse(callId, result, commandNames[kMemory_getDOMCountersCmd], protocolErrors, error, resultErrorData);
  747. +    sendResponse(callId, result, commandNames + commandNamesIndex[kMemory_getDOMCountersCmd], protocolErrors, error, resultErrorData);
  748.  }
  749.  
  750.  void InspectorBackendDispatcherImpl::Page_enable(long callId, JSONObject*)
  751. @@ -688,7 +923,7 @@
  752.  
  753.  
  754.      }
  755. -    sendResponse(callId, result, commandNames[kPage_enableCmd], protocolErrors, error, resultErrorData);
  756. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_enableCmd], protocolErrors, error, resultErrorData);
  757.  }
  758.  
  759.  void InspectorBackendDispatcherImpl::Page_disable(long callId, JSONObject*)
  760. @@ -707,7 +942,7 @@
  761.  
  762.  
  763.      }
  764. -    sendResponse(callId, result, commandNames[kPage_disableCmd], protocolErrors, error, resultErrorData);
  765. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_disableCmd], protocolErrors, error, resultErrorData);
  766.  }
  767.  
  768.  void InspectorBackendDispatcherImpl::Page_addScriptToEvaluateOnLoad(long callId, JSONObject* requestMessageObject)
  769. @@ -735,7 +970,7 @@
  770.              result->setString("identifier", out_identifier);
  771.          }
  772.      }
  773. -    sendResponse(callId, result, commandNames[kPage_addScriptToEvaluateOnLoadCmd], protocolErrors, error, resultErrorData);
  774. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_addScriptToEvaluateOnLoadCmd], protocolErrors, error, resultErrorData);
  775.  }
  776.  
  777.  void InspectorBackendDispatcherImpl::Page_removeScriptToEvaluateOnLoad(long callId, JSONObject* requestMessageObject)
  778. @@ -759,7 +994,7 @@
  779.  
  780.  
  781.      }
  782. -    sendResponse(callId, result, commandNames[kPage_removeScriptToEvaluateOnLoadCmd], protocolErrors, error, resultErrorData);
  783. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_removeScriptToEvaluateOnLoadCmd], protocolErrors, error, resultErrorData);
  784.  }
  785.  
  786.  void InspectorBackendDispatcherImpl::Page_reload(long callId, JSONObject* requestMessageObject)
  787. @@ -788,7 +1023,7 @@
  788.  
  789.  
  790.      }
  791. -    sendResponse(callId, result, commandNames[kPage_reloadCmd], protocolErrors, error, resultErrorData);
  792. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_reloadCmd], protocolErrors, error, resultErrorData);
  793.  }
  794.  
  795.  void InspectorBackendDispatcherImpl::Page_navigate(long callId, JSONObject* requestMessageObject)
  796. @@ -812,7 +1047,7 @@
  797.  
  798.  
  799.      }
  800. -    sendResponse(callId, result, commandNames[kPage_navigateCmd], protocolErrors, error, resultErrorData);
  801. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_navigateCmd], protocolErrors, error, resultErrorData);
  802.  }
  803.  
  804.  void InspectorBackendDispatcherImpl::Page_getNavigationHistory(long callId, JSONObject* requestMessageObject)
  805. @@ -841,7 +1076,7 @@
  806.              result->setValue("entries", out_entries);
  807.          }
  808.      }
  809. -    sendResponse(callId, result, commandNames[kPage_getNavigationHistoryCmd], protocolErrors, error, resultErrorData);
  810. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_getNavigationHistoryCmd], protocolErrors, error, resultErrorData);
  811.  }
  812.  
  813.  void InspectorBackendDispatcherImpl::Page_navigateToHistoryEntry(long callId, JSONObject* requestMessageObject)
  814. @@ -865,7 +1100,7 @@
  815.  
  816.  
  817.      }
  818. -    sendResponse(callId, result, commandNames[kPage_navigateToHistoryEntryCmd], protocolErrors, error, resultErrorData);
  819. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_navigateToHistoryEntryCmd], protocolErrors, error, resultErrorData);
  820.  }
  821.  
  822.  void InspectorBackendDispatcherImpl::Page_getCookies(long callId, JSONObject*)
  823. @@ -890,7 +1125,7 @@
  824.              result->setString("cookiesString", out_cookiesString);
  825.          }
  826.      }
  827. -    sendResponse(callId, result, commandNames[kPage_getCookiesCmd], protocolErrors, error, resultErrorData);
  828. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_getCookiesCmd], protocolErrors, error, resultErrorData);
  829.  }
  830.  
  831.  void InspectorBackendDispatcherImpl::Page_deleteCookie(long callId, JSONObject* requestMessageObject)
  832. @@ -915,7 +1150,7 @@
  833.  
  834.  
  835.      }
  836. -    sendResponse(callId, result, commandNames[kPage_deleteCookieCmd], protocolErrors, error, resultErrorData);
  837. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_deleteCookieCmd], protocolErrors, error, resultErrorData);
  838.  }
  839.  
  840.  void InspectorBackendDispatcherImpl::Page_getResourceTree(long callId, JSONObject*)
  841. @@ -938,7 +1173,7 @@
  842.              result->setValue("frameTree", out_frameTree);
  843.          }
  844.      }
  845. -    sendResponse(callId, result, commandNames[kPage_getResourceTreeCmd], protocolErrors, error, resultErrorData);
  846. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_getResourceTreeCmd], protocolErrors, error, resultErrorData);
  847.  }
  848.  
  849.  void InspectorBackendDispatcherImpl::Page_getResourceContent(long callId, JSONObject* requestMessageObject)
  850. @@ -969,7 +1204,7 @@
  851.              result->setBoolean("base64Encoded", out_base64Encoded);
  852.          }
  853.      }
  854. -    sendResponse(callId, result, commandNames[kPage_getResourceContentCmd], protocolErrors, error, resultErrorData);
  855. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_getResourceContentCmd], protocolErrors, error, resultErrorData);
  856.  }
  857.  
  858.  void InspectorBackendDispatcherImpl::Page_searchInResource(long callId, JSONObject* requestMessageObject)
  859. @@ -1003,7 +1238,7 @@
  860.              result->setValue("result", out_result);
  861.          }
  862.      }
  863. -    sendResponse(callId, result, commandNames[kPage_searchInResourceCmd], protocolErrors, error, resultErrorData);
  864. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_searchInResourceCmd], protocolErrors, error, resultErrorData);
  865.  }
  866.  
  867.  void InspectorBackendDispatcherImpl::Page_setDocumentContent(long callId, JSONObject* requestMessageObject)
  868. @@ -1028,7 +1263,7 @@
  869.  
  870.  
  871.      }
  872. -    sendResponse(callId, result, commandNames[kPage_setDocumentContentCmd], protocolErrors, error, resultErrorData);
  873. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setDocumentContentCmd], protocolErrors, error, resultErrorData);
  874.  }
  875.  
  876.  void InspectorBackendDispatcherImpl::Page_setDeviceMetricsOverride(long callId, JSONObject* requestMessageObject)
  877. @@ -1057,7 +1292,7 @@
  878.  
  879.  
  880.      }
  881. -    sendResponse(callId, result, commandNames[kPage_setDeviceMetricsOverrideCmd], protocolErrors, error, resultErrorData);
  882. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setDeviceMetricsOverrideCmd], protocolErrors, error, resultErrorData);
  883.  }
  884.  
  885.  void InspectorBackendDispatcherImpl::Page_setShowPaintRects(long callId, JSONObject* requestMessageObject)
  886. @@ -1081,7 +1316,7 @@
  887.  
  888.  
  889.      }
  890. -    sendResponse(callId, result, commandNames[kPage_setShowPaintRectsCmd], protocolErrors, error, resultErrorData);
  891. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setShowPaintRectsCmd], protocolErrors, error, resultErrorData);
  892.  }
  893.  
  894.  void InspectorBackendDispatcherImpl::Page_setShowDebugBorders(long callId, JSONObject* requestMessageObject)
  895. @@ -1105,7 +1340,7 @@
  896.  
  897.  
  898.      }
  899. -    sendResponse(callId, result, commandNames[kPage_setShowDebugBordersCmd], protocolErrors, error, resultErrorData);
  900. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setShowDebugBordersCmd], protocolErrors, error, resultErrorData);
  901.  }
  902.  
  903.  void InspectorBackendDispatcherImpl::Page_setShowFPSCounter(long callId, JSONObject* requestMessageObject)
  904. @@ -1129,7 +1364,7 @@
  905.  
  906.  
  907.      }
  908. -    sendResponse(callId, result, commandNames[kPage_setShowFPSCounterCmd], protocolErrors, error, resultErrorData);
  909. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setShowFPSCounterCmd], protocolErrors, error, resultErrorData);
  910.  }
  911.  
  912.  void InspectorBackendDispatcherImpl::Page_setContinuousPaintingEnabled(long callId, JSONObject* requestMessageObject)
  913. @@ -1153,7 +1388,7 @@
  914.  
  915.  
  916.      }
  917. -    sendResponse(callId, result, commandNames[kPage_setContinuousPaintingEnabledCmd], protocolErrors, error, resultErrorData);
  918. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setContinuousPaintingEnabledCmd], protocolErrors, error, resultErrorData);
  919.  }
  920.  
  921.  void InspectorBackendDispatcherImpl::Page_setShowScrollBottleneckRects(long callId, JSONObject* requestMessageObject)
  922. @@ -1177,7 +1412,7 @@
  923.  
  924.  
  925.      }
  926. -    sendResponse(callId, result, commandNames[kPage_setShowScrollBottleneckRectsCmd], protocolErrors, error, resultErrorData);
  927. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setShowScrollBottleneckRectsCmd], protocolErrors, error, resultErrorData);
  928.  }
  929.  
  930.  void InspectorBackendDispatcherImpl::Page_getScriptExecutionStatus(long callId, JSONObject*)
  931. @@ -1200,7 +1435,7 @@
  932.              result->setString("result", TypeBuilder::getEnumConstantValue(out_result));
  933.          }
  934.      }
  935. -    sendResponse(callId, result, commandNames[kPage_getScriptExecutionStatusCmd], protocolErrors, error, resultErrorData);
  936. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_getScriptExecutionStatusCmd], protocolErrors, error, resultErrorData);
  937.  }
  938.  
  939.  void InspectorBackendDispatcherImpl::Page_setScriptExecutionDisabled(long callId, JSONObject* requestMessageObject)
  940. @@ -1224,7 +1459,7 @@
  941.  
  942.  
  943.      }
  944. -    sendResponse(callId, result, commandNames[kPage_setScriptExecutionDisabledCmd], protocolErrors, error, resultErrorData);
  945. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setScriptExecutionDisabledCmd], protocolErrors, error, resultErrorData);
  946.  }
  947.  
  948.  void InspectorBackendDispatcherImpl::Page_setGeolocationOverride(long callId, JSONObject* requestMessageObject)
  949. @@ -1253,7 +1488,7 @@
  950.  
  951.  
  952.      }
  953. -    sendResponse(callId, result, commandNames[kPage_setGeolocationOverrideCmd], protocolErrors, error, resultErrorData);
  954. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setGeolocationOverrideCmd], protocolErrors, error, resultErrorData);
  955.  }
  956.  
  957.  void InspectorBackendDispatcherImpl::Page_clearGeolocationOverride(long callId, JSONObject*)
  958. @@ -1272,7 +1507,7 @@
  959.  
  960.  
  961.      }
  962. -    sendResponse(callId, result, commandNames[kPage_clearGeolocationOverrideCmd], protocolErrors, error, resultErrorData);
  963. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_clearGeolocationOverrideCmd], protocolErrors, error, resultErrorData);
  964.  }
  965.  
  966.  void InspectorBackendDispatcherImpl::Page_setDeviceOrientationOverride(long callId, JSONObject* requestMessageObject)
  967. @@ -1298,7 +1533,7 @@
  968.  
  969.  
  970.      }
  971. -    sendResponse(callId, result, commandNames[kPage_setDeviceOrientationOverrideCmd], protocolErrors, error, resultErrorData);
  972. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setDeviceOrientationOverrideCmd], protocolErrors, error, resultErrorData);
  973.  }
  974.  
  975.  void InspectorBackendDispatcherImpl::Page_clearDeviceOrientationOverride(long callId, JSONObject*)
  976. @@ -1317,7 +1552,7 @@
  977.  
  978.  
  979.      }
  980. -    sendResponse(callId, result, commandNames[kPage_clearDeviceOrientationOverrideCmd], protocolErrors, error, resultErrorData);
  981. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_clearDeviceOrientationOverrideCmd], protocolErrors, error, resultErrorData);
  982.  }
  983.  
  984.  void InspectorBackendDispatcherImpl::Page_setTouchEmulationEnabled(long callId, JSONObject* requestMessageObject)
  985. @@ -1341,7 +1576,7 @@
  986.  
  987.  
  988.      }
  989. -    sendResponse(callId, result, commandNames[kPage_setTouchEmulationEnabledCmd], protocolErrors, error, resultErrorData);
  990. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setTouchEmulationEnabledCmd], protocolErrors, error, resultErrorData);
  991.  }
  992.  
  993.  void InspectorBackendDispatcherImpl::Page_setEmulatedMedia(long callId, JSONObject* requestMessageObject)
  994. @@ -1365,7 +1600,7 @@
  995.  
  996.  
  997.      }
  998. -    sendResponse(callId, result, commandNames[kPage_setEmulatedMediaCmd], protocolErrors, error, resultErrorData);
  999. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setEmulatedMediaCmd], protocolErrors, error, resultErrorData);
  1000.  }
  1001.  
  1002.  void InspectorBackendDispatcherImpl::Page_captureScreenshot(long callId, JSONObject* requestMessageObject)
  1003. @@ -1406,7 +1641,7 @@
  1004.              result->setValue("viewport", out_viewport);
  1005.          }
  1006.      }
  1007. -    sendResponse(callId, result, commandNames[kPage_captureScreenshotCmd], protocolErrors, error, resultErrorData);
  1008. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_captureScreenshotCmd], protocolErrors, error, resultErrorData);
  1009.  }
  1010.  
  1011.  void InspectorBackendDispatcherImpl::Page_canScreencast(long callId, JSONObject*)
  1012. @@ -1429,7 +1664,7 @@
  1013.              result->setBoolean("result", out_result);
  1014.          }
  1015.      }
  1016. -    sendResponse(callId, result, commandNames[kPage_canScreencastCmd], protocolErrors, error, resultErrorData);
  1017. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_canScreencastCmd], protocolErrors, error, resultErrorData);
  1018.  }
  1019.  
  1020.  void InspectorBackendDispatcherImpl::Page_startScreencast(long callId, JSONObject* requestMessageObject)
  1021. @@ -1460,7 +1695,7 @@
  1022.  
  1023.  
  1024.      }
  1025. -    sendResponse(callId, result, commandNames[kPage_startScreencastCmd], protocolErrors, error, resultErrorData);
  1026. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_startScreencastCmd], protocolErrors, error, resultErrorData);
  1027.  }
  1028.  
  1029.  void InspectorBackendDispatcherImpl::Page_stopScreencast(long callId, JSONObject*)
  1030. @@ -1479,7 +1714,7 @@
  1031.  
  1032.  
  1033.      }
  1034. -    sendResponse(callId, result, commandNames[kPage_stopScreencastCmd], protocolErrors, error, resultErrorData);
  1035. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_stopScreencastCmd], protocolErrors, error, resultErrorData);
  1036.  }
  1037.  
  1038.  void InspectorBackendDispatcherImpl::Page_handleJavaScriptDialog(long callId, JSONObject* requestMessageObject)
  1039. @@ -1505,7 +1740,7 @@
  1040.  
  1041.  
  1042.      }
  1043. -    sendResponse(callId, result, commandNames[kPage_handleJavaScriptDialogCmd], protocolErrors, error, resultErrorData);
  1044. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_handleJavaScriptDialogCmd], protocolErrors, error, resultErrorData);
  1045.  }
  1046.  
  1047.  void InspectorBackendDispatcherImpl::Page_setShowViewportSizeOnResize(long callId, JSONObject* requestMessageObject)
  1048. @@ -1531,7 +1766,7 @@
  1049.  
  1050.  
  1051.      }
  1052. -    sendResponse(callId, result, commandNames[kPage_setShowViewportSizeOnResizeCmd], protocolErrors, error, resultErrorData);
  1053. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setShowViewportSizeOnResizeCmd], protocolErrors, error, resultErrorData);
  1054.  }
  1055.  
  1056.  void InspectorBackendDispatcherImpl::Page_setForceCompositingMode(long callId, JSONObject* requestMessageObject)
  1057. @@ -1555,7 +1790,7 @@
  1058.  
  1059.  
  1060.      }
  1061. -    sendResponse(callId, result, commandNames[kPage_setForceCompositingModeCmd], protocolErrors, error, resultErrorData);
  1062. +    sendResponse(callId, result, commandNames + commandNamesIndex[kPage_setForceCompositingModeCmd], protocolErrors, error, resultErrorData);
  1063.  }
  1064.  
  1065.  void InspectorBackendDispatcherImpl::Runtime_evaluate(long callId, JSONObject* requestMessageObject)
  1066. @@ -1598,7 +1833,7 @@
  1067.                  result->setBoolean("wasThrown", out_wasThrown.getValue());
  1068.          }
  1069.      }
  1070. -    sendResponse(callId, result, commandNames[kRuntime_evaluateCmd], protocolErrors, error, resultErrorData);
  1071. +    sendResponse(callId, result, commandNames + commandNamesIndex[kRuntime_evaluateCmd], protocolErrors, error, resultErrorData);
  1072.  }
  1073.  
  1074.  void InspectorBackendDispatcherImpl::Runtime_callFunctionOn(long callId, JSONObject* requestMessageObject)
  1075. @@ -1638,7 +1873,7 @@
  1076.                  result->setBoolean("wasThrown", out_wasThrown.getValue());
  1077.          }
  1078.      }
  1079. -    sendResponse(callId, result, commandNames[kRuntime_callFunctionOnCmd], protocolErrors, error, resultErrorData);
  1080. +    sendResponse(callId, result, commandNames + commandNamesIndex[kRuntime_callFunctionOnCmd], protocolErrors, error, resultErrorData);
  1081.  }
  1082.  
  1083.  void InspectorBackendDispatcherImpl::Runtime_getProperties(long callId, JSONObject* requestMessageObject)
  1084. @@ -1673,7 +1908,7 @@
  1085.                  result->setValue("internalProperties", out_internalProperties);
  1086.          }
  1087.      }
  1088. -    sendResponse(callId, result, commandNames[kRuntime_getPropertiesCmd], protocolErrors, error, resultErrorData);
  1089. +    sendResponse(callId, result, commandNames + commandNamesIndex[kRuntime_getPropertiesCmd], protocolErrors, error, resultErrorData);
  1090.  }
  1091.  
  1092.  void InspectorBackendDispatcherImpl::Runtime_releaseObject(long callId, JSONObject* requestMessageObject)
  1093. @@ -1697,7 +1932,7 @@
  1094.  
  1095.  
  1096.      }
  1097. -    sendResponse(callId, result, commandNames[kRuntime_releaseObjectCmd], protocolErrors, error, resultErrorData);
  1098. +    sendResponse(callId, result, commandNames + commandNamesIndex[kRuntime_releaseObjectCmd], protocolErrors, error, resultErrorData);
  1099.  }
  1100.  
  1101.  void InspectorBackendDispatcherImpl::Runtime_releaseObjectGroup(long callId, JSONObject* requestMessageObject)
  1102. @@ -1721,7 +1956,7 @@
  1103.  
  1104.  
  1105.      }
  1106. -    sendResponse(callId, result, commandNames[kRuntime_releaseObjectGroupCmd], protocolErrors, error, resultErrorData);
  1107. +    sendResponse(callId, result, commandNames + commandNamesIndex[kRuntime_releaseObjectGroupCmd], protocolErrors, error, resultErrorData);
  1108.  }
  1109.  
  1110.  void InspectorBackendDispatcherImpl::Runtime_run(long callId, JSONObject*)
  1111. @@ -1740,7 +1975,7 @@
  1112.  
  1113.  
  1114.      }
  1115. -    sendResponse(callId, result, commandNames[kRuntime_runCmd], protocolErrors, error, resultErrorData);
  1116. +    sendResponse(callId, result, commandNames + commandNamesIndex[kRuntime_runCmd], protocolErrors, error, resultErrorData);
  1117.  }
  1118.  
  1119.  void InspectorBackendDispatcherImpl::Runtime_enable(long callId, JSONObject*)
  1120. @@ -1759,7 +1994,7 @@
  1121.  
  1122.  
  1123.      }
  1124. -    sendResponse(callId, result, commandNames[kRuntime_enableCmd], protocolErrors, error, resultErrorData);
  1125. +    sendResponse(callId, result, commandNames + commandNamesIndex[kRuntime_enableCmd], protocolErrors, error, resultErrorData);
  1126.  }
  1127.  
  1128.  void InspectorBackendDispatcherImpl::Runtime_disable(long callId, JSONObject*)
  1129. @@ -1778,7 +2013,7 @@
  1130.  
  1131.  
  1132.      }
  1133. -    sendResponse(callId, result, commandNames[kRuntime_disableCmd], protocolErrors, error, resultErrorData);
  1134. +    sendResponse(callId, result, commandNames + commandNamesIndex[kRuntime_disableCmd], protocolErrors, error, resultErrorData);
  1135.  }
  1136.  
  1137.  void InspectorBackendDispatcherImpl::Console_enable(long callId, JSONObject*)
  1138. @@ -1797,7 +2032,7 @@
  1139.  
  1140.  
  1141.      }
  1142. -    sendResponse(callId, result, commandNames[kConsole_enableCmd], protocolErrors, error, resultErrorData);
  1143. +    sendResponse(callId, result, commandNames + commandNamesIndex[kConsole_enableCmd], protocolErrors, error, resultErrorData);
  1144.  }
  1145.  
  1146.  void InspectorBackendDispatcherImpl::Console_disable(long callId, JSONObject*)
  1147. @@ -1816,7 +2051,7 @@
  1148.  
  1149.  
  1150.      }
  1151. -    sendResponse(callId, result, commandNames[kConsole_disableCmd], protocolErrors, error, resultErrorData);
  1152. +    sendResponse(callId, result, commandNames + commandNamesIndex[kConsole_disableCmd], protocolErrors, error, resultErrorData);
  1153.  }
  1154.  
  1155.  void InspectorBackendDispatcherImpl::Console_clearMessages(long callId, JSONObject*)
  1156. @@ -1835,7 +2070,7 @@
  1157.  
  1158.  
  1159.      }
  1160. -    sendResponse(callId, result, commandNames[kConsole_clearMessagesCmd], protocolErrors, error, resultErrorData);
  1161. +    sendResponse(callId, result, commandNames + commandNamesIndex[kConsole_clearMessagesCmd], protocolErrors, error, resultErrorData);
  1162.  }
  1163.  
  1164.  void InspectorBackendDispatcherImpl::Console_setMonitoringXHREnabled(long callId, JSONObject* requestMessageObject)
  1165. @@ -1859,7 +2094,7 @@
  1166.  
  1167.  
  1168.      }
  1169. -    sendResponse(callId, result, commandNames[kConsole_setMonitoringXHREnabledCmd], protocolErrors, error, resultErrorData);
  1170. +    sendResponse(callId, result, commandNames + commandNamesIndex[kConsole_setMonitoringXHREnabledCmd], protocolErrors, error, resultErrorData);
  1171.  }
  1172.  
  1173.  void InspectorBackendDispatcherImpl::Console_addInspectedNode(long callId, JSONObject* requestMessageObject)
  1174. @@ -1883,7 +2118,7 @@
  1175.  
  1176.  
  1177.      }
  1178. -    sendResponse(callId, result, commandNames[kConsole_addInspectedNodeCmd], protocolErrors, error, resultErrorData);
  1179. +    sendResponse(callId, result, commandNames + commandNamesIndex[kConsole_addInspectedNodeCmd], protocolErrors, error, resultErrorData);
  1180.  }
  1181.  
  1182.  void InspectorBackendDispatcherImpl::Console_addInspectedHeapObject(long callId, JSONObject* requestMessageObject)
  1183. @@ -1907,7 +2142,7 @@
  1184.  
  1185.  
  1186.      }
  1187. -    sendResponse(callId, result, commandNames[kConsole_addInspectedHeapObjectCmd], protocolErrors, error, resultErrorData);
  1188. +    sendResponse(callId, result, commandNames + commandNamesIndex[kConsole_addInspectedHeapObjectCmd], protocolErrors, error, resultErrorData);
  1189.  }
  1190.  
  1191.  void InspectorBackendDispatcherImpl::Network_enable(long callId, JSONObject*)
  1192. @@ -1926,7 +2161,7 @@
  1193.  
  1194.  
  1195.      }
  1196. -    sendResponse(callId, result, commandNames[kNetwork_enableCmd], protocolErrors, error, resultErrorData);
  1197. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_enableCmd], protocolErrors, error, resultErrorData);
  1198.  }
  1199.  
  1200.  void InspectorBackendDispatcherImpl::Network_disable(long callId, JSONObject*)
  1201. @@ -1945,7 +2180,7 @@
  1202.  
  1203.  
  1204.      }
  1205. -    sendResponse(callId, result, commandNames[kNetwork_disableCmd], protocolErrors, error, resultErrorData);
  1206. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_disableCmd], protocolErrors, error, resultErrorData);
  1207.  }
  1208.  
  1209.  void InspectorBackendDispatcherImpl::Network_setUserAgentOverride(long callId, JSONObject* requestMessageObject)
  1210. @@ -1969,7 +2204,7 @@
  1211.  
  1212.  
  1213.      }
  1214. -    sendResponse(callId, result, commandNames[kNetwork_setUserAgentOverrideCmd], protocolErrors, error, resultErrorData);
  1215. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_setUserAgentOverrideCmd], protocolErrors, error, resultErrorData);
  1216.  }
  1217.  
  1218.  void InspectorBackendDispatcherImpl::Network_setExtraHTTPHeaders(long callId, JSONObject* requestMessageObject)
  1219. @@ -1993,7 +2228,7 @@
  1220.  
  1221.  
  1222.      }
  1223. -    sendResponse(callId, result, commandNames[kNetwork_setExtraHTTPHeadersCmd], protocolErrors, error, resultErrorData);
  1224. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_setExtraHTTPHeadersCmd], protocolErrors, error, resultErrorData);
  1225.  }
  1226.  
  1227.  void InspectorBackendDispatcherImpl::Network_getResponseBody(long callId, JSONObject* requestMessageObject)
  1228. @@ -2023,7 +2258,7 @@
  1229.              result->setBoolean("base64Encoded", out_base64Encoded);
  1230.          }
  1231.      }
  1232. -    sendResponse(callId, result, commandNames[kNetwork_getResponseBodyCmd], protocolErrors, error, resultErrorData);
  1233. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_getResponseBodyCmd], protocolErrors, error, resultErrorData);
  1234.  }
  1235.  
  1236.  void InspectorBackendDispatcherImpl::Network_replayXHR(long callId, JSONObject* requestMessageObject)
  1237. @@ -2047,7 +2282,7 @@
  1238.  
  1239.  
  1240.      }
  1241. -    sendResponse(callId, result, commandNames[kNetwork_replayXHRCmd], protocolErrors, error, resultErrorData);
  1242. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_replayXHRCmd], protocolErrors, error, resultErrorData);
  1243.  }
  1244.  
  1245.  void InspectorBackendDispatcherImpl::Network_canClearBrowserCache(long callId, JSONObject*)
  1246. @@ -2070,7 +2305,7 @@
  1247.              result->setBoolean("result", out_result);
  1248.          }
  1249.      }
  1250. -    sendResponse(callId, result, commandNames[kNetwork_canClearBrowserCacheCmd], protocolErrors, error, resultErrorData);
  1251. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_canClearBrowserCacheCmd], protocolErrors, error, resultErrorData);
  1252.  }
  1253.  
  1254.  void InspectorBackendDispatcherImpl::Network_clearBrowserCache(long callId, JSONObject*)
  1255. @@ -2089,7 +2324,7 @@
  1256.  
  1257.  
  1258.      }
  1259. -    sendResponse(callId, result, commandNames[kNetwork_clearBrowserCacheCmd], protocolErrors, error, resultErrorData);
  1260. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_clearBrowserCacheCmd], protocolErrors, error, resultErrorData);
  1261.  }
  1262.  
  1263.  void InspectorBackendDispatcherImpl::Network_canClearBrowserCookies(long callId, JSONObject*)
  1264. @@ -2112,7 +2347,7 @@
  1265.              result->setBoolean("result", out_result);
  1266.          }
  1267.      }
  1268. -    sendResponse(callId, result, commandNames[kNetwork_canClearBrowserCookiesCmd], protocolErrors, error, resultErrorData);
  1269. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_canClearBrowserCookiesCmd], protocolErrors, error, resultErrorData);
  1270.  }
  1271.  
  1272.  void InspectorBackendDispatcherImpl::Network_clearBrowserCookies(long callId, JSONObject*)
  1273. @@ -2131,7 +2366,7 @@
  1274.  
  1275.  
  1276.      }
  1277. -    sendResponse(callId, result, commandNames[kNetwork_clearBrowserCookiesCmd], protocolErrors, error, resultErrorData);
  1278. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_clearBrowserCookiesCmd], protocolErrors, error, resultErrorData);
  1279.  }
  1280.  
  1281.  void InspectorBackendDispatcherImpl::Network_setCacheDisabled(long callId, JSONObject* requestMessageObject)
  1282. @@ -2155,7 +2390,7 @@
  1283.  
  1284.  
  1285.      }
  1286. -    sendResponse(callId, result, commandNames[kNetwork_setCacheDisabledCmd], protocolErrors, error, resultErrorData);
  1287. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_setCacheDisabledCmd], protocolErrors, error, resultErrorData);
  1288.  }
  1289.  
  1290.  InspectorBackendDispatcher::NetworkCommandHandler::LoadResourceForFrontendCallback::LoadResourceForFrontendCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1291. @@ -2197,7 +2432,7 @@
  1292.          callback->disable();
  1293.  
  1294.      }
  1295. -    sendResponse(callId, result, commandNames[kNetwork_loadResourceForFrontendCmd], protocolErrors, error, resultErrorData);
  1296. +    sendResponse(callId, result, commandNames + commandNamesIndex[kNetwork_loadResourceForFrontendCmd], protocolErrors, error, resultErrorData);
  1297.  }
  1298.  
  1299.  void InspectorBackendDispatcherImpl::Database_enable(long callId, JSONObject*)
  1300. @@ -2216,7 +2451,7 @@
  1301.  
  1302.  
  1303.      }
  1304. -    sendResponse(callId, result, commandNames[kDatabase_enableCmd], protocolErrors, error, resultErrorData);
  1305. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDatabase_enableCmd], protocolErrors, error, resultErrorData);
  1306.  }
  1307.  
  1308.  void InspectorBackendDispatcherImpl::Database_disable(long callId, JSONObject*)
  1309. @@ -2235,7 +2470,7 @@
  1310.  
  1311.  
  1312.      }
  1313. -    sendResponse(callId, result, commandNames[kDatabase_disableCmd], protocolErrors, error, resultErrorData);
  1314. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDatabase_disableCmd], protocolErrors, error, resultErrorData);
  1315.  }
  1316.  
  1317.  void InspectorBackendDispatcherImpl::Database_getDatabaseTableNames(long callId, JSONObject* requestMessageObject)
  1318. @@ -2263,7 +2498,7 @@
  1319.              result->setValue("tableNames", out_tableNames);
  1320.          }
  1321.      }
  1322. -    sendResponse(callId, result, commandNames[kDatabase_getDatabaseTableNamesCmd], protocolErrors, error, resultErrorData);
  1323. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDatabase_getDatabaseTableNamesCmd], protocolErrors, error, resultErrorData);
  1324.  }
  1325.  
  1326.  InspectorBackendDispatcher::DatabaseCommandHandler::ExecuteSQLCallback::ExecuteSQLCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1327. @@ -2306,7 +2541,7 @@
  1328.          callback->disable();
  1329.  
  1330.      }
  1331. -    sendResponse(callId, result, commandNames[kDatabase_executeSQLCmd], protocolErrors, error, resultErrorData);
  1332. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDatabase_executeSQLCmd], protocolErrors, error, resultErrorData);
  1333.  }
  1334.  
  1335.  void InspectorBackendDispatcherImpl::IndexedDB_enable(long callId, JSONObject*)
  1336. @@ -2325,7 +2560,7 @@
  1337.  
  1338.  
  1339.      }
  1340. -    sendResponse(callId, result, commandNames[kIndexedDB_enableCmd], protocolErrors, error, resultErrorData);
  1341. +    sendResponse(callId, result, commandNames + commandNamesIndex[kIndexedDB_enableCmd], protocolErrors, error, resultErrorData);
  1342.  }
  1343.  
  1344.  void InspectorBackendDispatcherImpl::IndexedDB_disable(long callId, JSONObject*)
  1345. @@ -2344,7 +2579,7 @@
  1346.  
  1347.  
  1348.      }
  1349. -    sendResponse(callId, result, commandNames[kIndexedDB_disableCmd], protocolErrors, error, resultErrorData);
  1350. +    sendResponse(callId, result, commandNames + commandNamesIndex[kIndexedDB_disableCmd], protocolErrors, error, resultErrorData);
  1351.  }
  1352.  
  1353.  InspectorBackendDispatcher::IndexedDBCommandHandler::RequestDatabaseNamesCallback::RequestDatabaseNamesCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1354. @@ -2381,7 +2616,7 @@
  1355.          callback->disable();
  1356.  
  1357.      }
  1358. -    sendResponse(callId, result, commandNames[kIndexedDB_requestDatabaseNamesCmd], protocolErrors, error, resultErrorData);
  1359. +    sendResponse(callId, result, commandNames + commandNamesIndex[kIndexedDB_requestDatabaseNamesCmd], protocolErrors, error, resultErrorData);
  1360.  }
  1361.  
  1362.  InspectorBackendDispatcher::IndexedDBCommandHandler::RequestDatabaseCallback::RequestDatabaseCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1363. @@ -2419,7 +2654,7 @@
  1364.          callback->disable();
  1365.  
  1366.      }
  1367. -    sendResponse(callId, result, commandNames[kIndexedDB_requestDatabaseCmd], protocolErrors, error, resultErrorData);
  1368. +    sendResponse(callId, result, commandNames + commandNamesIndex[kIndexedDB_requestDatabaseCmd], protocolErrors, error, resultErrorData);
  1369.  }
  1370.  
  1371.  InspectorBackendDispatcher::IndexedDBCommandHandler::RequestDataCallback::RequestDataCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1372. @@ -2464,7 +2699,7 @@
  1373.          callback->disable();
  1374.  
  1375.      }
  1376. -    sendResponse(callId, result, commandNames[kIndexedDB_requestDataCmd], protocolErrors, error, resultErrorData);
  1377. +    sendResponse(callId, result, commandNames + commandNamesIndex[kIndexedDB_requestDataCmd], protocolErrors, error, resultErrorData);
  1378.  }
  1379.  
  1380.  InspectorBackendDispatcher::IndexedDBCommandHandler::ClearObjectStoreCallback::ClearObjectStoreCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1381. @@ -2502,7 +2737,7 @@
  1382.          callback->disable();
  1383.  
  1384.      }
  1385. -    sendResponse(callId, result, commandNames[kIndexedDB_clearObjectStoreCmd], protocolErrors, error, resultErrorData);
  1386. +    sendResponse(callId, result, commandNames + commandNamesIndex[kIndexedDB_clearObjectStoreCmd], protocolErrors, error, resultErrorData);
  1387.  }
  1388.  
  1389.  void InspectorBackendDispatcherImpl::DOMStorage_enable(long callId, JSONObject*)
  1390. @@ -2521,7 +2756,7 @@
  1391.  
  1392.  
  1393.      }
  1394. -    sendResponse(callId, result, commandNames[kDOMStorage_enableCmd], protocolErrors, error, resultErrorData);
  1395. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMStorage_enableCmd], protocolErrors, error, resultErrorData);
  1396.  }
  1397.  
  1398.  void InspectorBackendDispatcherImpl::DOMStorage_disable(long callId, JSONObject*)
  1399. @@ -2540,7 +2775,7 @@
  1400.  
  1401.  
  1402.      }
  1403. -    sendResponse(callId, result, commandNames[kDOMStorage_disableCmd], protocolErrors, error, resultErrorData);
  1404. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMStorage_disableCmd], protocolErrors, error, resultErrorData);
  1405.  }
  1406.  
  1407.  void InspectorBackendDispatcherImpl::DOMStorage_getDOMStorageItems(long callId, JSONObject* requestMessageObject)
  1408. @@ -2568,7 +2803,7 @@
  1409.              result->setValue("entries", out_entries);
  1410.          }
  1411.      }
  1412. -    sendResponse(callId, result, commandNames[kDOMStorage_getDOMStorageItemsCmd], protocolErrors, error, resultErrorData);
  1413. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMStorage_getDOMStorageItemsCmd], protocolErrors, error, resultErrorData);
  1414.  }
  1415.  
  1416.  void InspectorBackendDispatcherImpl::DOMStorage_setDOMStorageItem(long callId, JSONObject* requestMessageObject)
  1417. @@ -2594,7 +2829,7 @@
  1418.  
  1419.  
  1420.      }
  1421. -    sendResponse(callId, result, commandNames[kDOMStorage_setDOMStorageItemCmd], protocolErrors, error, resultErrorData);
  1422. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMStorage_setDOMStorageItemCmd], protocolErrors, error, resultErrorData);
  1423.  }
  1424.  
  1425.  void InspectorBackendDispatcherImpl::DOMStorage_removeDOMStorageItem(long callId, JSONObject* requestMessageObject)
  1426. @@ -2619,7 +2854,7 @@
  1427.  
  1428.  
  1429.      }
  1430. -    sendResponse(callId, result, commandNames[kDOMStorage_removeDOMStorageItemCmd], protocolErrors, error, resultErrorData);
  1431. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMStorage_removeDOMStorageItemCmd], protocolErrors, error, resultErrorData);
  1432.  }
  1433.  
  1434.  void InspectorBackendDispatcherImpl::ApplicationCache_getFramesWithManifests(long callId, JSONObject*)
  1435. @@ -2642,7 +2877,7 @@
  1436.              result->setValue("frameIds", out_frameIds);
  1437.          }
  1438.      }
  1439. -    sendResponse(callId, result, commandNames[kApplicationCache_getFramesWithManifestsCmd], protocolErrors, error, resultErrorData);
  1440. +    sendResponse(callId, result, commandNames + commandNamesIndex[kApplicationCache_getFramesWithManifestsCmd], protocolErrors, error, resultErrorData);
  1441.  }
  1442.  
  1443.  void InspectorBackendDispatcherImpl::ApplicationCache_enable(long callId, JSONObject*)
  1444. @@ -2661,7 +2896,7 @@
  1445.  
  1446.  
  1447.      }
  1448. -    sendResponse(callId, result, commandNames[kApplicationCache_enableCmd], protocolErrors, error, resultErrorData);
  1449. +    sendResponse(callId, result, commandNames + commandNamesIndex[kApplicationCache_enableCmd], protocolErrors, error, resultErrorData);
  1450.  }
  1451.  
  1452.  void InspectorBackendDispatcherImpl::ApplicationCache_getManifestForFrame(long callId, JSONObject* requestMessageObject)
  1453. @@ -2689,7 +2924,7 @@
  1454.              result->setString("manifestURL", out_manifestURL);
  1455.          }
  1456.      }
  1457. -    sendResponse(callId, result, commandNames[kApplicationCache_getManifestForFrameCmd], protocolErrors, error, resultErrorData);
  1458. +    sendResponse(callId, result, commandNames + commandNamesIndex[kApplicationCache_getManifestForFrameCmd], protocolErrors, error, resultErrorData);
  1459.  }
  1460.  
  1461.  void InspectorBackendDispatcherImpl::ApplicationCache_getApplicationCacheForFrame(long callId, JSONObject* requestMessageObject)
  1462. @@ -2717,7 +2952,7 @@
  1463.              result->setValue("applicationCache", out_applicationCache);
  1464.          }
  1465.      }
  1466. -    sendResponse(callId, result, commandNames[kApplicationCache_getApplicationCacheForFrameCmd], protocolErrors, error, resultErrorData);
  1467. +    sendResponse(callId, result, commandNames + commandNamesIndex[kApplicationCache_getApplicationCacheForFrameCmd], protocolErrors, error, resultErrorData);
  1468.  }
  1469.  
  1470.  void InspectorBackendDispatcherImpl::FileSystem_enable(long callId, JSONObject*)
  1471. @@ -2736,7 +2971,7 @@
  1472.  
  1473.  
  1474.      }
  1475. -    sendResponse(callId, result, commandNames[kFileSystem_enableCmd], protocolErrors, error, resultErrorData);
  1476. +    sendResponse(callId, result, commandNames + commandNamesIndex[kFileSystem_enableCmd], protocolErrors, error, resultErrorData);
  1477.  }
  1478.  
  1479.  void InspectorBackendDispatcherImpl::FileSystem_disable(long callId, JSONObject*)
  1480. @@ -2755,7 +2990,7 @@
  1481.  
  1482.  
  1483.      }
  1484. -    sendResponse(callId, result, commandNames[kFileSystem_disableCmd], protocolErrors, error, resultErrorData);
  1485. +    sendResponse(callId, result, commandNames + commandNamesIndex[kFileSystem_disableCmd], protocolErrors, error, resultErrorData);
  1486.  }
  1487.  
  1488.  InspectorBackendDispatcher::FileSystemCommandHandler::RequestFileSystemRootCallback::RequestFileSystemRootCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1489. @@ -2795,7 +3030,7 @@
  1490.          callback->disable();
  1491.  
  1492.      }
  1493. -    sendResponse(callId, result, commandNames[kFileSystem_requestFileSystemRootCmd], protocolErrors, error, resultErrorData);
  1494. +    sendResponse(callId, result, commandNames + commandNamesIndex[kFileSystem_requestFileSystemRootCmd], protocolErrors, error, resultErrorData);
  1495.  }
  1496.  
  1497.  InspectorBackendDispatcher::FileSystemCommandHandler::RequestDirectoryContentCallback::RequestDirectoryContentCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1498. @@ -2834,7 +3069,7 @@
  1499.          callback->disable();
  1500.  
  1501.      }
  1502. -    sendResponse(callId, result, commandNames[kFileSystem_requestDirectoryContentCmd], protocolErrors, error, resultErrorData);
  1503. +    sendResponse(callId, result, commandNames + commandNamesIndex[kFileSystem_requestDirectoryContentCmd], protocolErrors, error, resultErrorData);
  1504.  }
  1505.  
  1506.  InspectorBackendDispatcher::FileSystemCommandHandler::RequestMetadataCallback::RequestMetadataCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1507. @@ -2873,7 +3108,7 @@
  1508.          callback->disable();
  1509.  
  1510.      }
  1511. -    sendResponse(callId, result, commandNames[kFileSystem_requestMetadataCmd], protocolErrors, error, resultErrorData);
  1512. +    sendResponse(callId, result, commandNames + commandNamesIndex[kFileSystem_requestMetadataCmd], protocolErrors, error, resultErrorData);
  1513.  }
  1514.  
  1515.  InspectorBackendDispatcher::FileSystemCommandHandler::RequestFileContentCallback::RequestFileContentCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1516. @@ -2921,7 +3156,7 @@
  1517.          callback->disable();
  1518.  
  1519.      }
  1520. -    sendResponse(callId, result, commandNames[kFileSystem_requestFileContentCmd], protocolErrors, error, resultErrorData);
  1521. +    sendResponse(callId, result, commandNames + commandNamesIndex[kFileSystem_requestFileContentCmd], protocolErrors, error, resultErrorData);
  1522.  }
  1523.  
  1524.  InspectorBackendDispatcher::FileSystemCommandHandler::DeleteEntryCallback::DeleteEntryCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1525. @@ -2958,7 +3193,7 @@
  1526.          callback->disable();
  1527.  
  1528.      }
  1529. -    sendResponse(callId, result, commandNames[kFileSystem_deleteEntryCmd], protocolErrors, error, resultErrorData);
  1530. +    sendResponse(callId, result, commandNames + commandNamesIndex[kFileSystem_deleteEntryCmd], protocolErrors, error, resultErrorData);
  1531.  }
  1532.  
  1533.  void InspectorBackendDispatcherImpl::DOM_getDocument(long callId, JSONObject*)
  1534. @@ -2981,7 +3216,7 @@
  1535.              result->setValue("root", out_root);
  1536.          }
  1537.      }
  1538. -    sendResponse(callId, result, commandNames[kDOM_getDocumentCmd], protocolErrors, error, resultErrorData);
  1539. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_getDocumentCmd], protocolErrors, error, resultErrorData);
  1540.  }
  1541.  
  1542.  void InspectorBackendDispatcherImpl::DOM_requestChildNodes(long callId, JSONObject* requestMessageObject)
  1543. @@ -3007,7 +3242,7 @@
  1544.  
  1545.  
  1546.      }
  1547. -    sendResponse(callId, result, commandNames[kDOM_requestChildNodesCmd], protocolErrors, error, resultErrorData);
  1548. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_requestChildNodesCmd], protocolErrors, error, resultErrorData);
  1549.  }
  1550.  
  1551.  void InspectorBackendDispatcherImpl::DOM_querySelector(long callId, JSONObject* requestMessageObject)
  1552. @@ -3036,7 +3271,7 @@
  1553.              result->setNumber("nodeId", out_nodeId);
  1554.          }
  1555.      }
  1556. -    sendResponse(callId, result, commandNames[kDOM_querySelectorCmd], protocolErrors, error, resultErrorData);
  1557. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_querySelectorCmd], protocolErrors, error, resultErrorData);
  1558.  }
  1559.  
  1560.  void InspectorBackendDispatcherImpl::DOM_querySelectorAll(long callId, JSONObject* requestMessageObject)
  1561. @@ -3065,7 +3300,7 @@
  1562.              result->setValue("nodeIds", out_nodeIds);
  1563.          }
  1564.      }
  1565. -    sendResponse(callId, result, commandNames[kDOM_querySelectorAllCmd], protocolErrors, error, resultErrorData);
  1566. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_querySelectorAllCmd], protocolErrors, error, resultErrorData);
  1567.  }
  1568.  
  1569.  void InspectorBackendDispatcherImpl::DOM_setNodeName(long callId, JSONObject* requestMessageObject)
  1570. @@ -3094,7 +3329,7 @@
  1571.              result->setNumber("nodeId", out_nodeId);
  1572.          }
  1573.      }
  1574. -    sendResponse(callId, result, commandNames[kDOM_setNodeNameCmd], protocolErrors, error, resultErrorData);
  1575. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_setNodeNameCmd], protocolErrors, error, resultErrorData);
  1576.  }
  1577.  
  1578.  void InspectorBackendDispatcherImpl::DOM_setNodeValue(long callId, JSONObject* requestMessageObject)
  1579. @@ -3119,7 +3354,7 @@
  1580.  
  1581.  
  1582.      }
  1583. -    sendResponse(callId, result, commandNames[kDOM_setNodeValueCmd], protocolErrors, error, resultErrorData);
  1584. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_setNodeValueCmd], protocolErrors, error, resultErrorData);
  1585.  }
  1586.  
  1587.  void InspectorBackendDispatcherImpl::DOM_removeNode(long callId, JSONObject* requestMessageObject)
  1588. @@ -3143,7 +3378,7 @@
  1589.  
  1590.  
  1591.      }
  1592. -    sendResponse(callId, result, commandNames[kDOM_removeNodeCmd], protocolErrors, error, resultErrorData);
  1593. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_removeNodeCmd], protocolErrors, error, resultErrorData);
  1594.  }
  1595.  
  1596.  void InspectorBackendDispatcherImpl::DOM_setAttributeValue(long callId, JSONObject* requestMessageObject)
  1597. @@ -3169,7 +3404,7 @@
  1598.  
  1599.  
  1600.      }
  1601. -    sendResponse(callId, result, commandNames[kDOM_setAttributeValueCmd], protocolErrors, error, resultErrorData);
  1602. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_setAttributeValueCmd], protocolErrors, error, resultErrorData);
  1603.  }
  1604.  
  1605.  void InspectorBackendDispatcherImpl::DOM_setAttributesAsText(long callId, JSONObject* requestMessageObject)
  1606. @@ -3196,7 +3431,7 @@
  1607.  
  1608.  
  1609.      }
  1610. -    sendResponse(callId, result, commandNames[kDOM_setAttributesAsTextCmd], protocolErrors, error, resultErrorData);
  1611. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_setAttributesAsTextCmd], protocolErrors, error, resultErrorData);
  1612.  }
  1613.  
  1614.  void InspectorBackendDispatcherImpl::DOM_removeAttribute(long callId, JSONObject* requestMessageObject)
  1615. @@ -3221,7 +3456,7 @@
  1616.  
  1617.  
  1618.      }
  1619. -    sendResponse(callId, result, commandNames[kDOM_removeAttributeCmd], protocolErrors, error, resultErrorData);
  1620. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_removeAttributeCmd], protocolErrors, error, resultErrorData);
  1621.  }
  1622.  
  1623.  void InspectorBackendDispatcherImpl::DOM_getEventListenersForNode(long callId, JSONObject* requestMessageObject)
  1624. @@ -3251,7 +3486,7 @@
  1625.              result->setValue("listeners", out_listeners);
  1626.          }
  1627.      }
  1628. -    sendResponse(callId, result, commandNames[kDOM_getEventListenersForNodeCmd], protocolErrors, error, resultErrorData);
  1629. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_getEventListenersForNodeCmd], protocolErrors, error, resultErrorData);
  1630.  }
  1631.  
  1632.  void InspectorBackendDispatcherImpl::DOM_getOuterHTML(long callId, JSONObject* requestMessageObject)
  1633. @@ -3279,7 +3514,7 @@
  1634.              result->setString("outerHTML", out_outerHTML);
  1635.          }
  1636.      }
  1637. -    sendResponse(callId, result, commandNames[kDOM_getOuterHTMLCmd], protocolErrors, error, resultErrorData);
  1638. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_getOuterHTMLCmd], protocolErrors, error, resultErrorData);
  1639.  }
  1640.  
  1641.  void InspectorBackendDispatcherImpl::DOM_setOuterHTML(long callId, JSONObject* requestMessageObject)
  1642. @@ -3304,7 +3539,7 @@
  1643.  
  1644.  
  1645.      }
  1646. -    sendResponse(callId, result, commandNames[kDOM_setOuterHTMLCmd], protocolErrors, error, resultErrorData);
  1647. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_setOuterHTMLCmd], protocolErrors, error, resultErrorData);
  1648.  }
  1649.  
  1650.  void InspectorBackendDispatcherImpl::DOM_performSearch(long callId, JSONObject* requestMessageObject)
  1651. @@ -3334,7 +3569,7 @@
  1652.              result->setNumber("resultCount", out_resultCount);
  1653.          }
  1654.      }
  1655. -    sendResponse(callId, result, commandNames[kDOM_performSearchCmd], protocolErrors, error, resultErrorData);
  1656. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_performSearchCmd], protocolErrors, error, resultErrorData);
  1657.  }
  1658.  
  1659.  void InspectorBackendDispatcherImpl::DOM_getSearchResults(long callId, JSONObject* requestMessageObject)
  1660. @@ -3364,7 +3599,7 @@
  1661.              result->setValue("nodeIds", out_nodeIds);
  1662.          }
  1663.      }
  1664. -    sendResponse(callId, result, commandNames[kDOM_getSearchResultsCmd], protocolErrors, error, resultErrorData);
  1665. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_getSearchResultsCmd], protocolErrors, error, resultErrorData);
  1666.  }
  1667.  
  1668.  void InspectorBackendDispatcherImpl::DOM_discardSearchResults(long callId, JSONObject* requestMessageObject)
  1669. @@ -3388,7 +3623,7 @@
  1670.  
  1671.  
  1672.      }
  1673. -    sendResponse(callId, result, commandNames[kDOM_discardSearchResultsCmd], protocolErrors, error, resultErrorData);
  1674. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_discardSearchResultsCmd], protocolErrors, error, resultErrorData);
  1675.  }
  1676.  
  1677.  void InspectorBackendDispatcherImpl::DOM_requestNode(long callId, JSONObject* requestMessageObject)
  1678. @@ -3416,7 +3651,7 @@
  1679.              result->setNumber("nodeId", out_nodeId);
  1680.          }
  1681.      }
  1682. -    sendResponse(callId, result, commandNames[kDOM_requestNodeCmd], protocolErrors, error, resultErrorData);
  1683. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_requestNodeCmd], protocolErrors, error, resultErrorData);
  1684.  }
  1685.  
  1686.  void InspectorBackendDispatcherImpl::DOM_setInspectModeEnabled(long callId, JSONObject* requestMessageObject)
  1687. @@ -3444,7 +3679,7 @@
  1688.  
  1689.  
  1690.      }
  1691. -    sendResponse(callId, result, commandNames[kDOM_setInspectModeEnabledCmd], protocolErrors, error, resultErrorData);
  1692. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_setInspectModeEnabledCmd], protocolErrors, error, resultErrorData);
  1693.  }
  1694.  
  1695.  void InspectorBackendDispatcherImpl::DOM_highlightRect(long callId, JSONObject* requestMessageObject)
  1696. @@ -3475,7 +3710,7 @@
  1697.  
  1698.  
  1699.      }
  1700. -    sendResponse(callId, result, commandNames[kDOM_highlightRectCmd], protocolErrors, error, resultErrorData);
  1701. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_highlightRectCmd], protocolErrors, error, resultErrorData);
  1702.  }
  1703.  
  1704.  void InspectorBackendDispatcherImpl::DOM_highlightQuad(long callId, JSONObject* requestMessageObject)
  1705. @@ -3503,7 +3738,7 @@
  1706.  
  1707.  
  1708.      }
  1709. -    sendResponse(callId, result, commandNames[kDOM_highlightQuadCmd], protocolErrors, error, resultErrorData);
  1710. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_highlightQuadCmd], protocolErrors, error, resultErrorData);
  1711.  }
  1712.  
  1713.  void InspectorBackendDispatcherImpl::DOM_highlightNode(long callId, JSONObject* requestMessageObject)
  1714. @@ -3531,7 +3766,7 @@
  1715.  
  1716.  
  1717.      }
  1718. -    sendResponse(callId, result, commandNames[kDOM_highlightNodeCmd], protocolErrors, error, resultErrorData);
  1719. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_highlightNodeCmd], protocolErrors, error, resultErrorData);
  1720.  }
  1721.  
  1722.  void InspectorBackendDispatcherImpl::DOM_hideHighlight(long callId, JSONObject*)
  1723. @@ -3550,7 +3785,7 @@
  1724.  
  1725.  
  1726.      }
  1727. -    sendResponse(callId, result, commandNames[kDOM_hideHighlightCmd], protocolErrors, error, resultErrorData);
  1728. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_hideHighlightCmd], protocolErrors, error, resultErrorData);
  1729.  }
  1730.  
  1731.  void InspectorBackendDispatcherImpl::DOM_highlightFrame(long callId, JSONObject* requestMessageObject)
  1732. @@ -3578,7 +3813,7 @@
  1733.  
  1734.  
  1735.      }
  1736. -    sendResponse(callId, result, commandNames[kDOM_highlightFrameCmd], protocolErrors, error, resultErrorData);
  1737. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_highlightFrameCmd], protocolErrors, error, resultErrorData);
  1738.  }
  1739.  
  1740.  void InspectorBackendDispatcherImpl::DOM_pushNodeByPathToFrontend(long callId, JSONObject* requestMessageObject)
  1741. @@ -3606,7 +3841,7 @@
  1742.              result->setNumber("nodeId", out_nodeId);
  1743.          }
  1744.      }
  1745. -    sendResponse(callId, result, commandNames[kDOM_pushNodeByPathToFrontendCmd], protocolErrors, error, resultErrorData);
  1746. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_pushNodeByPathToFrontendCmd], protocolErrors, error, resultErrorData);
  1747.  }
  1748.  
  1749.  void InspectorBackendDispatcherImpl::DOM_pushNodeByBackendIdToFrontend(long callId, JSONObject* requestMessageObject)
  1750. @@ -3634,7 +3869,7 @@
  1751.              result->setNumber("nodeId", out_nodeId);
  1752.          }
  1753.      }
  1754. -    sendResponse(callId, result, commandNames[kDOM_pushNodeByBackendIdToFrontendCmd], protocolErrors, error, resultErrorData);
  1755. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_pushNodeByBackendIdToFrontendCmd], protocolErrors, error, resultErrorData);
  1756.  }
  1757.  
  1758.  void InspectorBackendDispatcherImpl::DOM_releaseBackendNodeIds(long callId, JSONObject* requestMessageObject)
  1759. @@ -3658,7 +3893,7 @@
  1760.  
  1761.  
  1762.      }
  1763. -    sendResponse(callId, result, commandNames[kDOM_releaseBackendNodeIdsCmd], protocolErrors, error, resultErrorData);
  1764. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_releaseBackendNodeIdsCmd], protocolErrors, error, resultErrorData);
  1765.  }
  1766.  
  1767.  void InspectorBackendDispatcherImpl::DOM_resolveNode(long callId, JSONObject* requestMessageObject)
  1768. @@ -3688,7 +3923,7 @@
  1769.              result->setValue("object", out_object);
  1770.          }
  1771.      }
  1772. -    sendResponse(callId, result, commandNames[kDOM_resolveNodeCmd], protocolErrors, error, resultErrorData);
  1773. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_resolveNodeCmd], protocolErrors, error, resultErrorData);
  1774.  }
  1775.  
  1776.  void InspectorBackendDispatcherImpl::DOM_getAttributes(long callId, JSONObject* requestMessageObject)
  1777. @@ -3716,7 +3951,7 @@
  1778.              result->setValue("attributes", out_attributes);
  1779.          }
  1780.      }
  1781. -    sendResponse(callId, result, commandNames[kDOM_getAttributesCmd], protocolErrors, error, resultErrorData);
  1782. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_getAttributesCmd], protocolErrors, error, resultErrorData);
  1783.  }
  1784.  
  1785.  void InspectorBackendDispatcherImpl::DOM_moveTo(long callId, JSONObject* requestMessageObject)
  1786. @@ -3747,7 +3982,7 @@
  1787.              result->setNumber("nodeId", out_nodeId);
  1788.          }
  1789.      }
  1790. -    sendResponse(callId, result, commandNames[kDOM_moveToCmd], protocolErrors, error, resultErrorData);
  1791. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_moveToCmd], protocolErrors, error, resultErrorData);
  1792.  }
  1793.  
  1794.  void InspectorBackendDispatcherImpl::DOM_undo(long callId, JSONObject*)
  1795. @@ -3766,7 +4001,7 @@
  1796.  
  1797.  
  1798.      }
  1799. -    sendResponse(callId, result, commandNames[kDOM_undoCmd], protocolErrors, error, resultErrorData);
  1800. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_undoCmd], protocolErrors, error, resultErrorData);
  1801.  }
  1802.  
  1803.  void InspectorBackendDispatcherImpl::DOM_redo(long callId, JSONObject*)
  1804. @@ -3785,7 +4020,7 @@
  1805.  
  1806.  
  1807.      }
  1808. -    sendResponse(callId, result, commandNames[kDOM_redoCmd], protocolErrors, error, resultErrorData);
  1809. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_redoCmd], protocolErrors, error, resultErrorData);
  1810.  }
  1811.  
  1812.  void InspectorBackendDispatcherImpl::DOM_markUndoableState(long callId, JSONObject*)
  1813. @@ -3804,7 +4039,7 @@
  1814.  
  1815.  
  1816.      }
  1817. -    sendResponse(callId, result, commandNames[kDOM_markUndoableStateCmd], protocolErrors, error, resultErrorData);
  1818. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_markUndoableStateCmd], protocolErrors, error, resultErrorData);
  1819.  }
  1820.  
  1821.  void InspectorBackendDispatcherImpl::DOM_focus(long callId, JSONObject* requestMessageObject)
  1822. @@ -3828,7 +4063,7 @@
  1823.  
  1824.  
  1825.      }
  1826. -    sendResponse(callId, result, commandNames[kDOM_focusCmd], protocolErrors, error, resultErrorData);
  1827. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_focusCmd], protocolErrors, error, resultErrorData);
  1828.  }
  1829.  
  1830.  void InspectorBackendDispatcherImpl::DOM_setFileInputFiles(long callId, JSONObject* requestMessageObject)
  1831. @@ -3853,7 +4088,7 @@
  1832.  
  1833.  
  1834.      }
  1835. -    sendResponse(callId, result, commandNames[kDOM_setFileInputFilesCmd], protocolErrors, error, resultErrorData);
  1836. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_setFileInputFilesCmd], protocolErrors, error, resultErrorData);
  1837.  }
  1838.  
  1839.  void InspectorBackendDispatcherImpl::DOM_getBoxModel(long callId, JSONObject* requestMessageObject)
  1840. @@ -3881,7 +4116,7 @@
  1841.              result->setValue("model", out_model);
  1842.          }
  1843.      }
  1844. -    sendResponse(callId, result, commandNames[kDOM_getBoxModelCmd], protocolErrors, error, resultErrorData);
  1845. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_getBoxModelCmd], protocolErrors, error, resultErrorData);
  1846.  }
  1847.  
  1848.  void InspectorBackendDispatcherImpl::DOM_getNodeForLocation(long callId, JSONObject* requestMessageObject)
  1849. @@ -3910,7 +4145,7 @@
  1850.              result->setNumber("nodeId", out_nodeId);
  1851.          }
  1852.      }
  1853. -    sendResponse(callId, result, commandNames[kDOM_getNodeForLocationCmd], protocolErrors, error, resultErrorData);
  1854. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_getNodeForLocationCmd], protocolErrors, error, resultErrorData);
  1855.  }
  1856.  
  1857.  void InspectorBackendDispatcherImpl::DOM_getRelayoutBoundary(long callId, JSONObject* requestMessageObject)
  1858. @@ -3938,7 +4173,7 @@
  1859.              result->setNumber("nodeId", out_nodeId);
  1860.          }
  1861.      }
  1862. -    sendResponse(callId, result, commandNames[kDOM_getRelayoutBoundaryCmd], protocolErrors, error, resultErrorData);
  1863. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOM_getRelayoutBoundaryCmd], protocolErrors, error, resultErrorData);
  1864.  }
  1865.  
  1866.  InspectorBackendDispatcher::CSSCommandHandler::EnableCallback::EnableCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1867. @@ -3969,7 +4204,7 @@
  1868.          callback->disable();
  1869.  
  1870.      }
  1871. -    sendResponse(callId, result, commandNames[kCSS_enableCmd], protocolErrors, error, resultErrorData);
  1872. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_enableCmd], protocolErrors, error, resultErrorData);
  1873.  }
  1874.  
  1875.  void InspectorBackendDispatcherImpl::CSS_disable(long callId, JSONObject*)
  1876. @@ -3988,7 +4223,7 @@
  1877.  
  1878.  
  1879.      }
  1880. -    sendResponse(callId, result, commandNames[kCSS_disableCmd], protocolErrors, error, resultErrorData);
  1881. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_disableCmd], protocolErrors, error, resultErrorData);
  1882.  }
  1883.  
  1884.  void InspectorBackendDispatcherImpl::CSS_getMatchedStylesForNode(long callId, JSONObject* requestMessageObject)
  1885. @@ -4027,7 +4262,7 @@
  1886.                  result->setValue("inherited", out_inherited);
  1887.          }
  1888.      }
  1889. -    sendResponse(callId, result, commandNames[kCSS_getMatchedStylesForNodeCmd], protocolErrors, error, resultErrorData);
  1890. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getMatchedStylesForNodeCmd], protocolErrors, error, resultErrorData);
  1891.  }
  1892.  
  1893.  void InspectorBackendDispatcherImpl::CSS_getInlineStylesForNode(long callId, JSONObject* requestMessageObject)
  1894. @@ -4059,7 +4294,7 @@
  1895.                  result->setValue("attributesStyle", out_attributesStyle);
  1896.          }
  1897.      }
  1898. -    sendResponse(callId, result, commandNames[kCSS_getInlineStylesForNodeCmd], protocolErrors, error, resultErrorData);
  1899. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getInlineStylesForNodeCmd], protocolErrors, error, resultErrorData);
  1900.  }
  1901.  
  1902.  void InspectorBackendDispatcherImpl::CSS_getComputedStyleForNode(long callId, JSONObject* requestMessageObject)
  1903. @@ -4087,7 +4322,7 @@
  1904.              result->setValue("computedStyle", out_computedStyle);
  1905.          }
  1906.      }
  1907. -    sendResponse(callId, result, commandNames[kCSS_getComputedStyleForNodeCmd], protocolErrors, error, resultErrorData);
  1908. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getComputedStyleForNodeCmd], protocolErrors, error, resultErrorData);
  1909.  }
  1910.  
  1911.  void InspectorBackendDispatcherImpl::CSS_getPlatformFontsForNode(long callId, JSONObject* requestMessageObject)
  1912. @@ -4117,7 +4352,7 @@
  1913.              result->setValue("fonts", out_fonts);
  1914.          }
  1915.      }
  1916. -    sendResponse(callId, result, commandNames[kCSS_getPlatformFontsForNodeCmd], protocolErrors, error, resultErrorData);
  1917. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getPlatformFontsForNodeCmd], protocolErrors, error, resultErrorData);
  1918.  }
  1919.  
  1920.  void InspectorBackendDispatcherImpl::CSS_getAllStyleSheets(long callId, JSONObject*)
  1921. @@ -4140,7 +4375,7 @@
  1922.              result->setValue("headers", out_headers);
  1923.          }
  1924.      }
  1925. -    sendResponse(callId, result, commandNames[kCSS_getAllStyleSheetsCmd], protocolErrors, error, resultErrorData);
  1926. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getAllStyleSheetsCmd], protocolErrors, error, resultErrorData);
  1927.  }
  1928.  
  1929.  void InspectorBackendDispatcherImpl::CSS_getStyleSheet(long callId, JSONObject* requestMessageObject)
  1930. @@ -4168,7 +4403,7 @@
  1931.              result->setValue("styleSheet", out_styleSheet);
  1932.          }
  1933.      }
  1934. -    sendResponse(callId, result, commandNames[kCSS_getStyleSheetCmd], protocolErrors, error, resultErrorData);
  1935. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getStyleSheetCmd], protocolErrors, error, resultErrorData);
  1936.  }
  1937.  
  1938.  void InspectorBackendDispatcherImpl::CSS_getStyleSheetText(long callId, JSONObject* requestMessageObject)
  1939. @@ -4196,7 +4431,7 @@
  1940.              result->setString("text", out_text);
  1941.          }
  1942.      }
  1943. -    sendResponse(callId, result, commandNames[kCSS_getStyleSheetTextCmd], protocolErrors, error, resultErrorData);
  1944. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getStyleSheetTextCmd], protocolErrors, error, resultErrorData);
  1945.  }
  1946.  
  1947.  void InspectorBackendDispatcherImpl::CSS_setStyleSheetText(long callId, JSONObject* requestMessageObject)
  1948. @@ -4221,7 +4456,7 @@
  1949.  
  1950.  
  1951.      }
  1952. -    sendResponse(callId, result, commandNames[kCSS_setStyleSheetTextCmd], protocolErrors, error, resultErrorData);
  1953. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_setStyleSheetTextCmd], protocolErrors, error, resultErrorData);
  1954.  }
  1955.  
  1956.  void InspectorBackendDispatcherImpl::CSS_setStyleText(long callId, JSONObject* requestMessageObject)
  1957. @@ -4250,7 +4485,7 @@
  1958.              result->setValue("style", out_style);
  1959.          }
  1960.      }
  1961. -    sendResponse(callId, result, commandNames[kCSS_setStyleTextCmd], protocolErrors, error, resultErrorData);
  1962. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_setStyleTextCmd], protocolErrors, error, resultErrorData);
  1963.  }
  1964.  
  1965.  void InspectorBackendDispatcherImpl::CSS_setPropertyText(long callId, JSONObject* requestMessageObject)
  1966. @@ -4281,7 +4516,7 @@
  1967.              result->setValue("style", out_style);
  1968.          }
  1969.      }
  1970. -    sendResponse(callId, result, commandNames[kCSS_setPropertyTextCmd], protocolErrors, error, resultErrorData);
  1971. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_setPropertyTextCmd], protocolErrors, error, resultErrorData);
  1972.  }
  1973.  
  1974.  void InspectorBackendDispatcherImpl::CSS_toggleProperty(long callId, JSONObject* requestMessageObject)
  1975. @@ -4311,7 +4546,7 @@
  1976.              result->setValue("style", out_style);
  1977.          }
  1978.      }
  1979. -    sendResponse(callId, result, commandNames[kCSS_togglePropertyCmd], protocolErrors, error, resultErrorData);
  1980. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_togglePropertyCmd], protocolErrors, error, resultErrorData);
  1981.  }
  1982.  
  1983.  void InspectorBackendDispatcherImpl::CSS_setRuleSelector(long callId, JSONObject* requestMessageObject)
  1984. @@ -4340,7 +4575,7 @@
  1985.              result->setValue("rule", out_rule);
  1986.          }
  1987.      }
  1988. -    sendResponse(callId, result, commandNames[kCSS_setRuleSelectorCmd], protocolErrors, error, resultErrorData);
  1989. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_setRuleSelectorCmd], protocolErrors, error, resultErrorData);
  1990.  }
  1991.  
  1992.  void InspectorBackendDispatcherImpl::CSS_addRule(long callId, JSONObject* requestMessageObject)
  1993. @@ -4369,7 +4604,7 @@
  1994.              result->setValue("rule", out_rule);
  1995.          }
  1996.      }
  1997. -    sendResponse(callId, result, commandNames[kCSS_addRuleCmd], protocolErrors, error, resultErrorData);
  1998. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_addRuleCmd], protocolErrors, error, resultErrorData);
  1999.  }
  2000.  
  2001.  void InspectorBackendDispatcherImpl::CSS_getSupportedCSSProperties(long callId, JSONObject*)
  2002. @@ -4392,7 +4627,7 @@
  2003.              result->setValue("cssProperties", out_cssProperties);
  2004.          }
  2005.      }
  2006. -    sendResponse(callId, result, commandNames[kCSS_getSupportedCSSPropertiesCmd], protocolErrors, error, resultErrorData);
  2007. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getSupportedCSSPropertiesCmd], protocolErrors, error, resultErrorData);
  2008.  }
  2009.  
  2010.  void InspectorBackendDispatcherImpl::CSS_forcePseudoState(long callId, JSONObject* requestMessageObject)
  2011. @@ -4417,7 +4652,7 @@
  2012.  
  2013.  
  2014.      }
  2015. -    sendResponse(callId, result, commandNames[kCSS_forcePseudoStateCmd], protocolErrors, error, resultErrorData);
  2016. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_forcePseudoStateCmd], protocolErrors, error, resultErrorData);
  2017.  }
  2018.  
  2019.  void InspectorBackendDispatcherImpl::CSS_getNamedFlowCollection(long callId, JSONObject* requestMessageObject)
  2020. @@ -4445,7 +4680,7 @@
  2021.              result->setValue("namedFlows", out_namedFlows);
  2022.          }
  2023.      }
  2024. -    sendResponse(callId, result, commandNames[kCSS_getNamedFlowCollectionCmd], protocolErrors, error, resultErrorData);
  2025. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCSS_getNamedFlowCollectionCmd], protocolErrors, error, resultErrorData);
  2026.  }
  2027.  
  2028.  void InspectorBackendDispatcherImpl::Timeline_enable(long callId, JSONObject*)
  2029. @@ -4464,7 +4699,7 @@
  2030.  
  2031.  
  2032.      }
  2033. -    sendResponse(callId, result, commandNames[kTimeline_enableCmd], protocolErrors, error, resultErrorData);
  2034. +    sendResponse(callId, result, commandNames + commandNamesIndex[kTimeline_enableCmd], protocolErrors, error, resultErrorData);
  2035.  }
  2036.  
  2037.  void InspectorBackendDispatcherImpl::Timeline_disable(long callId, JSONObject*)
  2038. @@ -4483,7 +4718,7 @@
  2039.  
  2040.  
  2041.      }
  2042. -    sendResponse(callId, result, commandNames[kTimeline_disableCmd], protocolErrors, error, resultErrorData);
  2043. +    sendResponse(callId, result, commandNames + commandNamesIndex[kTimeline_disableCmd], protocolErrors, error, resultErrorData);
  2044.  }
  2045.  
  2046.  void InspectorBackendDispatcherImpl::Timeline_start(long callId, JSONObject* requestMessageObject)
  2047. @@ -4512,7 +4747,7 @@
  2048.  
  2049.  
  2050.      }
  2051. -    sendResponse(callId, result, commandNames[kTimeline_startCmd], protocolErrors, error, resultErrorData);
  2052. +    sendResponse(callId, result, commandNames + commandNamesIndex[kTimeline_startCmd], protocolErrors, error, resultErrorData);
  2053.  }
  2054.  
  2055.  void InspectorBackendDispatcherImpl::Timeline_stop(long callId, JSONObject*)
  2056. @@ -4536,7 +4771,7 @@
  2057.                  result->setValue("events", out_events);
  2058.          }
  2059.      }
  2060. -    sendResponse(callId, result, commandNames[kTimeline_stopCmd], protocolErrors, error, resultErrorData);
  2061. +    sendResponse(callId, result, commandNames + commandNamesIndex[kTimeline_stopCmd], protocolErrors, error, resultErrorData);
  2062.  }
  2063.  
  2064.  void InspectorBackendDispatcherImpl::Debugger_enable(long callId, JSONObject*)
  2065. @@ -4555,7 +4790,7 @@
  2066.  
  2067.  
  2068.      }
  2069. -    sendResponse(callId, result, commandNames[kDebugger_enableCmd], protocolErrors, error, resultErrorData);
  2070. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_enableCmd], protocolErrors, error, resultErrorData);
  2071.  }
  2072.  
  2073.  void InspectorBackendDispatcherImpl::Debugger_disable(long callId, JSONObject*)
  2074. @@ -4574,7 +4809,7 @@
  2075.  
  2076.  
  2077.      }
  2078. -    sendResponse(callId, result, commandNames[kDebugger_disableCmd], protocolErrors, error, resultErrorData);
  2079. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_disableCmd], protocolErrors, error, resultErrorData);
  2080.  }
  2081.  
  2082.  void InspectorBackendDispatcherImpl::Debugger_setBreakpointsActive(long callId, JSONObject* requestMessageObject)
  2083. @@ -4598,7 +4833,7 @@
  2084.  
  2085.  
  2086.      }
  2087. -    sendResponse(callId, result, commandNames[kDebugger_setBreakpointsActiveCmd], protocolErrors, error, resultErrorData);
  2088. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_setBreakpointsActiveCmd], protocolErrors, error, resultErrorData);
  2089.  }
  2090.  
  2091.  void InspectorBackendDispatcherImpl::Debugger_setSkipAllPauses(long callId, JSONObject* requestMessageObject)
  2092. @@ -4624,7 +4859,7 @@
  2093.  
  2094.  
  2095.      }
  2096. -    sendResponse(callId, result, commandNames[kDebugger_setSkipAllPausesCmd], protocolErrors, error, resultErrorData);
  2097. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_setSkipAllPausesCmd], protocolErrors, error, resultErrorData);
  2098.  }
  2099.  
  2100.  void InspectorBackendDispatcherImpl::Debugger_setBreakpointByUrl(long callId, JSONObject* requestMessageObject)
  2101. @@ -4664,7 +4899,7 @@
  2102.              result->setValue("locations", out_locations);
  2103.          }
  2104.      }
  2105. -    sendResponse(callId, result, commandNames[kDebugger_setBreakpointByUrlCmd], protocolErrors, error, resultErrorData);
  2106. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_setBreakpointByUrlCmd], protocolErrors, error, resultErrorData);
  2107.  }
  2108.  
  2109.  void InspectorBackendDispatcherImpl::Debugger_setBreakpoint(long callId, JSONObject* requestMessageObject)
  2110. @@ -4696,7 +4931,7 @@
  2111.              result->setValue("actualLocation", out_actualLocation);
  2112.          }
  2113.      }
  2114. -    sendResponse(callId, result, commandNames[kDebugger_setBreakpointCmd], protocolErrors, error, resultErrorData);
  2115. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_setBreakpointCmd], protocolErrors, error, resultErrorData);
  2116.  }
  2117.  
  2118.  void InspectorBackendDispatcherImpl::Debugger_removeBreakpoint(long callId, JSONObject* requestMessageObject)
  2119. @@ -4720,7 +4955,7 @@
  2120.  
  2121.  
  2122.      }
  2123. -    sendResponse(callId, result, commandNames[kDebugger_removeBreakpointCmd], protocolErrors, error, resultErrorData);
  2124. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_removeBreakpointCmd], protocolErrors, error, resultErrorData);
  2125.  }
  2126.  
  2127.  void InspectorBackendDispatcherImpl::Debugger_continueToLocation(long callId, JSONObject* requestMessageObject)
  2128. @@ -4746,7 +4981,7 @@
  2129.  
  2130.  
  2131.      }
  2132. -    sendResponse(callId, result, commandNames[kDebugger_continueToLocationCmd], protocolErrors, error, resultErrorData);
  2133. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_continueToLocationCmd], protocolErrors, error, resultErrorData);
  2134.  }
  2135.  
  2136.  void InspectorBackendDispatcherImpl::Debugger_stepOver(long callId, JSONObject* requestMessageObject)
  2137. @@ -4771,7 +5006,7 @@
  2138.  
  2139.  
  2140.      }
  2141. -    sendResponse(callId, result, commandNames[kDebugger_stepOverCmd], protocolErrors, error, resultErrorData);
  2142. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_stepOverCmd], protocolErrors, error, resultErrorData);
  2143.  }
  2144.  
  2145.  void InspectorBackendDispatcherImpl::Debugger_stepInto(long callId, JSONObject*)
  2146. @@ -4790,7 +5025,7 @@
  2147.  
  2148.  
  2149.      }
  2150. -    sendResponse(callId, result, commandNames[kDebugger_stepIntoCmd], protocolErrors, error, resultErrorData);
  2151. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_stepIntoCmd], protocolErrors, error, resultErrorData);
  2152.  }
  2153.  
  2154.  void InspectorBackendDispatcherImpl::Debugger_stepOut(long callId, JSONObject* requestMessageObject)
  2155. @@ -4815,7 +5050,7 @@
  2156.  
  2157.  
  2158.      }
  2159. -    sendResponse(callId, result, commandNames[kDebugger_stepOutCmd], protocolErrors, error, resultErrorData);
  2160. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_stepOutCmd], protocolErrors, error, resultErrorData);
  2161.  }
  2162.  
  2163.  void InspectorBackendDispatcherImpl::Debugger_pause(long callId, JSONObject*)
  2164. @@ -4834,7 +5069,7 @@
  2165.  
  2166.  
  2167.      }
  2168. -    sendResponse(callId, result, commandNames[kDebugger_pauseCmd], protocolErrors, error, resultErrorData);
  2169. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_pauseCmd], protocolErrors, error, resultErrorData);
  2170.  }
  2171.  
  2172.  void InspectorBackendDispatcherImpl::Debugger_resume(long callId, JSONObject*)
  2173. @@ -4853,7 +5088,7 @@
  2174.  
  2175.  
  2176.      }
  2177. -    sendResponse(callId, result, commandNames[kDebugger_resumeCmd], protocolErrors, error, resultErrorData);
  2178. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_resumeCmd], protocolErrors, error, resultErrorData);
  2179.  }
  2180.  
  2181.  void InspectorBackendDispatcherImpl::Debugger_searchInContent(long callId, JSONObject* requestMessageObject)
  2182. @@ -4886,7 +5121,7 @@
  2183.              result->setValue("result", out_result);
  2184.          }
  2185.      }
  2186. -    sendResponse(callId, result, commandNames[kDebugger_searchInContentCmd], protocolErrors, error, resultErrorData);
  2187. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_searchInContentCmd], protocolErrors, error, resultErrorData);
  2188.  }
  2189.  
  2190.  void InspectorBackendDispatcherImpl::Debugger_canSetScriptSource(long callId, JSONObject*)
  2191. @@ -4909,7 +5144,7 @@
  2192.              result->setBoolean("result", out_result);
  2193.          }
  2194.      }
  2195. -    sendResponse(callId, result, commandNames[kDebugger_canSetScriptSourceCmd], protocolErrors, error, resultErrorData);
  2196. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_canSetScriptSourceCmd], protocolErrors, error, resultErrorData);
  2197.  }
  2198.  
  2199.  void InspectorBackendDispatcherImpl::Debugger_setScriptSource(long callId, JSONObject* requestMessageObject)
  2200. @@ -4949,7 +5184,7 @@
  2201.                  result->setValue("result", out_result);
  2202.          }
  2203.      }
  2204. -    sendResponse(callId, result, commandNames[kDebugger_setScriptSourceCmd], protocolErrors, error, resultErrorData);
  2205. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_setScriptSourceCmd], protocolErrors, error, resultErrorData);
  2206.  }
  2207.  
  2208.  void InspectorBackendDispatcherImpl::Debugger_restartFrame(long callId, JSONObject* requestMessageObject)
  2209. @@ -4979,7 +5214,7 @@
  2210.              result->setValue("result", out_result);
  2211.          }
  2212.      }
  2213. -    sendResponse(callId, result, commandNames[kDebugger_restartFrameCmd], protocolErrors, error, resultErrorData);
  2214. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_restartFrameCmd], protocolErrors, error, resultErrorData);
  2215.  }
  2216.  
  2217.  void InspectorBackendDispatcherImpl::Debugger_getScriptSource(long callId, JSONObject* requestMessageObject)
  2218. @@ -5007,7 +5242,7 @@
  2219.              result->setString("scriptSource", out_scriptSource);
  2220.          }
  2221.      }
  2222. -    sendResponse(callId, result, commandNames[kDebugger_getScriptSourceCmd], protocolErrors, error, resultErrorData);
  2223. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_getScriptSourceCmd], protocolErrors, error, resultErrorData);
  2224.  }
  2225.  
  2226.  void InspectorBackendDispatcherImpl::Debugger_getFunctionDetails(long callId, JSONObject* requestMessageObject)
  2227. @@ -5035,7 +5270,7 @@
  2228.              result->setValue("details", out_details);
  2229.          }
  2230.      }
  2231. -    sendResponse(callId, result, commandNames[kDebugger_getFunctionDetailsCmd], protocolErrors, error, resultErrorData);
  2232. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_getFunctionDetailsCmd], protocolErrors, error, resultErrorData);
  2233.  }
  2234.  
  2235.  void InspectorBackendDispatcherImpl::Debugger_setPauseOnExceptions(long callId, JSONObject* requestMessageObject)
  2236. @@ -5059,7 +5294,7 @@
  2237.  
  2238.  
  2239.      }
  2240. -    sendResponse(callId, result, commandNames[kDebugger_setPauseOnExceptionsCmd], protocolErrors, error, resultErrorData);
  2241. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_setPauseOnExceptionsCmd], protocolErrors, error, resultErrorData);
  2242.  }
  2243.  
  2244.  void InspectorBackendDispatcherImpl::Debugger_evaluateOnCallFrame(long callId, JSONObject* requestMessageObject)
  2245. @@ -5101,7 +5336,7 @@
  2246.                  result->setBoolean("wasThrown", out_wasThrown.getValue());
  2247.          }
  2248.      }
  2249. -    sendResponse(callId, result, commandNames[kDebugger_evaluateOnCallFrameCmd], protocolErrors, error, resultErrorData);
  2250. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_evaluateOnCallFrameCmd], protocolErrors, error, resultErrorData);
  2251.  }
  2252.  
  2253.  void InspectorBackendDispatcherImpl::Debugger_compileScript(long callId, JSONObject* requestMessageObject)
  2254. @@ -5134,7 +5369,7 @@
  2255.                  result->setString("syntaxErrorMessage", out_syntaxErrorMessage.getValue());
  2256.          }
  2257.      }
  2258. -    sendResponse(callId, result, commandNames[kDebugger_compileScriptCmd], protocolErrors, error, resultErrorData);
  2259. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_compileScriptCmd], protocolErrors, error, resultErrorData);
  2260.  }
  2261.  
  2262.  void InspectorBackendDispatcherImpl::Debugger_runScript(long callId, JSONObject* requestMessageObject)
  2263. @@ -5171,7 +5406,7 @@
  2264.                  result->setBoolean("wasThrown", out_wasThrown.getValue());
  2265.          }
  2266.      }
  2267. -    sendResponse(callId, result, commandNames[kDebugger_runScriptCmd], protocolErrors, error, resultErrorData);
  2268. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_runScriptCmd], protocolErrors, error, resultErrorData);
  2269.  }
  2270.  
  2271.  void InspectorBackendDispatcherImpl::Debugger_setOverlayMessage(long callId, JSONObject* requestMessageObject)
  2272. @@ -5196,7 +5431,7 @@
  2273.  
  2274.  
  2275.      }
  2276. -    sendResponse(callId, result, commandNames[kDebugger_setOverlayMessageCmd], protocolErrors, error, resultErrorData);
  2277. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_setOverlayMessageCmd], protocolErrors, error, resultErrorData);
  2278.  }
  2279.  
  2280.  void InspectorBackendDispatcherImpl::Debugger_setVariableValue(long callId, JSONObject* requestMessageObject)
  2281. @@ -5226,7 +5461,7 @@
  2282.  
  2283.  
  2284.      }
  2285. -    sendResponse(callId, result, commandNames[kDebugger_setVariableValueCmd], protocolErrors, error, resultErrorData);
  2286. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_setVariableValueCmd], protocolErrors, error, resultErrorData);
  2287.  }
  2288.  
  2289.  void InspectorBackendDispatcherImpl::Debugger_getStepInPositions(long callId, JSONObject* requestMessageObject)
  2290. @@ -5255,7 +5490,7 @@
  2291.                  result->setValue("stepInPositions", out_stepInPositions);
  2292.          }
  2293.      }
  2294. -    sendResponse(callId, result, commandNames[kDebugger_getStepInPositionsCmd], protocolErrors, error, resultErrorData);
  2295. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_getStepInPositionsCmd], protocolErrors, error, resultErrorData);
  2296.  }
  2297.  
  2298.  void InspectorBackendDispatcherImpl::Debugger_getBacktrace(long callId, JSONObject*)
  2299. @@ -5278,7 +5513,7 @@
  2300.              result->setValue("callFrames", out_callFrames);
  2301.          }
  2302.      }
  2303. -    sendResponse(callId, result, commandNames[kDebugger_getBacktraceCmd], protocolErrors, error, resultErrorData);
  2304. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_getBacktraceCmd], protocolErrors, error, resultErrorData);
  2305.  }
  2306.  
  2307.  void InspectorBackendDispatcherImpl::Debugger_skipStackFrames(long callId, JSONObject* requestMessageObject)
  2308. @@ -5303,7 +5538,7 @@
  2309.  
  2310.  
  2311.      }
  2312. -    sendResponse(callId, result, commandNames[kDebugger_skipStackFramesCmd], protocolErrors, error, resultErrorData);
  2313. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDebugger_skipStackFramesCmd], protocolErrors, error, resultErrorData);
  2314.  }
  2315.  
  2316.  void InspectorBackendDispatcherImpl::DOMDebugger_setDOMBreakpoint(long callId, JSONObject* requestMessageObject)
  2317. @@ -5328,7 +5563,7 @@
  2318.  
  2319.  
  2320.      }
  2321. -    sendResponse(callId, result, commandNames[kDOMDebugger_setDOMBreakpointCmd], protocolErrors, error, resultErrorData);
  2322. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMDebugger_setDOMBreakpointCmd], protocolErrors, error, resultErrorData);
  2323.  }
  2324.  
  2325.  void InspectorBackendDispatcherImpl::DOMDebugger_removeDOMBreakpoint(long callId, JSONObject* requestMessageObject)
  2326. @@ -5353,7 +5588,7 @@
  2327.  
  2328.  
  2329.      }
  2330. -    sendResponse(callId, result, commandNames[kDOMDebugger_removeDOMBreakpointCmd], protocolErrors, error, resultErrorData);
  2331. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMDebugger_removeDOMBreakpointCmd], protocolErrors, error, resultErrorData);
  2332.  }
  2333.  
  2334.  void InspectorBackendDispatcherImpl::DOMDebugger_setEventListenerBreakpoint(long callId, JSONObject* requestMessageObject)
  2335. @@ -5377,7 +5612,7 @@
  2336.  
  2337.  
  2338.      }
  2339. -    sendResponse(callId, result, commandNames[kDOMDebugger_setEventListenerBreakpointCmd], protocolErrors, error, resultErrorData);
  2340. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMDebugger_setEventListenerBreakpointCmd], protocolErrors, error, resultErrorData);
  2341.  }
  2342.  
  2343.  void InspectorBackendDispatcherImpl::DOMDebugger_removeEventListenerBreakpoint(long callId, JSONObject* requestMessageObject)
  2344. @@ -5401,7 +5636,7 @@
  2345.  
  2346.  
  2347.      }
  2348. -    sendResponse(callId, result, commandNames[kDOMDebugger_removeEventListenerBreakpointCmd], protocolErrors, error, resultErrorData);
  2349. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMDebugger_removeEventListenerBreakpointCmd], protocolErrors, error, resultErrorData);
  2350.  }
  2351.  
  2352.  void InspectorBackendDispatcherImpl::DOMDebugger_setInstrumentationBreakpoint(long callId, JSONObject* requestMessageObject)
  2353. @@ -5425,7 +5660,7 @@
  2354.  
  2355.  
  2356.      }
  2357. -    sendResponse(callId, result, commandNames[kDOMDebugger_setInstrumentationBreakpointCmd], protocolErrors, error, resultErrorData);
  2358. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMDebugger_setInstrumentationBreakpointCmd], protocolErrors, error, resultErrorData);
  2359.  }
  2360.  
  2361.  void InspectorBackendDispatcherImpl::DOMDebugger_removeInstrumentationBreakpoint(long callId, JSONObject* requestMessageObject)
  2362. @@ -5449,7 +5684,7 @@
  2363.  
  2364.  
  2365.      }
  2366. -    sendResponse(callId, result, commandNames[kDOMDebugger_removeInstrumentationBreakpointCmd], protocolErrors, error, resultErrorData);
  2367. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMDebugger_removeInstrumentationBreakpointCmd], protocolErrors, error, resultErrorData);
  2368.  }
  2369.  
  2370.  void InspectorBackendDispatcherImpl::DOMDebugger_setXHRBreakpoint(long callId, JSONObject* requestMessageObject)
  2371. @@ -5473,7 +5708,7 @@
  2372.  
  2373.  
  2374.      }
  2375. -    sendResponse(callId, result, commandNames[kDOMDebugger_setXHRBreakpointCmd], protocolErrors, error, resultErrorData);
  2376. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMDebugger_setXHRBreakpointCmd], protocolErrors, error, resultErrorData);
  2377.  }
  2378.  
  2379.  void InspectorBackendDispatcherImpl::DOMDebugger_removeXHRBreakpoint(long callId, JSONObject* requestMessageObject)
  2380. @@ -5497,7 +5732,7 @@
  2381.  
  2382.  
  2383.      }
  2384. -    sendResponse(callId, result, commandNames[kDOMDebugger_removeXHRBreakpointCmd], protocolErrors, error, resultErrorData);
  2385. +    sendResponse(callId, result, commandNames + commandNamesIndex[kDOMDebugger_removeXHRBreakpointCmd], protocolErrors, error, resultErrorData);
  2386.  }
  2387.  
  2388.  void InspectorBackendDispatcherImpl::Profiler_enable(long callId, JSONObject*)
  2389. @@ -5516,7 +5751,7 @@
  2390.  
  2391.  
  2392.      }
  2393. -    sendResponse(callId, result, commandNames[kProfiler_enableCmd], protocolErrors, error, resultErrorData);
  2394. +    sendResponse(callId, result, commandNames + commandNamesIndex[kProfiler_enableCmd], protocolErrors, error, resultErrorData);
  2395.  }
  2396.  
  2397.  void InspectorBackendDispatcherImpl::Profiler_disable(long callId, JSONObject*)
  2398. @@ -5535,7 +5770,7 @@
  2399.  
  2400.  
  2401.      }
  2402. -    sendResponse(callId, result, commandNames[kProfiler_disableCmd], protocolErrors, error, resultErrorData);
  2403. +    sendResponse(callId, result, commandNames + commandNamesIndex[kProfiler_disableCmd], protocolErrors, error, resultErrorData);
  2404.  }
  2405.  
  2406.  void InspectorBackendDispatcherImpl::Profiler_setSamplingInterval(long callId, JSONObject* requestMessageObject)
  2407. @@ -5559,7 +5794,7 @@
  2408.  
  2409.  
  2410.      }
  2411. -    sendResponse(callId, result, commandNames[kProfiler_setSamplingIntervalCmd], protocolErrors, error, resultErrorData);
  2412. +    sendResponse(callId, result, commandNames + commandNamesIndex[kProfiler_setSamplingIntervalCmd], protocolErrors, error, resultErrorData);
  2413.  }
  2414.  
  2415.  void InspectorBackendDispatcherImpl::Profiler_start(long callId, JSONObject*)
  2416. @@ -5578,7 +5813,7 @@
  2417.  
  2418.  
  2419.      }
  2420. -    sendResponse(callId, result, commandNames[kProfiler_startCmd], protocolErrors, error, resultErrorData);
  2421. +    sendResponse(callId, result, commandNames + commandNamesIndex[kProfiler_startCmd], protocolErrors, error, resultErrorData);
  2422.  }
  2423.  
  2424.  void InspectorBackendDispatcherImpl::Profiler_stop(long callId, JSONObject*)
  2425. @@ -5601,7 +5836,7 @@
  2426.              result->setValue("header", out_header);
  2427.          }
  2428.      }
  2429. -    sendResponse(callId, result, commandNames[kProfiler_stopCmd], protocolErrors, error, resultErrorData);
  2430. +    sendResponse(callId, result, commandNames + commandNamesIndex[kProfiler_stopCmd], protocolErrors, error, resultErrorData);
  2431.  }
  2432.  
  2433.  void InspectorBackendDispatcherImpl::Profiler_getCPUProfile(long callId, JSONObject* requestMessageObject)
  2434. @@ -5629,7 +5864,7 @@
  2435.              result->setValue("profile", out_profile);
  2436.          }
  2437.      }
  2438. -    sendResponse(callId, result, commandNames[kProfiler_getCPUProfileCmd], protocolErrors, error, resultErrorData);
  2439. +    sendResponse(callId, result, commandNames + commandNamesIndex[kProfiler_getCPUProfileCmd], protocolErrors, error, resultErrorData);
  2440.  }
  2441.  
  2442.  void InspectorBackendDispatcherImpl::Profiler_removeProfile(long callId, JSONObject* requestMessageObject)
  2443. @@ -5654,7 +5889,7 @@
  2444.  
  2445.  
  2446.      }
  2447. -    sendResponse(callId, result, commandNames[kProfiler_removeProfileCmd], protocolErrors, error, resultErrorData);
  2448. +    sendResponse(callId, result, commandNames + commandNamesIndex[kProfiler_removeProfileCmd], protocolErrors, error, resultErrorData);
  2449.  }
  2450.  
  2451.  void InspectorBackendDispatcherImpl::Profiler_clearProfiles(long callId, JSONObject*)
  2452. @@ -5673,7 +5908,7 @@
  2453.  
  2454.  
  2455.      }
  2456. -    sendResponse(callId, result, commandNames[kProfiler_clearProfilesCmd], protocolErrors, error, resultErrorData);
  2457. +    sendResponse(callId, result, commandNames + commandNamesIndex[kProfiler_clearProfilesCmd], protocolErrors, error, resultErrorData);
  2458.  }
  2459.  
  2460.  void InspectorBackendDispatcherImpl::HeapProfiler_enable(long callId, JSONObject*)
  2461. @@ -5692,7 +5927,7 @@
  2462.  
  2463.  
  2464.      }
  2465. -    sendResponse(callId, result, commandNames[kHeapProfiler_enableCmd], protocolErrors, error, resultErrorData);
  2466. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_enableCmd], protocolErrors, error, resultErrorData);
  2467.  }
  2468.  
  2469.  void InspectorBackendDispatcherImpl::HeapProfiler_disable(long callId, JSONObject*)
  2470. @@ -5711,7 +5946,7 @@
  2471.  
  2472.  
  2473.      }
  2474. -    sendResponse(callId, result, commandNames[kHeapProfiler_disableCmd], protocolErrors, error, resultErrorData);
  2475. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_disableCmd], protocolErrors, error, resultErrorData);
  2476.  }
  2477.  
  2478.  void InspectorBackendDispatcherImpl::HeapProfiler_startTrackingHeapObjects(long callId, JSONObject*)
  2479. @@ -5730,7 +5965,7 @@
  2480.  
  2481.  
  2482.      }
  2483. -    sendResponse(callId, result, commandNames[kHeapProfiler_startTrackingHeapObjectsCmd], protocolErrors, error, resultErrorData);
  2484. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_startTrackingHeapObjectsCmd], protocolErrors, error, resultErrorData);
  2485.  }
  2486.  
  2487.  void InspectorBackendDispatcherImpl::HeapProfiler_stopTrackingHeapObjects(long callId, JSONObject*)
  2488. @@ -5749,7 +5984,7 @@
  2489.  
  2490.  
  2491.      }
  2492. -    sendResponse(callId, result, commandNames[kHeapProfiler_stopTrackingHeapObjectsCmd], protocolErrors, error, resultErrorData);
  2493. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_stopTrackingHeapObjectsCmd], protocolErrors, error, resultErrorData);
  2494.  }
  2495.  
  2496.  void InspectorBackendDispatcherImpl::HeapProfiler_getHeapSnapshot(long callId, JSONObject* requestMessageObject)
  2497. @@ -5773,7 +6008,7 @@
  2498.  
  2499.  
  2500.      }
  2501. -    sendResponse(callId, result, commandNames[kHeapProfiler_getHeapSnapshotCmd], protocolErrors, error, resultErrorData);
  2502. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_getHeapSnapshotCmd], protocolErrors, error, resultErrorData);
  2503.  }
  2504.  
  2505.  void InspectorBackendDispatcherImpl::HeapProfiler_removeProfile(long callId, JSONObject* requestMessageObject)
  2506. @@ -5797,7 +6032,7 @@
  2507.  
  2508.  
  2509.      }
  2510. -    sendResponse(callId, result, commandNames[kHeapProfiler_removeProfileCmd], protocolErrors, error, resultErrorData);
  2511. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_removeProfileCmd], protocolErrors, error, resultErrorData);
  2512.  }
  2513.  
  2514.  void InspectorBackendDispatcherImpl::HeapProfiler_clearProfiles(long callId, JSONObject*)
  2515. @@ -5816,7 +6051,7 @@
  2516.  
  2517.  
  2518.      }
  2519. -    sendResponse(callId, result, commandNames[kHeapProfiler_clearProfilesCmd], protocolErrors, error, resultErrorData);
  2520. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_clearProfilesCmd], protocolErrors, error, resultErrorData);
  2521.  }
  2522.  
  2523.  void InspectorBackendDispatcherImpl::HeapProfiler_takeHeapSnapshot(long callId, JSONObject* requestMessageObject)
  2524. @@ -5841,7 +6076,7 @@
  2525.  
  2526.  
  2527.      }
  2528. -    sendResponse(callId, result, commandNames[kHeapProfiler_takeHeapSnapshotCmd], protocolErrors, error, resultErrorData);
  2529. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_takeHeapSnapshotCmd], protocolErrors, error, resultErrorData);
  2530.  }
  2531.  
  2532.  void InspectorBackendDispatcherImpl::HeapProfiler_collectGarbage(long callId, JSONObject*)
  2533. @@ -5860,7 +6095,7 @@
  2534.  
  2535.  
  2536.      }
  2537. -    sendResponse(callId, result, commandNames[kHeapProfiler_collectGarbageCmd], protocolErrors, error, resultErrorData);
  2538. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_collectGarbageCmd], protocolErrors, error, resultErrorData);
  2539.  }
  2540.  
  2541.  void InspectorBackendDispatcherImpl::HeapProfiler_getObjectByHeapObjectId(long callId, JSONObject* requestMessageObject)
  2542. @@ -5890,7 +6125,7 @@
  2543.              result->setValue("result", out_result);
  2544.          }
  2545.      }
  2546. -    sendResponse(callId, result, commandNames[kHeapProfiler_getObjectByHeapObjectIdCmd], protocolErrors, error, resultErrorData);
  2547. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_getObjectByHeapObjectIdCmd], protocolErrors, error, resultErrorData);
  2548.  }
  2549.  
  2550.  void InspectorBackendDispatcherImpl::HeapProfiler_getHeapObjectId(long callId, JSONObject* requestMessageObject)
  2551. @@ -5918,7 +6153,7 @@
  2552.              result->setString("heapSnapshotObjectId", out_heapSnapshotObjectId);
  2553.          }
  2554.      }
  2555. -    sendResponse(callId, result, commandNames[kHeapProfiler_getHeapObjectIdCmd], protocolErrors, error, resultErrorData);
  2556. +    sendResponse(callId, result, commandNames + commandNamesIndex[kHeapProfiler_getHeapObjectIdCmd], protocolErrors, error, resultErrorData);
  2557.  }
  2558.  
  2559.  void InspectorBackendDispatcherImpl::Worker_enable(long callId, JSONObject*)
  2560. @@ -5937,7 +6172,7 @@
  2561.  
  2562.  
  2563.      }
  2564. -    sendResponse(callId, result, commandNames[kWorker_enableCmd], protocolErrors, error, resultErrorData);
  2565. +    sendResponse(callId, result, commandNames + commandNamesIndex[kWorker_enableCmd], protocolErrors, error, resultErrorData);
  2566.  }
  2567.  
  2568.  void InspectorBackendDispatcherImpl::Worker_disable(long callId, JSONObject*)
  2569. @@ -5956,7 +6191,7 @@
  2570.  
  2571.  
  2572.      }
  2573. -    sendResponse(callId, result, commandNames[kWorker_disableCmd], protocolErrors, error, resultErrorData);
  2574. +    sendResponse(callId, result, commandNames + commandNamesIndex[kWorker_disableCmd], protocolErrors, error, resultErrorData);
  2575.  }
  2576.  
  2577.  void InspectorBackendDispatcherImpl::Worker_sendMessageToWorker(long callId, JSONObject* requestMessageObject)
  2578. @@ -5981,7 +6216,7 @@
  2579.  
  2580.  
  2581.      }
  2582. -    sendResponse(callId, result, commandNames[kWorker_sendMessageToWorkerCmd], protocolErrors, error, resultErrorData);
  2583. +    sendResponse(callId, result, commandNames + commandNamesIndex[kWorker_sendMessageToWorkerCmd], protocolErrors, error, resultErrorData);
  2584.  }
  2585.  
  2586.  void InspectorBackendDispatcherImpl::Worker_canInspectWorkers(long callId, JSONObject*)
  2587. @@ -6004,7 +6239,7 @@
  2588.              result->setBoolean("result", out_result);
  2589.          }
  2590.      }
  2591. -    sendResponse(callId, result, commandNames[kWorker_canInspectWorkersCmd], protocolErrors, error, resultErrorData);
  2592. +    sendResponse(callId, result, commandNames + commandNamesIndex[kWorker_canInspectWorkersCmd], protocolErrors, error, resultErrorData);
  2593.  }
  2594.  
  2595.  void InspectorBackendDispatcherImpl::Worker_connectToWorker(long callId, JSONObject* requestMessageObject)
  2596. @@ -6028,7 +6263,7 @@
  2597.  
  2598.  
  2599.      }
  2600. -    sendResponse(callId, result, commandNames[kWorker_connectToWorkerCmd], protocolErrors, error, resultErrorData);
  2601. +    sendResponse(callId, result, commandNames + commandNamesIndex[kWorker_connectToWorkerCmd], protocolErrors, error, resultErrorData);
  2602.  }
  2603.  
  2604.  void InspectorBackendDispatcherImpl::Worker_disconnectFromWorker(long callId, JSONObject* requestMessageObject)
  2605. @@ -6052,7 +6287,7 @@
  2606.  
  2607.  
  2608.      }
  2609. -    sendResponse(callId, result, commandNames[kWorker_disconnectFromWorkerCmd], protocolErrors, error, resultErrorData);
  2610. +    sendResponse(callId, result, commandNames + commandNamesIndex[kWorker_disconnectFromWorkerCmd], protocolErrors, error, resultErrorData);
  2611.  }
  2612.  
  2613.  void InspectorBackendDispatcherImpl::Worker_setAutoconnectToWorkers(long callId, JSONObject* requestMessageObject)
  2614. @@ -6076,7 +6311,7 @@
  2615.  
  2616.  
  2617.      }
  2618. -    sendResponse(callId, result, commandNames[kWorker_setAutoconnectToWorkersCmd], protocolErrors, error, resultErrorData);
  2619. +    sendResponse(callId, result, commandNames + commandNamesIndex[kWorker_setAutoconnectToWorkersCmd], protocolErrors, error, resultErrorData);
  2620.  }
  2621.  
  2622.  void InspectorBackendDispatcherImpl::Canvas_enable(long callId, JSONObject*)
  2623. @@ -6095,7 +6330,7 @@
  2624.  
  2625.  
  2626.      }
  2627. -    sendResponse(callId, result, commandNames[kCanvas_enableCmd], protocolErrors, error, resultErrorData);
  2628. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_enableCmd], protocolErrors, error, resultErrorData);
  2629.  }
  2630.  
  2631.  void InspectorBackendDispatcherImpl::Canvas_disable(long callId, JSONObject*)
  2632. @@ -6114,7 +6349,7 @@
  2633.  
  2634.  
  2635.      }
  2636. -    sendResponse(callId, result, commandNames[kCanvas_disableCmd], protocolErrors, error, resultErrorData);
  2637. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_disableCmd], protocolErrors, error, resultErrorData);
  2638.  }
  2639.  
  2640.  void InspectorBackendDispatcherImpl::Canvas_dropTraceLog(long callId, JSONObject* requestMessageObject)
  2641. @@ -6138,7 +6373,7 @@
  2642.  
  2643.  
  2644.      }
  2645. -    sendResponse(callId, result, commandNames[kCanvas_dropTraceLogCmd], protocolErrors, error, resultErrorData);
  2646. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_dropTraceLogCmd], protocolErrors, error, resultErrorData);
  2647.  }
  2648.  
  2649.  void InspectorBackendDispatcherImpl::Canvas_hasUninstrumentedCanvases(long callId, JSONObject*)
  2650. @@ -6161,7 +6396,7 @@
  2651.              result->setBoolean("result", out_result);
  2652.          }
  2653.      }
  2654. -    sendResponse(callId, result, commandNames[kCanvas_hasUninstrumentedCanvasesCmd], protocolErrors, error, resultErrorData);
  2655. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_hasUninstrumentedCanvasesCmd], protocolErrors, error, resultErrorData);
  2656.  }
  2657.  
  2658.  void InspectorBackendDispatcherImpl::Canvas_captureFrame(long callId, JSONObject* requestMessageObject)
  2659. @@ -6190,7 +6425,7 @@
  2660.              result->setString("traceLogId", out_traceLogId);
  2661.          }
  2662.      }
  2663. -    sendResponse(callId, result, commandNames[kCanvas_captureFrameCmd], protocolErrors, error, resultErrorData);
  2664. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_captureFrameCmd], protocolErrors, error, resultErrorData);
  2665.  }
  2666.  
  2667.  void InspectorBackendDispatcherImpl::Canvas_startCapturing(long callId, JSONObject* requestMessageObject)
  2668. @@ -6219,7 +6454,7 @@
  2669.              result->setString("traceLogId", out_traceLogId);
  2670.          }
  2671.      }
  2672. -    sendResponse(callId, result, commandNames[kCanvas_startCapturingCmd], protocolErrors, error, resultErrorData);
  2673. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_startCapturingCmd], protocolErrors, error, resultErrorData);
  2674.  }
  2675.  
  2676.  void InspectorBackendDispatcherImpl::Canvas_stopCapturing(long callId, JSONObject* requestMessageObject)
  2677. @@ -6243,7 +6478,7 @@
  2678.  
  2679.  
  2680.      }
  2681. -    sendResponse(callId, result, commandNames[kCanvas_stopCapturingCmd], protocolErrors, error, resultErrorData);
  2682. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_stopCapturingCmd], protocolErrors, error, resultErrorData);
  2683.  }
  2684.  
  2685.  void InspectorBackendDispatcherImpl::Canvas_getTraceLog(long callId, JSONObject* requestMessageObject)
  2686. @@ -6275,7 +6510,7 @@
  2687.              result->setValue("traceLog", out_traceLog);
  2688.          }
  2689.      }
  2690. -    sendResponse(callId, result, commandNames[kCanvas_getTraceLogCmd], protocolErrors, error, resultErrorData);
  2691. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_getTraceLogCmd], protocolErrors, error, resultErrorData);
  2692.  }
  2693.  
  2694.  void InspectorBackendDispatcherImpl::Canvas_replayTraceLog(long callId, JSONObject* requestMessageObject)
  2695. @@ -6306,7 +6541,7 @@
  2696.              result->setNumber("replayTime", out_replayTime);
  2697.          }
  2698.      }
  2699. -    sendResponse(callId, result, commandNames[kCanvas_replayTraceLogCmd], protocolErrors, error, resultErrorData);
  2700. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_replayTraceLogCmd], protocolErrors, error, resultErrorData);
  2701.  }
  2702.  
  2703.  void InspectorBackendDispatcherImpl::Canvas_getResourceState(long callId, JSONObject* requestMessageObject)
  2704. @@ -6335,7 +6570,7 @@
  2705.              result->setValue("resourceState", out_resourceState);
  2706.          }
  2707.      }
  2708. -    sendResponse(callId, result, commandNames[kCanvas_getResourceStateCmd], protocolErrors, error, resultErrorData);
  2709. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_getResourceStateCmd], protocolErrors, error, resultErrorData);
  2710.  }
  2711.  
  2712.  void InspectorBackendDispatcherImpl::Canvas_evaluateTraceLogCallArgument(long callId, JSONObject* requestMessageObject)
  2713. @@ -6371,7 +6606,7 @@
  2714.                  result->setValue("resourceState", out_resourceState);
  2715.          }
  2716.      }
  2717. -    sendResponse(callId, result, commandNames[kCanvas_evaluateTraceLogCallArgumentCmd], protocolErrors, error, resultErrorData);
  2718. +    sendResponse(callId, result, commandNames + commandNamesIndex[kCanvas_evaluateTraceLogCallArgumentCmd], protocolErrors, error, resultErrorData);
  2719.  }
  2720.  
  2721.  void InspectorBackendDispatcherImpl::Input_dispatchKeyEvent(long callId, JSONObject* requestMessageObject)
  2722. @@ -6417,7 +6652,7 @@
  2723.  
  2724.  
  2725.      }
  2726. -    sendResponse(callId, result, commandNames[kInput_dispatchKeyEventCmd], protocolErrors, error, resultErrorData);
  2727. +    sendResponse(callId, result, commandNames + commandNamesIndex[kInput_dispatchKeyEventCmd], protocolErrors, error, resultErrorData);
  2728.  }
  2729.  
  2730.  void InspectorBackendDispatcherImpl::Input_dispatchMouseEvent(long callId, JSONObject* requestMessageObject)
  2731. @@ -6453,7 +6688,7 @@
  2732.  
  2733.  
  2734.      }
  2735. -    sendResponse(callId, result, commandNames[kInput_dispatchMouseEventCmd], protocolErrors, error, resultErrorData);
  2736. +    sendResponse(callId, result, commandNames + commandNamesIndex[kInput_dispatchMouseEventCmd], protocolErrors, error, resultErrorData);
  2737.  }
  2738.  
  2739.  void InspectorBackendDispatcherImpl::Input_dispatchTouchEvent(long callId, JSONObject* requestMessageObject)
  2740. @@ -6482,7 +6717,7 @@
  2741.  
  2742.  
  2743.      }
  2744. -    sendResponse(callId, result, commandNames[kInput_dispatchTouchEventCmd], protocolErrors, error, resultErrorData);
  2745. +    sendResponse(callId, result, commandNames + commandNamesIndex[kInput_dispatchTouchEventCmd], protocolErrors, error, resultErrorData);
  2746.  }
  2747.  
  2748.  void InspectorBackendDispatcherImpl::Input_dispatchGestureEvent(long callId, JSONObject* requestMessageObject)
  2749. @@ -6516,7 +6751,7 @@
  2750.  
  2751.  
  2752.      }
  2753. -    sendResponse(callId, result, commandNames[kInput_dispatchGestureEventCmd], protocolErrors, error, resultErrorData);
  2754. +    sendResponse(callId, result, commandNames + commandNamesIndex[kInput_dispatchGestureEventCmd], protocolErrors, error, resultErrorData);
  2755.  }
  2756.  
  2757.  void InspectorBackendDispatcherImpl::LayerTree_enable(long callId, JSONObject*)
  2758. @@ -6535,7 +6770,7 @@
  2759.  
  2760.  
  2761.      }
  2762. -    sendResponse(callId, result, commandNames[kLayerTree_enableCmd], protocolErrors, error, resultErrorData);
  2763. +    sendResponse(callId, result, commandNames + commandNamesIndex[kLayerTree_enableCmd], protocolErrors, error, resultErrorData);
  2764.  }
  2765.  
  2766.  void InspectorBackendDispatcherImpl::LayerTree_disable(long callId, JSONObject*)
  2767. @@ -6554,7 +6789,7 @@
  2768.  
  2769.  
  2770.      }
  2771. -    sendResponse(callId, result, commandNames[kLayerTree_disableCmd], protocolErrors, error, resultErrorData);
  2772. +    sendResponse(callId, result, commandNames + commandNamesIndex[kLayerTree_disableCmd], protocolErrors, error, resultErrorData);
  2773.  }
  2774.  
  2775.  void InspectorBackendDispatcherImpl::LayerTree_getLayers(long callId, JSONObject* requestMessageObject)
  2776. @@ -6583,7 +6818,7 @@
  2777.              result->setValue("layers", out_layers);
  2778.          }
  2779.      }
  2780. -    sendResponse(callId, result, commandNames[kLayerTree_getLayersCmd], protocolErrors, error, resultErrorData);
  2781. +    sendResponse(callId, result, commandNames + commandNamesIndex[kLayerTree_getLayersCmd], protocolErrors, error, resultErrorData);
  2782.  }
  2783.  
  2784.  void InspectorBackendDispatcherImpl::LayerTree_compositingReasons(long callId, JSONObject* requestMessageObject)
  2785. @@ -6611,7 +6846,7 @@
  2786.              result->setValue("compositingReasons", out_compositingReasons);
  2787.          }
  2788.      }
  2789. -    sendResponse(callId, result, commandNames[kLayerTree_compositingReasonsCmd], protocolErrors, error, resultErrorData);
  2790. +    sendResponse(callId, result, commandNames + commandNamesIndex[kLayerTree_compositingReasonsCmd], protocolErrors, error, resultErrorData);
  2791.  }
  2792.  
  2793.  void InspectorBackendDispatcherImpl::Tracing_start(long callId, JSONObject* requestMessageObject)
  2794. @@ -6635,7 +6870,7 @@
  2795.  
  2796.  
  2797.      }
  2798. -    sendResponse(callId, result, commandNames[kTracing_startCmd], protocolErrors, error, resultErrorData);
  2799. +    sendResponse(callId, result, commandNames + commandNamesIndex[kTracing_startCmd], protocolErrors, error, resultErrorData);
  2800.  }
  2801.  
  2802.  void InspectorBackendDispatcherImpl::Tracing_end(long callId, JSONObject*)
  2803. @@ -6654,7 +6889,7 @@
  2804.  
  2805.  
  2806.      }
  2807. -    sendResponse(callId, result, commandNames[kTracing_endCmd], protocolErrors, error, resultErrorData);
  2808. +    sendResponse(callId, result, commandNames + commandNamesIndex[kTracing_endCmd], protocolErrors, error, resultErrorData);
  2809.  }
  2810.  
  2811.  
  2812. @@ -6908,9 +7143,9 @@
  2813.              &InspectorBackendDispatcherImpl::Tracing_start,
  2814.              &InspectorBackendDispatcherImpl::Tracing_end,
  2815.          };
  2816. -        size_t length = WTF_ARRAY_LENGTH(commandNames);
  2817. +        size_t length = kMethodNamesEnumSize;
  2818.          for (size_t i = 0; i < length; ++i)
  2819. -            dispatchMap.add(commandNames[i], handlers[i]);
  2820. +            dispatchMap.add(commandNames + commandNamesIndex[i], handlers[i]);
  2821.      }
  2822.  
  2823.      RefPtr<JSONValue> parsedMessage = parseJSON(message);
  2824. @@ -7130,7 +7365,7 @@
  2825.      m_alreadySent = true;
  2826.  }
  2827.  
  2828. -COMPILE_ASSERT(static_cast<int>(InspectorBackendDispatcher::kMethodNamesEnumSize) == WTF_ARRAY_LENGTH(InspectorBackendDispatcher::commandNames), command_name_array_problem);
  2829. +COMPILE_ASSERT(static_cast<int>(InspectorBackendDispatcher::kMethodNamesEnumSize) == WTF_ARRAY_LENGTH(InspectorBackendDispatcher::commandNamesIndex), command_name_array_problem);
  2830.  
  2831.  } // namespace WebCore
Add Comment
Please, Sign In to add comment