2012-01-10 00:46:23 +01:00
|
|
|
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
2011-02-09 23:04:35 +01:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
2011-12-08 02:38:30 +01:00
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
2011-02-09 23:04:35 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/web_urlrequest_client_cpptoc.h"
|
|
|
|
#include "libcef_dll/ctocpp/request_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/web_urlrequest_ctocpp.h"
|
|
|
|
|
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CefRefPtr<CefWebURLRequest> CefWebURLRequest::CreateWebURLRequest(
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefRequest> request, CefRefPtr<CefWebURLRequestClient> client) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: request; type: refptr_same
|
|
|
|
DCHECK(request.get());
|
|
|
|
if (!request.get())
|
|
|
|
return NULL;
|
|
|
|
// Verify param: client; type: refptr_diff
|
|
|
|
DCHECK(client.get());
|
|
|
|
if (!client.get())
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_web_urlrequest_t* _retval = cef_web_urlrequest_create(
|
|
|
|
CefRequestCToCpp::Unwrap(request),
|
|
|
|
CefWebURLRequestClientCppToC::Wrap(client));
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefWebURLRequestCToCpp::Wrap(_retval);
|
2011-02-09 23:04:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefWebURLRequestCToCpp::Cancel() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, cancel))
|
2011-02-09 23:04:35 +01:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-02-09 23:04:35 +01:00
|
|
|
struct_->cancel(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefWebURLRequest::RequestState CefWebURLRequestCToCpp::GetState() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_state))
|
2011-02-09 23:04:35 +01:00
|
|
|
return WUR_STATE_UNSENT;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_weburlrequest_state_t _retval = struct_->get_state(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-02-09 23:04:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
#ifndef NDEBUG
|
2011-02-09 23:04:35 +01:00
|
|
|
template<> long CefCToCpp<CefWebURLRequestCToCpp, CefWebURLRequest,
|
|
|
|
cef_web_urlrequest_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|