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=8e61de9ab82c665913039fa45903fa8b2213d3c2$ 13 // 14 15 #ifndef CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_ 16 #define CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_ 17 #pragma once 18 19 #if !defined(WRAPPING_CEF_SHARED) 20 #error This file can be included wrapper-side only 21 #endif 22 23 #include "include/capi/cef_response_capi.h" 24 #include "include/cef_response.h" 25 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h" 26 27 // Wrap a C structure with a C++ class. 28 // This class may be instantiated and accessed wrapper-side only. 29 class CefResponseCToCpp : public CefCToCppRefCounted<CefResponseCToCpp, 30 CefResponse, 31 cef_response_t> { 32 public: 33 CefResponseCToCpp(); 34 virtual ~CefResponseCToCpp(); 35 36 // CefResponse methods. 37 bool IsReadOnly() override; 38 cef_errorcode_t GetError() override; 39 void SetError(cef_errorcode_t error) override; 40 int GetStatus() override; 41 void SetStatus(int status) override; 42 CefString GetStatusText() override; 43 void SetStatusText(const CefString& statusText) override; 44 CefString GetMimeType() override; 45 void SetMimeType(const CefString& mimeType) override; 46 CefString GetCharset() override; 47 void SetCharset(const CefString& charset) override; 48 CefString GetHeaderByName(const CefString& name) override; 49 void SetHeaderByName(const CefString& name, 50 const CefString& value, 51 bool overwrite) override; 52 void GetHeaderMap(HeaderMap& headerMap) override; 53 void SetHeaderMap(const HeaderMap& headerMap) override; 54 CefString GetURL() override; 55 void SetURL(const CefString& url) override; 56 }; 57 58 #endif // CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_ 59