[email protected] | 50dc50e | 2012-01-12 16:16:29 | [diff] [blame] | 1 | // Copyright (c) 2012 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 | |
[email protected] | 4f1633f | 2013-03-09 14:26:24 | [diff] [blame] | 5 | // Custom binding for the webRequest API. |
| 6 | |
rdevlin.cronin | 32c373c8 | 2017-04-06 18:41:18 | [diff] [blame] | 7 | if (!apiBridge) { |
karandeepb | 66008232 | 2017-06-06 20:13:44 | [diff] [blame] | 8 | var binding = require('binding').Binding.create('webRequest'); |
rdevlin.cronin | 32c373c8 | 2017-04-06 18:41:18 | [diff] [blame] | 9 | var webRequestEvent = require('webRequestEvent').WebRequestEvent; |
| 10 | binding.registerCustomEvent(webRequestEvent); |
| 11 | exports.$set('binding', binding.generate()); |
| 12 | } |