mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-10 17:23:26 +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 2018 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_EXTENSIONS_EXTENSIONS_API_PROVIDER_H_
|
|
#define CEF_LIBCEF_COMMON_EXTENSIONS_EXTENSIONS_API_PROVIDER_H_
|
|
|
|
#include "extensions/common/extensions_api_provider.h"
|
|
|
|
namespace extensions {
|
|
|
|
class CefExtensionsAPIProvider : public ExtensionsAPIProvider {
|
|
public:
|
|
CefExtensionsAPIProvider();
|
|
|
|
CefExtensionsAPIProvider(const CefExtensionsAPIProvider&) = delete;
|
|
CefExtensionsAPIProvider& operator=(const CefExtensionsAPIProvider&) = delete;
|
|
|
|
// ExtensionsAPIProvider:
|
|
void AddAPIFeatures(FeatureProvider* provider) override;
|
|
void AddManifestFeatures(FeatureProvider* provider) override;
|
|
void AddPermissionFeatures(FeatureProvider* provider) override;
|
|
void AddBehaviorFeatures(FeatureProvider* provider) override;
|
|
void AddAPIJSONSources(JSONFeatureProviderSource* json_source) override;
|
|
bool IsAPISchemaGenerated(const std::string& name) override;
|
|
std::string_view GetAPISchema(const std::string& name) override;
|
|
void RegisterPermissions(PermissionsInfo* permissions_info) override;
|
|
void RegisterManifestHandlers() override;
|
|
};
|
|
|
|
} // namespace extensions
|
|
|
|
#endif // CEF_LIBCEF_COMMON_EXTENSIONS_EXTENSIONS_API_PROVIDER_H_
|