Move AtomRenderFrameObserver into a separate module.

Also move SetupMainWorldOverrides into the AtomRendererClient class(since the
code there is specific to AtomRendererClient).
This commit is contained in:
Thiago de Arruda 2017-03-31 10:01:33 -03:00
parent 8a324a9375
commit 91ee0ea740
5 changed files with 175 additions and 122 deletions

View file

@ -29,6 +29,7 @@ class AtomRendererClient : public RendererClientBase {
// Get the context that the Electron API is running in.
v8::Local<v8::Context> GetContext(
blink::WebFrame* frame, v8::Isolate* isolate);
void SetupMainWorldOverrides(v8::Handle<v8::Context> context);
bool isolated_world() { return isolated_world_; }
private: