(pages: &mut BTreeMap<(String, u64), WebKitPage>, listing_args: &Dictionary)
| 1097 | } |
| 1098 | |
| 1099 | fn apply_page_listing(pages: &mut BTreeMap<(String, u64), WebKitPage>, listing_args: &Dictionary) { |
| 1100 | if let Some(app_id) = string_value(listing_args, "WIRApplicationIdentifierKey") { |
| 1101 | pages.retain(|(page_app_id, _), _| page_app_id != &app_id); |
| 1102 | } |
| 1103 | for page in parse_page_listing(listing_args) { |
| 1104 | pages.insert((page.app_id.clone(), page.page_id), page); |
| 1105 | } |
| 1106 | } |
| 1107 | |
| 1108 | fn rpc_args(connection_id: &str) -> Dictionary { |
| 1109 | let mut args = Dictionary::new(); |