Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefExtension

CefBaseRefCounted
   |
   +--CefExtension

   in cef_extension.h

class CefExtension
extends CefBaseRefCounted

Object representing an extension. Methods may be called on any thread unless otherwise indicated.


Method Summary
 virtual CefRefPtr< CefExtensionHandler > GetHandler()= 0
          Returns the handler for this extension.
 virtual CefString GetIdentifier()= 0
          Returns the unique extension identifier.
 virtual CefRefPtr< CefRequestContext > GetLoaderContext()= 0
          Returns the request context that loaded this extension.
 virtual CefRefPtr< CefDictionaryValue > GetManifest()= 0
          Returns the extension manifest contents as a CefDictionaryValue object.
 virtual CefString GetPath()= 0
          Returns the absolute path to the extension directory on disk.
 virtual bool IsLoaded()= 0
          Returns true if this extension is currently loaded.
 virtual bool IsSame( CefRefPtr< CefExtension > that )= 0
          Returns true if this object is the same extension as |that| object.
 virtual void Unload()= 0
          Unload this extension if it is not an internal extension and is currently loaded.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

GetHandler

public virtual CefRefPtr< CefExtensionHandler > GetHandler()= 0;
Returns the handler for this extension. Will return NULL for internal extensions or if no handler was passed to CefRequestContext::LoadExtension.

GetIdentifier

public virtual CefString GetIdentifier()= 0;
Returns the unique extension identifier. This is calculated based on the extension public key, if available, or on the extension path. See https://developer.chrome.com/extensions/manifest/key for details.

GetLoaderContext

public virtual CefRefPtr< CefRequestContext > GetLoaderContext()= 0;
Returns the request context that loaded this extension. Will return NULL for internal extensions or if the extension has been unloaded. See the CefRequestContext::LoadExtension documentation for more information about loader contexts. Must be called on the browser process UI thread.

GetManifest

public virtual CefRefPtr< CefDictionaryValue > GetManifest()= 0;
Returns the extension manifest contents as a CefDictionaryValue object. See https://developer.chrome.com/extensions/manifest for details.

GetPath

public virtual CefString GetPath()= 0;
Returns the absolute path to the extension directory on disk. This value will be prefixed with PK_DIR_RESOURCES if a relative path was passed to CefRequestContext::LoadExtension.

IsLoaded

public virtual bool IsLoaded()= 0;
Returns true if this extension is currently loaded. Must be called on the browser process UI thread.

IsSame

public virtual bool IsSame( CefRefPtr< CefExtension > that )= 0;
Returns true if this object is the same extension as |that| object. Extensions are considered the same if identifier, path and loader context match.

Unload

public virtual void Unload()= 0;
Unload this extension if it is not an internal extension and is currently loaded. Will result in a call to CefExtensionHandler::OnExtensionUnloaded on success.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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