Insert node integrations into WebWorker

This commit is contained in:
Cheng Zhao 2017-03-07 19:35:03 +09:00
parent 253caf35ab
commit e017e157ba
5 changed files with 125 additions and 0 deletions

View file

@ -65,6 +65,10 @@ class AtomRendererClient : public content::ContentRendererClient {
void AddSupportedKeySystems(
std::vector<std::unique_ptr<::media::KeySystemProperties>>* key_systems)
override;
void DidInitializeWorkerContextOnWorkerThread(
v8::Local<v8::Context> context) override;
void WillDestroyWorkerContextOnWorkerThread(
v8::Local<v8::Context> context) override;
// Whether the node integration has been initialized.
bool node_integration_initialized_;