• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_BROWSER_NET_SERVICE_RESOURCE_HANDLER_WRAPPER_H_
6 #define CEF_LIBCEF_BROWSER_NET_SERVICE_RESOURCE_HANDLER_WRAPPER_H_
7 
8 #include "include/cef_request.h"
9 #include "include/cef_resource_handler.h"
10 
11 namespace net_service {
12 
13 class ResourceResponse;
14 
15 // Create a ResourceResponse that delegates to |handler|.
16 // The resulting object should be passed to
17 // InterceptedRequestHandler::ShouldInterceptRequestResultCallback.
18 std::unique_ptr<ResourceResponse> CreateResourceResponse(
19     int32_t request_id,
20     CefRefPtr<CefResourceHandler> handler);
21 
22 }  // namespace net_service
23 
24 #endif  // CEF_LIBCEF_BROWSER_NET_SERVICE_RESOURCE_HANDLER_WRAPPER_H_
25