mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			834 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			834 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
 | |
| // reserved. Use of this source code is governed by a BSD-style license that
 | |
| // can be found in the LICENSE file.
 | |
| 
 | |
| #include "libcef/browser/net/scheme_handler.h"
 | |
| 
 | |
| #include <string>
 | |
| 
 | |
| #include "libcef/browser/net/chrome_scheme_handler.h"
 | |
| #include "libcef/browser/net/devtools_scheme_handler.h"
 | |
| #include "libcef/common/net/scheme_registration.h"
 | |
| 
 | |
| #include "content/public/common/url_constants.h"
 | |
| 
 | |
| namespace scheme {
 | |
| 
 | |
| void RegisterInternalHandlers(CefResourceContext* resource_context) {
 | |
|   scheme::RegisterChromeDevToolsHandler(resource_context);
 | |
| }
 | |
| 
 | |
| void DidFinishLoad(CefRefPtr<CefFrame> frame, const GURL& validated_url) {
 | |
|   if (validated_url.scheme() == content::kChromeUIScheme)
 | |
|     scheme::DidFinishChromeLoad(frame, validated_url);
 | |
| }
 | |
| 
 | |
| }  // namespace scheme
 |