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

Unified Diff: chrome/renderer/resources/extensions/web_request_custom_bindings.js

Issue 594653003: Move web_request_internal_custom_bindings.js and web_request_custom_bindings.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove HandleWebRequestAPIUsage from dispatcher_delegate. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/web_request_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/web_request_custom_bindings.js b/chrome/renderer/resources/extensions/web_request_custom_bindings.js
deleted file mode 100644
index 045fe963759ed8c22ae3d58a606cf4afb2c544a9..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/extensions/web_request_custom_bindings.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) 2012 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 webRequest API.
-
-var binding = require('binding').Binding.create('webRequest');
-var sendRequest = require('sendRequest').sendRequest;
-var WebRequestEvent = require('webRequestInternal').WebRequestEvent;
-
-binding.registerCustomHook(function(api) {
- var apiFunctions = api.apiFunctions;
-
- apiFunctions.setHandleRequest('handlerBehaviorChanged', function() {
- var args = $Array.slice(arguments);
- sendRequest(this.name, args, this.definition.parameters,
- {forIOThread: true});
- });
-});
-
-binding.registerCustomEvent(WebRequestEvent);
-
-exports.binding = binding.generate();

Powered by Google App Engine
This is Rietveld 408576698