• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2022 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 // ---------------------------------------------------------------------------
6 //
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
11 //
12 // $hash=7766e19198313fadc94a2f99f5869a33b0c3069c$
13 //
14 
15 #include "libcef_dll/ctocpp/media_route_create_callback_ctocpp.h"
16 #include "libcef_dll/cpptoc/media_route_cpptoc.h"
17 #include "libcef_dll/shutdown_checker.h"
18 
19 // VIRTUAL METHODS - Body may be edited by hand.
20 
21 NO_SANITIZE("cfi-icall")
OnMediaRouteCreateFinished(RouteCreateResult result,const CefString & error,CefRefPtr<CefMediaRoute> route)22 void CefMediaRouteCreateCallbackCToCpp::OnMediaRouteCreateFinished(
23     RouteCreateResult result,
24     const CefString& error,
25     CefRefPtr<CefMediaRoute> route) {
26   shutdown_checker::AssertNotShutdown();
27 
28   cef_media_route_create_callback_t* _struct = GetStruct();
29   if (CEF_MEMBER_MISSING(_struct, on_media_route_create_finished))
30     return;
31 
32   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
33 
34   // Unverified params: error, route
35 
36   // Execute
37   _struct->on_media_route_create_finished(_struct, result, error.GetStruct(),
38                                           CefMediaRouteCppToC::Wrap(route));
39 }
40 
41 // CONSTRUCTOR - Do not edit by hand.
42 
CefMediaRouteCreateCallbackCToCpp()43 CefMediaRouteCreateCallbackCToCpp::CefMediaRouteCreateCallbackCToCpp() {}
44 
45 // DESTRUCTOR - Do not edit by hand.
46 
~CefMediaRouteCreateCallbackCToCpp()47 CefMediaRouteCreateCallbackCToCpp::~CefMediaRouteCreateCallbackCToCpp() {
48   shutdown_checker::AssertNotShutdown();
49 }
50 
51 template <>
52 cef_media_route_create_callback_t*
53 CefCToCppRefCounted<CefMediaRouteCreateCallbackCToCpp,
54                     CefMediaRouteCreateCallback,
55                     cef_media_route_create_callback_t>::
UnwrapDerived(CefWrapperType type,CefMediaRouteCreateCallback * c)56     UnwrapDerived(CefWrapperType type, CefMediaRouteCreateCallback* c) {
57   NOTREACHED() << "Unexpected class type: " << type;
58   return nullptr;
59 }
60 
61 template <>
62 CefWrapperType
63     CefCToCppRefCounted<CefMediaRouteCreateCallbackCToCpp,
64                         CefMediaRouteCreateCallback,
65                         cef_media_route_create_callback_t>::kWrapperType =
66         WT_MEDIA_ROUTE_CREATE_CALLBACK;
67