mirror of
https://github.com/electron/electron.git
synced 2026-01-08 07:04:01 -05:00
* chore: bump chromium in DEPS to 144.0.7514.0 * chore: update patches * 7119882: Reorganize //ui/gfx GN build target https://chromium-review.googlesource.com/c/chromium/src/+/7119882 * Replace includes with forward declares in rect_conversions.h https://chromium-review.googlesource.com/c/chromium/src/+/7127098 * Add ssl info to TrustedHeaderClient https://chromium-review.googlesource.com/c/chromium/src/+/7106780 * Replace ContentPluginInfo with WebPluginInfo https://chromium-review.googlesource.com/c/chromium/src/+/7127893 * Reland "[temporal] Unflag Temporal" https://chromium-review.googlesource.com/c/v8/v8/+/7123876 --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
// Copyright (c) 2014 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_APP_ELECTRON_CONTENT_CLIENT_H_
|
|
#define ELECTRON_SHELL_APP_ELECTRON_CONTENT_CLIENT_H_
|
|
|
|
#include <string_view>
|
|
#include <vector>
|
|
|
|
#include "content/public/common/content_client.h"
|
|
|
|
namespace electron {
|
|
|
|
class ElectronContentClient : public content::ContentClient {
|
|
public:
|
|
ElectronContentClient();
|
|
~ElectronContentClient() override;
|
|
|
|
// disable copy
|
|
ElectronContentClient(const ElectronContentClient&) = delete;
|
|
ElectronContentClient& operator=(const ElectronContentClient&) = delete;
|
|
|
|
protected:
|
|
// content::ContentClient:
|
|
std::u16string GetLocalizedString(int message_id) override;
|
|
std::string_view GetDataResource(int resource_id,
|
|
ui::ResourceScaleFactor) override;
|
|
gfx::Image& GetNativeImageNamed(int resource_id) override;
|
|
base::RefCountedMemory* GetDataResourceBytes(int resource_id) override;
|
|
void AddAdditionalSchemes(Schemes* schemes) override;
|
|
void AddPlugins(std::vector<content::WebPluginInfo>* plugins) override;
|
|
void AddContentDecryptionModules(
|
|
std::vector<content::CdmInfo>* cdms,
|
|
std::vector<media::CdmHostFilePath>* cdm_host_file_paths) override;
|
|
};
|
|
|
|
} // namespace electron
|
|
|
|
#endif // ELECTRON_SHELL_APP_ELECTRON_CONTENT_CLIENT_H_
|