Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefPostDataElement

CefBase
   |
   +--CefPostDataElement

   in cef_request.h

class CefPostDataElement
extends CefBase

Class used to represent a single element in the request post data. The methods of this class may be called on any thread.


Inner Classes, Typedefs, and Enums
typedef CefPostDataElement::Type
          Post data elements may represent either bytes or files.
 
Method Summary
 static CefRefPtr< CefPostDataElement > CreatePostDataElement()
          Create a new CefPostDataElement object.
 virtual size_t GetBytes( size_t size, void* bytes )= 0
          Read up to |size| bytes into |bytes| and return the number of bytes actually read.
 virtual size_t GetBytesCount()= 0
          Return the number of bytes.
 virtual CefString GetFile()= 0
          Return the file name.
 virtual CefPostDataElement::Type GetType()= 0
          Return the type of this post data element.
 virtual void SetToBytes( size_t size, const void* bytes )= 0
          The post data element will represent bytes.
 virtual void SetToEmpty()= 0
          Remove all contents from the post data element.
 virtual void SetToFile( const CefString& fileName )= 0
          The post data element will represent a file.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

CreatePostDataElement

public static CefRefPtr< CefPostDataElement > CreatePostDataElement();
Create a new CefPostDataElement object.

GetBytes

public virtual size_t GetBytes( size_t size, void* bytes )= 0;
Read up to |size| bytes into |bytes| and return the number of bytes actually read.

GetBytesCount

public virtual size_t GetBytesCount()= 0;
Return the number of bytes.

GetFile

public virtual CefString GetFile()= 0;
Return the file name.

GetType

public virtual CefPostDataElement::Type GetType()= 0;
Return the type of this post data element.

SetToBytes

public virtual void SetToBytes( size_t size, const void* bytes )= 0;
The post data element will represent bytes. The bytes passed in will be copied.

SetToEmpty

public virtual void SetToEmpty()= 0;
Remove all contents from the post data element.

SetToFile

public virtual void SetToFile( const CefString& fileName )= 0;
The post data element will represent a file.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt