1/* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5"use strict"; 6 7var EXPORTED_SYMBOLS = ["ContentProcessDomain"]; 8 9const { Domain } = ChromeUtils.import( 10 "chrome://remote/content/cdp/domains/Domain.jsm" 11); 12 13class ContentProcessDomain extends Domain { 14 destructor() { 15 super.destructor(); 16 } 17 18 // helpers 19 20 get content() { 21 return this.session.content; 22 } 23 24 get docShell() { 25 return this.session.docShell; 26 } 27 28 get chromeEventHandler() { 29 return this.docShell.chromeEventHandler; 30 } 31} 32