#include "native_mate/dictionary.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
+#include "tizen/common/env_variables.h"
#include "atom/common/node_includes.h"
} // namespace
AtomRendererClient::AtomRendererClient()
- : node_integration_initialized_(false),
- node_bindings_(NodeBindings::Create(NodeBindings::RENDERER)),
- atom_bindings_(new AtomBindings(uv_default_loop())) {
+ : node_integration_initialized_(false) {
+ if (!::tizen::is_single_process) {
+ node_bindings_.reset(NodeBindings::Create(NodeBindings::RENDERER));
+ atom_bindings_.reset(new AtomBindings(node_bindings_->uv_loop()));
+ }
isolated_world_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kContextIsolation);
}
void AtomRendererClient::RunScriptsAtDocumentStart(
content::RenderFrame* render_frame) {
+ if (::tizen::is_single_process)
+ return;
// Inform the document start pharse.
node::Environment* env = node_bindings_->uv_env();
if (env) {
void AtomRendererClient::RunScriptsAtDocumentEnd(
content::RenderFrame* render_frame) {
+ if (::tizen::is_single_process)
+ return;
// Inform the document end pharse.
node::Environment* env = node_bindings_->uv_env();
if (env) {
render_frame->GetWebFrame()->document().baseURL().string().utf8().c_str());
}
#endif
+ if (::tizen::is_single_process)
+ return;
// Only allow node integration for the main frame, unless it is a devtools
// extension page.
if (!render_frame->IsMainFrame() && !IsDevToolsExtension(render_frame))
if (widget_)
widget_->StopSession(context);
#endif
+ if (::tizen::is_single_process)
+ return;
// Only allow node integration for the main frame, unless it is a devtools
// extension page.
if (!render_frame->IsMainFrame() && !IsDevToolsExtension(render_frame))