| Index: chrome/renderer/resources/extensions/log_private_custom_bindings.js
|
| diff --git a/chrome/renderer/resources/extensions/log_private_custom_bindings.js b/chrome/renderer/resources/extensions/log_private_custom_bindings.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ae209d07ef7bfe6460cdf9cdfa92f3fe8c78027a
|
| --- /dev/null
|
| +++ b/chrome/renderer/resources/extensions/log_private_custom_bindings.js
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Custom binding for the logPrivate API.
|
| +var binding = require('binding').Binding.create('logPrivate');
|
| +var sendRequest = require('sendRequest');
|
| +
|
| +var getFileBindingsForApi =
|
| + require('fileEntryBindingUtil').getFileBindingsForApi;
|
| +var fileBindings = getFileBindingsForApi('logPrivate');
|
| +var bindFileEntryCallback = fileBindings.bindFileEntryCallback;
|
| +
|
| +binding.registerCustomHook(function(bindingsAPI) {
|
| + var apiFunctions = bindingsAPI.apiFunctions;
|
| + var fileSystem = bindingsAPI.compiledApi;
|
| +
|
| + $Array.forEach(['dumpLogs'],
|
| + function(functionName) {
|
| + bindFileEntryCallback(functionName, apiFunctions);
|
| + });
|
| +
|
| +});
|
| +
|
| +exports.bindFileEntryCallback = bindFileEntryCallback;
|
| +exports.binding = binding.generate();
|
|
|