2012-04-24 20:01:48 +02:00
|
|
|
// Copyright (c) 2012 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.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_COMMON_SCHEME_REGISTRAR_IMPL_H_
|
|
|
|
#define CEF_LIBCEF_COMMON_SCHEME_REGISTRAR_IMPL_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "include/cef_scheme.h"
|
|
|
|
|
2017-01-23 18:36:54 +01:00
|
|
|
#include "content/public/common/content_client.h"
|
2012-04-24 20:01:48 +02:00
|
|
|
|
|
|
|
class CefSchemeRegistrarImpl : public CefSchemeRegistrar {
|
|
|
|
public:
|
|
|
|
CefSchemeRegistrarImpl();
|
|
|
|
|
2021-12-06 21:40:25 +01:00
|
|
|
CefSchemeRegistrarImpl(const CefSchemeRegistrarImpl&) = delete;
|
|
|
|
CefSchemeRegistrarImpl& operator=(const CefSchemeRegistrarImpl&) = delete;
|
|
|
|
|
2012-04-24 20:01:48 +02:00
|
|
|
// CefSchemeRegistrar methods.
|
2019-02-26 17:45:12 +01:00
|
|
|
bool AddCustomScheme(const CefString& scheme_name, int options) override;
|
2012-04-24 20:01:48 +02:00
|
|
|
|
2017-01-23 18:36:54 +01:00
|
|
|
void GetSchemes(content::ContentClient::Schemes* schemes);
|
2012-04-24 20:01:48 +02:00
|
|
|
|
|
|
|
private:
|
2017-01-23 18:36:54 +01:00
|
|
|
content::ContentClient::Schemes schemes_;
|
|
|
|
std::set<std::string> registered_schemes_;
|
2012-04-24 20:01:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_COMMON_SCHEME_REGISTRAR_IMPL_H_
|