Store all created environments in renderer.

This commit is contained in:
Cheng Zhao 2014-01-09 22:13:06 +08:00
parent e7b7efeb0a
commit fff743053a
2 changed files with 26 additions and 4 deletions

View file

@ -5,8 +5,14 @@
#ifndef ATOM_RENDERER_ATOM_RENDERER_CLIENT_H_
#define ATOM_RENDERER_ATOM_RENDERER_CLIENT_H_
#include <vector>
#include "content/public/renderer/content_renderer_client.h"
namespace node {
class Environment;
}
namespace atom {
class AtomRendererBindings;
@ -30,6 +36,8 @@ class AtomRendererClient : public content::ContentRendererClient {
v8::Handle<v8::Context>,
int world_id) OVERRIDE;
std::vector<node::Environment*> web_page_envs_;
scoped_ptr<NodeBindings> node_bindings_;
scoped_ptr<AtomRendererBindings> atom_bindings_;