mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-10 09:13:33 +01:00
2f1e782f62
Frame identifiers have changed from int64_t to string type. This is due to https://crbug.com/1502660 which removes access to frame routing IDs in the renderer process. New cross-process frame identifiers are 160-bit values (32-bit child process ID + 128-bit local frame token) and most easily represented as strings. All other frame-related expectations and behaviors remain the same.
34 lines
1.3 KiB
C++
34 lines
1.3 KiB
C++
// Copyright 2015 The Chromium Embedded Framework Authors.
|
|
// Portions copyright 2014 The Chromium 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_ALLOY_ALLOY_CONTENT_CLIENT_H_
|
|
#define CEF_LIBCEF_COMMON_ALLOY_ALLOY_CONTENT_CLIENT_H_
|
|
#pragma once
|
|
|
|
#include "content/public/common/content_client.h"
|
|
|
|
class AlloyContentClient : public content::ContentClient {
|
|
public:
|
|
AlloyContentClient();
|
|
~AlloyContentClient() override;
|
|
|
|
// content::ContentClient overrides.
|
|
void AddPlugins(std::vector<content::ContentPluginInfo>* plugins) override;
|
|
void AddContentDecryptionModules(
|
|
std::vector<content::CdmInfo>* cdms,
|
|
std::vector<media::CdmHostFilePath>* cdm_host_file_paths) override;
|
|
void AddAdditionalSchemes(Schemes* schemes) override;
|
|
std::u16string GetLocalizedString(int message_id) override;
|
|
std::u16string GetLocalizedString(int message_id,
|
|
const std::u16string& replacement) override;
|
|
std::string_view GetDataResource(
|
|
int resource_id,
|
|
ui::ResourceScaleFactor scale_factor) override;
|
|
base::RefCountedMemory* GetDataResourceBytes(int resource_id) override;
|
|
gfx::Image& GetNativeImageNamed(int resource_id) override;
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_COMMON_ALLOY_ALLOY_CONTENT_CLIENT_H_
|