File tree 2 files changed +19
-0
lines changed
ios/brave-ios/Sources/Brave
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class WeakTabManagerDelegate {
47
47
// TabManager must extend NSObjectProtocol in order to implement WKNavigationDelegate
48
48
class TabManager : NSObject {
49
49
fileprivate var delegates = [ WeakTabManagerDelegate] ( )
50
+ fileprivate let tabEventHandlers : [ TabEventHandler ]
50
51
weak var stateDelegate : TabManagerStateDelegate ?
51
52
52
53
/// Internal url to access the new tab page.
@@ -130,6 +131,7 @@ class TabManager: NSObject {
130
131
self . tabGeneratorAPI = tabGeneratorAPI
131
132
self . historyAPI = historyAPI
132
133
self . privateBrowsingManager = privateBrowsingManager
134
+ self . tabEventHandlers = TabEventHandlers . create ( with: prefs)
133
135
super. init ( )
134
136
135
137
self . navDelegate. tabManager = self
Original file line number Diff line number Diff line change
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 https://mozilla.org/MPL/2.0/.
4
+
5
+ import Foundation
6
+ import Shared
7
+
8
+ class TabEventHandlers {
9
+ static func create( with prefs: Prefs ) -> [ TabEventHandler ] {
10
+ return [
11
+ FaviconHandler ( ) ,
12
+ UserActivityHandler ( ) ,
13
+ MetadataParserHelper ( ) ,
14
+ MediaImageLoader ( prefs) ,
15
+ ]
16
+ }
17
+ }
You can’t perform that action at this time.
0 commit comments