2015-07-16 23:40:01 +02:00
|
|
|
// Copyright 2015 The Chromium Embedded Framework Authors.
|
|
|
|
// Portions copyright 2014 The Chromium Authors. All rights reserved.
|
2012-04-03 03:34:16 +02:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
#ifndef CEF_LIBCEF_COMMON_ALLOY_ALLOY_CONTENT_CLIENT_H_
|
|
|
|
#define CEF_LIBCEF_COMMON_ALLOY_ALLOY_CONTENT_CLIENT_H_
|
2012-04-03 03:34:16 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "content/public/common/content_client.h"
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
class AlloyContentClient : public content::ContentClient {
|
2012-04-03 03:34:16 +02:00
|
|
|
public:
|
2020-06-28 23:05:36 +02:00
|
|
|
AlloyContentClient();
|
2020-06-28 20:29:44 +02:00
|
|
|
~AlloyContentClient() override;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2020-06-28 23:05:36 +02:00
|
|
|
// content::ContentClient overrides.
|
2022-09-26 21:30:45 +02:00
|
|
|
void AddPlugins(std::vector<content::ContentPluginInfo>* plugins) override;
|
2018-04-19 17:44:42 +02:00
|
|
|
void AddContentDecryptionModules(
|
|
|
|
std::vector<content::CdmInfo>* cdms,
|
|
|
|
std::vector<media::CdmHostFilePath>* cdm_host_file_paths) override;
|
2017-01-23 18:36:54 +01:00
|
|
|
void AddAdditionalSchemes(Schemes* schemes) override;
|
2021-04-21 00:52:34 +02:00
|
|
|
std::u16string GetLocalizedString(int message_id) override;
|
|
|
|
std::u16string GetLocalizedString(int message_id,
|
|
|
|
const std::u16string& replacement) override;
|
2021-08-20 01:40:49 +02:00
|
|
|
base::StringPiece GetDataResource(
|
|
|
|
int resource_id,
|
|
|
|
ui::ResourceScaleFactor scale_factor) override;
|
2019-09-04 17:13:32 +02:00
|
|
|
base::RefCountedMemory* GetDataResourceBytes(int resource_id) override;
|
|
|
|
gfx::Image& GetNativeImageNamed(int resource_id) override;
|
2012-04-03 03:34:16 +02:00
|
|
|
};
|
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
#endif // CEF_LIBCEF_COMMON_ALLOY_ALLOY_CONTENT_CLIENT_H_
|