| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Custom binding for the logPrivate API. | |
| 6 var binding = require('binding').Binding.create('logPrivate'); | |
| 7 | |
| 8 var getFileBindingsForApi = | |
| 9 require('fileEntryBindingUtil').getFileBindingsForApi; | |
| 10 var fileBindings = getFileBindingsForApi('logPrivate'); | |
| 11 var bindFileEntryCallback = fileBindings.bindFileEntryCallback; | |
| 12 | |
| 13 binding.registerCustomHook(function(bindingsAPI) { | |
| 14 var apiFunctions = bindingsAPI.apiFunctions; | |
| 15 | |
| 16 $Array.forEach(['dumpLogs'], | |
| 17 function(functionName) { | |
| 18 bindFileEntryCallback(functionName, apiFunctions); | |
| 19 }); | |
| 20 | |
| 21 }); | |
| 22 | |
| 23 exports.$set('bindFileEntryCallback', bindFileEntryCallback); | |
| 24 exports.$set('binding', binding.generate()); | |
| OLD | NEW |