2013-06-04 19:41:37 +02:00
|
|
|
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
2012-10-08 19:47:37 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#include "libcef/browser/net/scheme_handler.h"
|
2013-06-04 19:41:37 +02:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#include "libcef/browser/net/chrome_scheme_handler.h"
|
|
|
|
#include "libcef/browser/net/devtools_scheme_handler.h"
|
|
|
|
#include "libcef/common/net/scheme_registration.h"
|
2012-10-08 19:47:37 +02:00
|
|
|
|
2013-03-12 21:23:24 +01:00
|
|
|
#include "content/public/common/url_constants.h"
|
|
|
|
|
2012-10-08 19:47:37 +02:00
|
|
|
namespace scheme {
|
|
|
|
|
2019-04-30 22:45:13 +02:00
|
|
|
void RegisterInternalHandlers(CefResourceContext* resource_context) {
|
|
|
|
scheme::RegisterChromeDevToolsHandler(resource_context);
|
|
|
|
}
|
|
|
|
|
2012-10-08 19:47:37 +02:00
|
|
|
void DidFinishLoad(CefRefPtr<CefFrame> frame, const GURL& validated_url) {
|
2014-02-19 17:27:54 +01:00
|
|
|
if (validated_url.scheme() == content::kChromeUIScheme)
|
2012-10-08 19:47:37 +02:00
|
|
|
scheme::DidFinishChromeLoad(frame, validated_url);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace scheme
|