#include "content/browser/date_time_chooser_efl.h"
#endif
-#if defined(ENABLE_WRT_JS)
+#if BUILDFLAG(IS_TIZEN)
#include "tizen_src/chromium_impl/components/xwalk_extensions/browser/xwalk_extension_manager.h"
#endif
map->Add<blink::mojom::QuotaManagerHost>(BindWorkerReceiverForStorageKey(
&RenderProcessHostImpl::BindQuotaManagerHost, host));
-#if defined(ENABLE_WRT_JS)
+#if BUILDFLAG(IS_TIZEN)
map->Add<wrt::mojom::XWalkExtensionBrowser>(base::BindRepeating(
&wrt::XWalkExtensionManager::Bind));
#endif
#include "components/error_page/common/localized_error.h"
#include "components/navigation_interception/intercept_navigation_throttle.h"
#include "components/password_manager/content/browser/content_password_manager_driver_factory.h"
-#include "components/xwalk_extensions/browser/xwalk_extension_manager.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_process_host.h"
#if BUILDFLAG(IS_TIZEN)
#include <vconf.h>
+
+#include "components/xwalk_extensions/browser/xwalk_extension_manager.h"
#endif
#include "private/ewk_notification_private.h"
switches::kXWalkExtensionJsonPath)) {
return;
}
+#if BUILDFLAG(IS_TIZEN)
registry->AddInterface(
base::BindRepeating(&wrt::XWalkExtensionManager::Bind),
content::GetUIThreadTaskRunner({}));
+#endif
}
#if BUILDFLAG(IS_TIZEN_TV)
#include "browser/xwalk_extension_browser_efl.h"
#include "command_line_efl.h"
#include "common/content_switches_efl.h"
-#include "components/xwalk_extensions/browser/xwalk_extension_manager.h"
#include "content/browser/gpu/gpu_main_thread_factory.h"
#include "content/browser/gpu/gpu_process_host.h"
#include "content/common/locale_efl.h"
#include "content_browser_client_efl.h"
#include "renderer/content_renderer_client_efl.h"
#include "ui/base/resource/resource_bundle.h"
+
+#if BUILDFLAG(IS_TIZEN)
+#include "components/xwalk_extensions/browser/xwalk_extension_manager.h"
+#endif
+
#if BUILDFLAG(IS_TIZEN_TV)
#include "content/public/browser/render_process_host.h"
#include "devtools_port_manager.h"
// needed for gpu thread
content::RegisterGpuMainThreadFactory(CreateInProcessGpuThread);
+#if BUILDFLAG(IS_TIZEN)
// switches::kXWalkExtensionJsonPath SHOULD be set before MainDelegate init.
auto json_path =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
extension_manager->SetDelegate(
std::make_unique<XWalkExtensionBrowserEfl>());
}
+#endif
}
void ContentMainDelegateEfl::PreSandboxStartup() {
#if BUILDFLAG(IS_TIZEN)
#include <vconf/vconf.h>
+
+#include "components/xwalk_extensions/renderer/xwalk_extension_renderer_controller.h"
#endif
#include "base/command_line.h"
#include "common/content_switches_efl.h"
#include "common/render_messages_ewk.h"
#include "components/visitedlink/renderer/visitedlink_reader.h"
-#include "components/xwalk_extensions/renderer/xwalk_extension_renderer_controller.h"
#include "content/common/locale_efl.h"
#include "content/common/paths_efl.h"
#include "content/public/common/content_switches.h"
if (!command_line.HasSwitch(switches::kSingleProcess))
LocaleEfl::Initialize();
+#if BUILDFLAG(IS_TIZEN)
if (command_line.HasSwitch(switches::kXWalkExtensionJsonPath)) {
wrt::XWalkExtensionRendererController::GetInstance().SetPrivilegeChecker(
base::BindRepeating([]() -> bool {
return true;
}));
}
+#endif
}
void ContentRendererClientEfl::RenderFrameCreated(content::RenderFrame* render_frame) {
content::RenderFrame* render_frame,
v8::Handle<v8::Context> context,
int world_id) {
+#if BUILDFLAG(IS_TIZEN)
if (ShouldRegisterXWalkExtension(world_id))
wrt::XWalkExtensionRendererController::DidCreateScriptContext(context);
-
+#endif
if (!widget_)
return;
blink::WebFrame* frame,
v8::Handle<v8::Context> context,
int world_id) {
+#if BUILDFLAG(IS_TIZEN)
if (ShouldRegisterXWalkExtension(world_id))
wrt::XWalkExtensionRendererController::WillReleaseScriptContext(context);
-
+#endif
if (widget_)
widget_->StopSession(context);
}