feat: flesh out the api for //extensions (#21587)

This commit is contained in:
Jeremy Apthorp 2020-01-13 14:56:28 -08:00 committed by GitHub
parent 8bc0c92137
commit fa42b5980e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 159 additions and 13 deletions

View file

@ -96,7 +96,10 @@ class Session : public gin_helper::TrackableObject<Session>,
#endif
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
void LoadChromeExtension(const base::FilePath extension_path);
v8::Local<v8::Promise> LoadExtension(const base::FilePath& extension_path);
void RemoveExtension(const std::string& extension_id);
v8::Local<v8::Value> GetExtension(const std::string& extension_id);
v8::Local<v8::Value> GetAllExtensions();
#endif
protected: