2013-06-04 17:41:37 +00:00
|
|
|
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
2012-10-08 17:47:37 +00:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2015-11-25 21:53:12 -05:00
|
|
|
#include "libcef/browser/net/scheme_handler.h"
|
2013-06-04 17:41:37 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2015-11-25 21:53:12 -05:00
|
|
|
#include "libcef/browser/net/chrome_scheme_handler.h"
|
|
|
|
#include "libcef/browser/net/devtools_scheme_handler.h"
|
|
|
|
#include "libcef/common/net/scheme_registration.h"
|
2020-06-30 20:57:00 -04:00
|
|
|
#include "libcef/features/runtime.h"
|
2012-10-08 17:47:37 +00:00
|
|
|
|
2013-03-12 20:23:24 +00:00
|
|
|
#include "content/public/common/url_constants.h"
|
|
|
|
|
2012-10-08 17:47:37 +00:00
|
|
|
namespace scheme {
|
|
|
|
|
2020-06-30 20:57:00 -04:00
|
|
|
void RegisterInternalHandlers(CefIOThreadState* iothread_state) {
|
2023-01-02 17:59:03 -05:00
|
|
|
if (!cef::IsAlloyRuntimeEnabled()) {
|
2020-06-30 20:57:00 -04:00
|
|
|
return;
|
2023-01-02 17:59:03 -05:00
|
|
|
}
|
2020-06-30 20:57:00 -04:00
|
|
|
|
|
|
|
scheme::RegisterChromeDevToolsHandler(iothread_state);
|
2019-04-30 16:45:13 -04:00
|
|
|
}
|
|
|
|
|
2012-10-08 17:47:37 +00:00
|
|
|
} // namespace scheme
|