- Code: Select all
// Class used to represent a URL
/*--cef(source=library)--*/
class CefURL : public CefBase
{
public:
// Create a new CefURL object.
/*--cef()--*/
static CefRefPtr<CefURL> CreateURL(const CefString& url);
// Return true if the URL is empty.
/*--cef()--*/
virtual bool IsEmpty() =0;
// Return true if the URL is valid.
/*--cef()--*/
virtual bool IsValid() =0;
// Return the URL specification.
/*--cef()--*/
virtual CefString GetSpec() =0;
// Return the URL's scheme, not including the colon.
/*--cef()--*/
virtual CefString GetScheme() =0;
// Return the URL's host. This may be a hostname, an IPv4 address, or an
// IPv6 literal surrounded by square brackets, like "[2001:db8::1]".
/*--cef()--*/
virtual CefString GetHost() =0;
// Return the URL's path, including first slash following host.
/*--cef()--*/
virtual CefString GetPath() =0;
// Return the URL's query (everything following ?).
/*--cef()--*/
virtual CefString GetQuery() =0;
};
Emerick