• 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=7ab779c6c98a1bd2385f14d514304a28ef58717f$
13 //
14 
15 #include "libcef_dll/ctocpp/process_message_ctocpp.h"
16 #include "libcef_dll/ctocpp/list_value_ctocpp.h"
17 #include "libcef_dll/shutdown_checker.h"
18 
19 // STATIC METHODS - Body may be edited by hand.
20 
21 NO_SANITIZE("cfi-icall")
Create(const CefString & name)22 CefRefPtr<CefProcessMessage> CefProcessMessage::Create(const CefString& name) {
23   shutdown_checker::AssertNotShutdown();
24 
25   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
26 
27   // Verify param: name; type: string_byref_const
28   DCHECK(!name.empty());
29   if (name.empty())
30     return nullptr;
31 
32   // Execute
33   cef_process_message_t* _retval = cef_process_message_create(name.GetStruct());
34 
35   // Return type: refptr_same
36   return CefProcessMessageCToCpp::Wrap(_retval);
37 }
38 
39 // VIRTUAL METHODS - Body may be edited by hand.
40 
IsValid()41 NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsValid() {
42   shutdown_checker::AssertNotShutdown();
43 
44   cef_process_message_t* _struct = GetStruct();
45   if (CEF_MEMBER_MISSING(_struct, is_valid))
46     return false;
47 
48   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
49 
50   // Execute
51   int _retval = _struct->is_valid(_struct);
52 
53   // Return type: bool
54   return _retval ? true : false;
55 }
56 
IsReadOnly()57 NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsReadOnly() {
58   shutdown_checker::AssertNotShutdown();
59 
60   cef_process_message_t* _struct = GetStruct();
61   if (CEF_MEMBER_MISSING(_struct, is_read_only))
62     return false;
63 
64   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
65 
66   // Execute
67   int _retval = _struct->is_read_only(_struct);
68 
69   // Return type: bool
70   return _retval ? true : false;
71 }
72 
73 NO_SANITIZE("cfi-icall")
Copy()74 CefRefPtr<CefProcessMessage> CefProcessMessageCToCpp::Copy() {
75   shutdown_checker::AssertNotShutdown();
76 
77   cef_process_message_t* _struct = GetStruct();
78   if (CEF_MEMBER_MISSING(_struct, copy))
79     return nullptr;
80 
81   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
82 
83   // Execute
84   cef_process_message_t* _retval = _struct->copy(_struct);
85 
86   // Return type: refptr_same
87   return CefProcessMessageCToCpp::Wrap(_retval);
88 }
89 
GetName()90 NO_SANITIZE("cfi-icall") CefString CefProcessMessageCToCpp::GetName() {
91   shutdown_checker::AssertNotShutdown();
92 
93   cef_process_message_t* _struct = GetStruct();
94   if (CEF_MEMBER_MISSING(_struct, get_name))
95     return CefString();
96 
97   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
98 
99   // Execute
100   cef_string_userfree_t _retval = _struct->get_name(_struct);
101 
102   // Return type: string
103   CefString _retvalStr;
104   _retvalStr.AttachToUserFree(_retval);
105   return _retvalStr;
106 }
107 
108 NO_SANITIZE("cfi-icall")
GetArgumentList()109 CefRefPtr<CefListValue> CefProcessMessageCToCpp::GetArgumentList() {
110   shutdown_checker::AssertNotShutdown();
111 
112   cef_process_message_t* _struct = GetStruct();
113   if (CEF_MEMBER_MISSING(_struct, get_argument_list))
114     return nullptr;
115 
116   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
117 
118   // Execute
119   cef_list_value_t* _retval = _struct->get_argument_list(_struct);
120 
121   // Return type: refptr_same
122   return CefListValueCToCpp::Wrap(_retval);
123 }
124 
125 // CONSTRUCTOR - Do not edit by hand.
126 
CefProcessMessageCToCpp()127 CefProcessMessageCToCpp::CefProcessMessageCToCpp() {}
128 
129 // DESTRUCTOR - Do not edit by hand.
130 
~CefProcessMessageCToCpp()131 CefProcessMessageCToCpp::~CefProcessMessageCToCpp() {
132   shutdown_checker::AssertNotShutdown();
133 }
134 
135 template <>
136 cef_process_message_t* CefCToCppRefCounted<
137     CefProcessMessageCToCpp,
138     CefProcessMessage,
UnwrapDerived(CefWrapperType type,CefProcessMessage * c)139     cef_process_message_t>::UnwrapDerived(CefWrapperType type,
140                                           CefProcessMessage* c) {
141   NOTREACHED() << "Unexpected class type: " << type;
142   return nullptr;
143 }
144 
145 template <>
146 CefWrapperType CefCToCppRefCounted<CefProcessMessageCToCpp,
147                                    CefProcessMessage,
148                                    cef_process_message_t>::kWrapperType =
149     WT_PROCESS_MESSAGE;
150