Automated g4 rollback of changelist
*** Reason for rollback ***
Breakages
*** Original change description ***
Define a WebrequestEventInterface interface to be used by chrome.webRequest and new externs to be defined for the <webview> tag elsewhere.
***
@@ -6697,63 +6697,53 @@ WebRequestOnErrorOccurredEvent.prototype.hasListeners = function(listener) {};
/**
- * WebRequestEventInterface specifies the interface shared between
- * chrome.webrequest (defined below) and HTMLWebviewElement.request defined
- * in the cros_apps.js externs.
- * @interface
+ * @const
* @see https://developer.chrome.com/extensions/webRequest
*/
-function WebRequestEventInterface() {};
+chrome.webRequest = {};
+
+
+/**
+ * @param {function(): void=} opt_callback Callback function.
+ * @return {undefined}
+ */
+chrome.webRequest.handlerBehaviorChanged = function(opt_callback) {};
/** @type {!WebRequestOnAuthRequiredEvent} */
-WebRequestEventInterface.prototype.onAuthRequired;
+chrome.webRequest.onAuthRequired;
/** @type {!WebRequestEvent} */
-WebRequestEventInterface.prototype.onBeforeRedirect;
+chrome.webRequest.onBeforeRedirect;
/** @type {!WebRequestOptionallySynchronousEvent} */
-WebRequestEventInterface.prototype.onBeforeRequest;
+chrome.webRequest.onBeforeRequest;
/** @type {!WebRequestOptionallySynchronousEvent} */
-WebRequestEventInterface.prototype.onBeforeSendHeaders;
+chrome.webRequest.onBeforeSendHeaders;
/** @type {!WebRequestEvent} */
-WebRequestEventInterface.prototype.onCompleted;
+chrome.webRequest.onCompleted;
/** @type {!WebRequestOnErrorOccurredEvent} */
-WebRequestEventInterface.prototype.onErrorOccurred;
+chrome.webRequest.onErrorOccurred;
/** @type {!WebRequestOptionallySynchronousEvent} */
-WebRequestEventInterface.prototype.onHeadersReceived;
+chrome.webRequest.onHeadersReceived;
/** @type {!WebRequestEvent} */
-WebRequestEventInterface.prototype.onResponseStarted;
+chrome.webRequest.onResponseStarted;
/** @type {!WebRequestEvent} */
-WebRequestEventInterface.prototype.onSendHeaders;
-
-
-/**
- * @type {!WebRequestEventInterface}
- * @see https://developer.chrome.com/extensions/webRequest
- */
-chrome.webRequest;
-
-
-/**
- * @param {function(): void=} opt_callback Callback function.
- * @return {undefined}
- */
-chrome.webRequest.handlerBehaviorChanged = function(opt_callback) {};
+chrome.webRequest.onSendHeaders;
// Classes
