mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	 3919a1dcc0
			
		
	
	
		3919a1dcc0
		
	
	
	
	
		
			
			Previously, Browser loaded icons from the disk every time an icon was set. In addition to making more calls to the disk and decoding more images, this makes error propagation impossible. This change moves all icon loading to the start of the program.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			331 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			331 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/String.h>
 | |
| #include <Applications/Browser/IconBag.h>
 | |
| 
 | |
| namespace Browser {
 | |
| 
 | |
| extern String g_home_url;
 | |
| extern String g_search_engine;
 | |
| extern Vector<String> g_content_filters;
 | |
| extern IconBag g_icon_bag;
 | |
| 
 | |
| }
 |