GeckoWindowRequest.kt 791 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package mozilla.components.browser.engine.gecko.window

import mozilla.components.browser.engine.gecko.GeckoEngineSession
import mozilla.components.concept.engine.EngineSession
import mozilla.components.concept.engine.window.WindowRequest

/**
 * Gecko-based implementation of [WindowRequest].
 */
class GeckoWindowRequest(
15
16
17
    override val url: String = "",
    private val engineSession: GeckoEngineSession,
    override val type: WindowRequest.Type = WindowRequest.Type.OPEN
18
19
20
21
22
23
) : WindowRequest {

    override fun prepare(): EngineSession {
        return this.engineSession
    }
}