2019-04-24 04:50:25 +02:00
|
|
|
// Copyright (c) 2019 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_BROWSER_NET_SERVICE_RESOURCE_HANDLER_WRAPPER_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_NET_SERVICE_RESOURCE_HANDLER_WRAPPER_H_
|
|
|
|
|
2024-04-30 17:45:07 +02:00
|
|
|
#include "cef/include/cef_request.h"
|
|
|
|
#include "cef/include/cef_resource_handler.h"
|
2019-04-24 04:50:25 +02:00
|
|
|
|
|
|
|
namespace net_service {
|
|
|
|
|
|
|
|
class ResourceResponse;
|
|
|
|
|
|
|
|
// Create a ResourceResponse that delegates to |handler|.
|
|
|
|
// The resulting object should be passed to
|
|
|
|
// InterceptedRequestHandler::ShouldInterceptRequestResultCallback.
|
|
|
|
std::unique_ptr<ResourceResponse> CreateResourceResponse(
|
2021-04-21 00:52:34 +02:00
|
|
|
int32_t request_id,
|
2019-04-24 04:50:25 +02:00
|
|
|
CefRefPtr<CefResourceHandler> handler);
|
|
|
|
|
|
|
|
} // namespace net_service
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_NET_SERVICE_RESOURCE_HANDLER_WRAPPER_H_
|