#include "base/base_paths_posix.h"
#endif
+#if BUILDFLAG(IS_EFL)
+#include "base/base_paths_efl.h"
+#endif
+
namespace base {
enum BasePathKey {
#include <stdlib.h>
#endif
-#if BUILDFLAG(IS_TIZEN)
-#include <appfw/app.h>
-#include "base/command_line.h"
-#include "base/memory/free_deleter.h"
-#endif
-
namespace base {
bool PathProviderPosix(int key, FilePath* result) {
case FILE_MODULE: { // TODO(evanm): is this correct?
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
FilePath bin_dir;
-#if BUILDFLAG(IS_TIZEN)
- bin_dir = base::CommandLine::ForCurrentProcess()->GetProgram();
-#else
if (!ReadSymbolicLink(FilePath(kProcSelfExe), &bin_dir)) {
NOTREACHED() << "Unable to resolve " << kProcSelfExe << ".";
}
-#endif
*result = bin_dir;
return true;
#elif BUILDFLAG(IS_FREEBSD)
std::unique_ptr<Environment> env(Environment::Create());
FilePath cache_dir(
nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME", ".cache"));
-#if BUILDFLAG(IS_TIZEN)
- char* app_id = nullptr;
- if (APP_ERROR_NONE == app_get_id(&app_id)) {
- std::unique_ptr<char, FreeDeleter> cache_path(app_get_cache_path());
- cache_dir = base::FilePath(cache_path.get());
- free(app_id);
- }
-#endif
*result = cache_dir;
return true;
}
// PathProviderPosix is the default path provider on POSIX OSes other than
// Mac and Android.
bool PathProviderPosix(int key, FilePath* result);
+#if BUILDFLAG(IS_EFL)
+bool PathProviderEfl(int key, FilePath* result);
+#endif
#endif
namespace {
PATH_START, PATH_END,
#endif
true};
+#if BUILDFLAG(IS_EFL)
+Provider base_provider_efl = {PathProviderEfl, &base_provider_posix,
+#ifndef NDEBUG
+ PATH_EFL_START, PATH_EFL_END,
+#endif
+ true};
+#endif
#endif
-
struct PathData {
Lock lock;
providers = &base_provider_android;
#elif BUILDFLAG(IS_FUCHSIA)
providers = &base_provider_fuchsia;
+#elif BUILDFLAG(IS_EFL)
+ providers = &base_provider_efl;
#elif BUILDFLAG(IS_POSIX)
providers = &base_provider_posix;
#endif
#include "base/base_switches.h"
#include "base/path_service.h"
#include "content/browser/web_contents/web_contents_impl_efl.h"
-#include "content/common/paths_efl.h"
#include "efl/window_factory.h"
#include "ui/gl/gl_shared_context_efl.h"
#include "ui/ozone/platform/efl/efl_screen.h"
efl_main_layout_ = elm_layout_add(root_window);
base::FilePath edj_dir;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
base::FilePath main_edj = edj_dir.Append(FILE_PATH_LITERAL("MainLayout.edj"));
elm_layout_file_set(efl_main_layout_, main_edj.AsUTF8Unsafe().c_str(),
# use of this source code is governed by a bsd-style license that can be
# found in the license file.
+import("//tizen_src/build/config/tizen_features.gni")
+
static_library("trace_event_ttrace") {
configs += [ "//tizen_src/build:libttrace" ]
sources = [
"//tizen_src/chromium_impl/base/trace_event/ttrace.h",
]
}
+
+config("external_base_efl_config") {
+ if (is_tizen) {
+ defines = [ "LIB_RO_ROOT_DIR=\"$lib_ro_root_dir\"" ]
+ if (tizen_product_tv) {
+ defines += [ "LIB_UPGRADE_ROOT_DIR=\"$lib_upgrade_root_dir\"",
+ ]
+ }
+ } else {
+ outdir = rebase_path("$root_out_dir")
+ defines = [
+ "EDJE_DIR=\"$outdir/resources\"",
+ "IMAGE_DIR=\"$image_dir\"",
+ "LOCALE_DIR=\"$outdir/locale\"",
+ ]
+ }
+ defines += [ "CHROMIUM_IMPL_LIB_FILE=\"$chromium_impl_lib_name\"" ]
+}
external_base_configs = [
"//tizen_src/build:ecore",
"//tizen_src/build:libecore",
+ "//tizen_src/chromium_impl/base:external_base_efl_config",
]
if (is_tizen) {
}
external_base_sources = [
+ "//tizen_src/chromium_impl/base/base_paths_efl.cc",
+ "//tizen_src/chromium_impl/base/base_paths_efl.h",
"//tizen_src/chromium_impl/base/message_loop/message_pump_ecore.cc",
"//tizen_src/chromium_impl/base/message_loop/message_pump_ecore.h",
"//tizen_src/chromium_impl/base/message_loop/message_pump_for_ui_efl.cc",
--- /dev/null
+// Copyright 2025 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base_paths_efl.h"
+
+#include <cstdlib>
+
+#include "base/base_switches.h"
+#include "base/command_line.h"
+#include "base/environment.h"
+#include "base/files/file_path.h"
+#include "base/files/file_util.h"
+#include "base/logging.h"
+#include "base/memory/free_deleter.h"
+#include "base/nix/xdg_util.h"
+#include "base/notreached.h"
+#include "base/path_service.h"
+#include "base/process/process_metrics.h"
+#include "build/tizen_version.h"
+
+#if BUILDFLAG(IS_TIZEN)
+#include <appfw/app.h>
+#include <dlfcn.h>
+#include <tzplatform_config.h>
+
+#if !defined(_GNU_SOURCE)
+#define _GNU_SOURCE
+#endif
+#endif
+
+using namespace base;
+
+namespace {
+
+const FilePath::CharType kApplicationName[] = FILE_PATH_LITERAL("chromium-efl");
+const FilePath::CharType kApplicationDataBaseDir[] = FILE_PATH_LITERAL("db");
+
+#if BUILDFLAG(IS_TIZEN_TV)
+const FilePath::CharType kCertListFile[] =
+ FILE_PATH_LITERAL("clientcert/ClientCertList");
+#endif
+
+#if !BUILDFLAG(IS_TIZEN)
+const FilePath::CharType kEdjePath[] = FILE_PATH_LITERAL(EDJE_DIR);
+const FilePath::CharType kLocalePath[] = FILE_PATH_LITERAL(LOCALE_DIR);
+const FilePath::CharType kImagePath[] = FILE_PATH_LITERAL(IMAGE_DIR);
+#else
+const FilePath::CharType kRootPath[] = FILE_PATH_LITERAL(LIB_RO_ROOT_DIR);
+const FilePath::CharType kBinDir[] = FILE_PATH_LITERAL("/usr/bin");
+const FilePath::CharType kApplicationDataDir[] = FILE_PATH_LITERAL("data");
+const FilePath::CharType kApplicationCacheDir[] = FILE_PATH_LITERAL("cache");
+const FilePath::CharType kExeDir[] = FILE_PATH_LITERAL("bin");
+const FilePath::CharType kDataDir[] = FILE_PATH_LITERAL("res");
+const FilePath::CharType kLocaleDir[] = FILE_PATH_LITERAL("locale");
+const FilePath::CharType kEdjeDir[] = FILE_PATH_LITERAL("themes");
+const FilePath::CharType kImageDir[] = FILE_PATH_LITERAL("images");
+const FilePath::CharType kChromiumLibPath[] =
+ FILE_PATH_LITERAL("lib/" CHROMIUM_IMPL_LIB_FILE);
+const FilePath::CharType kNotificationIconDir[] = FILE_PATH_LITERAL("noti");
+
+bool GetDirAppDataTizen(FilePath& result) {
+ char* buffer;
+
+ if (!(buffer = app_get_data_path())) {
+ return false;
+ }
+
+ result = FilePath(buffer);
+ free(buffer);
+ return true;
+}
+
+bool GetDirSharedDataTizen(FilePath& result) {
+ char* buffer = app_get_shared_data_path();
+
+ if (!buffer) {
+ LOG(ERROR) << "Failed to get shared/data path. "
+ << get_error_message(get_last_result());
+ return false;
+ }
+
+ result = FilePath(buffer);
+ free(buffer);
+ return true;
+}
+
+bool GetDirChromiumPrivateTizen(FilePath& result) {
+ std::unique_ptr<char, FreeDeleter> data_path(app_get_data_path());
+ if (data_path) {
+ result = FilePath(data_path.get());
+ } else if (!GetDirAppDataTizen(result)) {
+ return false;
+ }
+ result = result.Append(kApplicationName);
+ return true;
+}
+
+FilePath GetDirUserDataTizen() {
+ FilePath path;
+ if (GetDirChromiumPrivateTizen(path)) {
+ path = path.Append(kApplicationDataDir);
+ }
+ return path;
+}
+
+FilePath GetDirCacheTizen() {
+ FilePath path;
+ if (GetDirChromiumPrivateTizen(path)) {
+ path = path.Append(kApplicationCacheDir);
+ }
+ return path;
+}
+#endif
+
+FilePath GetDirDownloads() {
+#if !BUILDFLAG(IS_TIZEN)
+ return FilePath(FILE_PATH_LITERAL("/tmp/"));
+#else
+ return FilePath(FILE_PATH_LITERAL(tzplatform_getenv(TZ_USER_DOWNLOADS)));
+#endif
+}
+
+FilePath GetDirImages() {
+#if !BUILDFLAG(IS_TIZEN)
+ return FilePath(FILE_PATH_LITERAL("/tmp/"));
+#else
+ return FilePath(FILE_PATH_LITERAL(tzplatform_getenv(TZ_USER_IMAGES)));
+#endif
+}
+
+void GetDirUserData(FilePath& result) {
+#if BUILDFLAG(IS_TIZEN)
+ result = GetDirUserDataTizen();
+ if (result.empty()) {
+ std::unique_ptr<Environment> env(Environment::Create());
+ FilePath config_dir(nix::GetXDGDirectory(
+ env.get(), nix::kXdgConfigHomeEnvVar, nix::kDotConfigDir));
+ char* app_id = NULL;
+ if (APP_ERROR_NONE == app_get_id(&app_id)) {
+ std::unique_ptr<char, FreeDeleter> app_name(app_id);
+ result = config_dir.Append(app_name.get());
+ } else {
+ result = config_dir.Append(kApplicationName);
+ }
+ }
+#else
+ std::unique_ptr<Environment> env(Environment::Create());
+ FilePath config_dir(nix::GetXDGDirectory(env.get(), nix::kXdgConfigHomeEnvVar,
+ nix::kDotConfigDir));
+ result = config_dir.Append(kApplicationName);
+#endif
+}
+
+void GetDirCache(FilePath& result) {
+#if BUILDFLAG(IS_TIZEN)
+ result = GetDirCacheTizen();
+ if (result.empty()) {
+ std::unique_ptr<Environment> env(Environment::Create());
+ FilePath cache_dir(
+ nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME", ".cache"));
+ char* app_id = NULL;
+ if (APP_ERROR_NONE == app_get_id(&app_id)) {
+ std::unique_ptr<char, FreeDeleter> app_name(app_id);
+ result = cache_dir.Append(app_name.get());
+ } else {
+ result = cache_dir.Append(kApplicationName);
+ }
+ }
+#else
+ std::unique_ptr<Environment> env(Environment::Create());
+ FilePath cache_dir(
+ nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME", ".cache"));
+ result = cache_dir.Append(kApplicationName);
+#endif
+}
+} // namespace
+
+namespace base {
+
+#if BUILDFLAG(IS_TIZEN)
+FilePath GetLibRootPath(void) {
+ Dl_info dl_info;
+ if (!dladdr((void*)GetLibRootPath, &dl_info)) {
+ LOG(ERROR) << "dladdr failed";
+ return FilePath();
+ }
+ FilePath lib_root_path(dl_info.dli_fname);
+ lib_root_path = MakeAbsoluteFilePath(lib_root_path);
+
+ if (PathExists(lib_root_path)) {
+ // Remove "lib/chromium-ewk.so" in full path
+ lib_root_path = lib_root_path.DirName().DirName();
+ } else {
+ LOG(WARNING) << "Failed to get libchromium-ewk path : "
+ << lib_root_path.value();
+ lib_root_path = FilePath(kRootPath);
+ }
+
+ LOG(INFO) << "Library Path : " << lib_root_path.value();
+ return lib_root_path;
+}
+#endif
+
+bool PathProviderEfl(int key, FilePath* result) {
+ DCHECK(result);
+ FilePath cur;
+ bool read_only = false;
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ bool isChrome = command_line->HasSwitch(switches::kEnableChrome);
+ switch (key) {
+#if BUILDFLAG(IS_TIZEN)
+ case DIR_LIB_ROOT:
+ *result = GetLibRootPath();
+ return true;
+ case DIR_EXE:
+ case DIR_MODULE:
+ if (isChrome) {
+ cur = command_line->GetProgram();
+ cur = cur.DirName();
+ } else {
+ if (!PathService::Get(DIR_LIB_ROOT, &cur)) {
+ return false;
+ }
+ cur = cur.Append(kExeDir);
+ }
+ read_only = true;
+ break;
+ case DIR_BIN:
+ cur = cur.Append(kBinDir);
+ read_only = true;
+ break;
+#endif
+ case DIR_LOCALE:
+#if BUILDFLAG(IS_TIZEN)
+ if (!PathService::Get(DIR_LIB_ROOT, &cur)) {
+ return false;
+ }
+ cur = cur.Append(kDataDir).Append(kLocaleDir);
+ read_only = true;
+ break;
+#else
+ *result = FilePath(kLocalePath);
+ return true;
+#endif
+ case EDJE_RESOURCE_DIR:
+#if BUILDFLAG(IS_TIZEN)
+ if (!PathService::Get(DIR_LIB_ROOT, &cur)) {
+ return false;
+ }
+ cur = cur.Append(kDataDir).Append(kEdjeDir);
+ read_only = true;
+ break;
+#else
+ *result = FilePath(kEdjePath);
+ return true;
+#endif
+ case DIR_DOWNLOADS:
+ *result = GetDirDownloads();
+ return true;
+ case DIR_DOWNLOAD_IMAGE:
+ *result = GetDirImages();
+ return true;
+ case DIR_USER_DATA:
+ GetDirUserData(cur);
+ break;
+ case DIR_CACHE:
+ if (isChrome) {
+#if BUILDFLAG(IS_TIZEN)
+ char* app_id = nullptr;
+ if (APP_ERROR_NONE != app_get_id(&app_id)) {
+ return false;
+ }
+ std::unique_ptr<char, FreeDeleter> cache_path(app_get_cache_path());
+ *result = base::FilePath(cache_path.get());
+ free(app_id);
+ return true;
+#endif
+ } else {
+ GetDirCache(cur);
+ break;
+ }
+ case WEB_DATABASE_DIR:
+ if (!PathService::Get(DIR_USER_DATA, &cur)) {
+ return false;
+ }
+ cur = cur.Append(kApplicationDataBaseDir);
+ break;
+ case IMAGE_RESOURCE_DIR:
+#if BUILDFLAG(IS_TIZEN)
+ if (!PathService::Get(DIR_LIB_ROOT, &cur)) {
+ return false;
+ }
+ cur = cur.Append(kDataDir).Append(kImageDir);
+ read_only = true;
+ break;
+#else
+ *result = FilePath(kImagePath);
+ return true;
+#endif
+#if BUILDFLAG(IS_TIZEN)
+ case DIR_SHARED:
+ if (!GetDirSharedDataTizen(cur)) {
+ return false;
+ }
+ break;
+ case DIR_SHARED_NOTI_ICON:
+ if (!PathService::Get(DIR_SHARED, &cur)) {
+ return false;
+ }
+ cur = cur.Append(kNotificationIconDir);
+ break;
+ case FILE_CHROMIUM_LIB:
+ if (!PathService::Get(DIR_LIB_ROOT, &cur)) {
+ return false;
+ }
+ cur = cur.Append(kChromiumLibPath);
+ read_only = true;
+ break;
+#endif
+#if BUILDFLAG(IS_TIZEN_TV)
+ case FILE_CERT_LIST:
+ if (!PathService::Get(DIR_LIB_ROOT, &cur)) {
+ return false;
+ }
+ cur = cur.Append(kDataDir).Append(kCertListFile);
+ read_only = true;
+ break;
+#endif
+ case FILE_EXE:
+ case FILE_MODULE: { // TODO(evanm): is this correct?
+#if BUILDFLAG(IS_TIZEN)
+ *result = base::CommandLine::ForCurrentProcess()->GetProgram();
+ return true;
+#endif
+ }
+ default:
+ return false;
+ }
+
+ if (!PathExists(cur) && (read_only || !CreateDirectory(cur))) {
+ LOG(ERROR) << cur.value() << " does not exists!";
+ return false;
+ }
+
+ *result = cur;
+ return true;
+}
+
+} // namespace base
--- /dev/null
+// Copyright 2025 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_PATHS_EFL_H_
+#define BASE_PATHS_EFL_H_
+
+#include "base/base_paths.h"
+
+namespace base {
+
+enum {
+ PATH_EFL_START = 2000,
+ EDJE_RESOURCE_DIR,
+ IMAGE_RESOURCE_DIR,
+ WEB_DATABASE_DIR,
+ DIR_USER_DATA,
+ DIR_DATA_PATH,
+ DIR_DOWNLOADS,
+ DIR_DOWNLOAD_IMAGE,
+ DIR_LIB_ROOT,
+ DIR_LOCALE,
+ DIR_SHARED,
+ DIR_SHARED_NOTI_ICON,
+ DIR_BIN,
+#if BUILDFLAG(IS_TIZEN)
+ FILE_CHROMIUM_LIB,
+#endif
+#if BUILDFLAG(IS_TIZEN_TV)
+ FILE_CERT_LIST,
+#endif
+ PATH_EFL_END
+};
+
+} // namespace base
+
+#endif // BASE_PATHS_EFL_H_
#include "base/logging.h"
#include "base/path_service.h"
#include "content/browser/date_time_chooser_efl.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/web_contents.h"
#include "tizen/system_info.h"
elm_object_content_set(popup_, layout_);
base::FilePath edj_dir;
base::FilePath control_path;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
control_path = edj_dir.Append(FILE_PATH_LITERAL("control.edj"));
elm_layout_file_set(layout_, control_path.AsUTF8Unsafe().c_str(),
layout_group);
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/web_contents.h"
#include "tizen_src/chromium_impl/tizen/system_info.h"
#include "ui/display/device_display_info_efl.h"
std::string JavaScriptModalDialog::GetEdjPath() {
base::FilePath edj_dir;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
return edj_dir.Append(FILE_PATH_LITERAL("JavaScriptPopup.edj"))
.AsUTF8Unsafe();
}
return nullptr;
base::FilePath img_dir;
- base::PathService::Get(PathsEfl::IMAGE_RESOURCE_DIR, &img_dir);
+ base::PathService::Get(base::IMAGE_RESOURCE_DIR, &img_dir);
std::string file_path = img_dir.Append(FILE_PATH_LITERAL(img)).AsUTF8Unsafe();
if (!elm_image_file_set(icon, file_path.c_str(), nullptr))
return nullptr;
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
-#include "content/common/paths_efl.h"
namespace content {
base::FilePath edj_dir;
base::FilePath edge_edj;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
edge_edj = edj_dir.Append(FILE_PATH_LITERAL("Edge.edj"));
CHECK(edje_object_file_set(edge_object_,
edge_edj.AsUTF8Unsafe().c_str(), "edge_effect"));
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
-#include "content/common/paths_efl.h"
#include "tizen_src/ewk/efl_integration/common/web_contents_utils.h"
#if BUILDFLAG(IS_TIZEN)
void FormNavigablePicker::RegisterCallbacks(const char* edj, bool overlay) {
base::FilePath edj_dir;
base::FilePath control_edj;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
control_edj = edj_dir.Append(FILE_PATH_LITERAL(edj));
if (!elm_layout_file_set(layout_, control_edj.AsUTF8Unsafe().c_str(),
"elm/picker")) {
#include "content/browser/renderer_host/render_widget_host_view_aura.h"
#include "content/browser/selection/selection_controller_efl.h"
#include "content/browser/web_contents/web_contents_impl.h"
-#include "content/common/paths_efl.h"
namespace content {
handle_ = edje_object_add(evas);
base::FilePath edj_dir;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
base::FilePath selection_handles_edj =
edj_dir.Append(FILE_PATH_LITERAL("SelectionHandles.edj"));
#include "content/browser/renderer_host/render_widget_host_owner_delegate.h"
#include "content/browser/renderer_host/render_widget_host_view_aura.h"
#include "content/browser/selection/selection_controller_efl.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/blink/public/common/web_preferences/web_preferences.h"
base::FilePath edj_dir;
base::FilePath magnifier_edj;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
magnifier_edj = edj_dir.Append(FILE_PATH_LITERAL("Magnifier.edj"));
container_ =
#include "content/browser/download/drag_download_util.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
-#include "content/common/paths_efl.h"
#include "content/public/common/drop_data.h"
#include "third_party/skia/include/core/SkPixelRef.h"
#include "ui/base/dragdrop/drag_drop_types.h"
w = kDefaultDragIconWidth;
h = kDefaultDragIconHeight;
base::FilePath path;
- base::PathService::Get(PathsEfl::IMAGE_RESOURCE_DIR, &path);
+ base::PathService::Get(base::IMAGE_RESOURCE_DIR, &path);
path = path.Append(FILE_PATH_LITERAL(kDefaultDragIcon));
evas_object_image_file_set(icon, path.AsUTF8Unsafe().c_str(), nullptr);
}
"//content/*",
"//tizen_src/chromium_impl/content/common/common_efl.gni",
]
-
- if (is_tizen) {
- defines = [ "LIB_RO_ROOT_DIR=\"$lib_ro_root_dir\"" ]
- if (tizen_product_tv) {
- defines += [
- "LIB_UPGRADE_ROOT_DIR=\"$lib_upgrade_root_dir\"",
- ]
- }
- } else {
- outdir = rebase_path("$root_out_dir")
- defines = [
- "EDJE_DIR=\"$outdir/resources\"",
- "IMAGE_DIR=\"$image_dir\"",
- "LOCALE_DIR=\"$outdir/locale\"",
- ]
- }
- defines += [ "CHROMIUM_IMPL_LIB_FILE=\"$chromium_impl_lib_name\"" ]
}
"//tizen_src/chromium_impl/content/common/locale_efl.h",
"//tizen_src/chromium_impl/content/common/message_generator_efl.cc",
"//tizen_src/chromium_impl/content/common/message_generator_efl.h",
- "//tizen_src/chromium_impl/content/common/paths_efl.cc",
- "//tizen_src/chromium_impl/content/common/paths_efl.h",
"//tizen_src/chromium_impl/content/common/render_messages_efl.h",
"//tizen_src/chromium_impl/content/common/wrt/wrt_url_parse.h",
]
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
-#include "content/common/paths_efl.h"
#include "content/public/common/content_switches.h"
#include "ui/base/resource/resource_bundle.h"
void Initialize() {
base::FilePath locale_dir;
- base::PathService::Get(PathsEfl::DIR_LOCALE, &locale_dir);
+ base::PathService::Get(base::DIR_LOCALE, &locale_dir);
bindtextdomain("WebKit", locale_dir.value().c_str());
PlatformLanguageChanged(0, 0);
+++ /dev/null
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "paths_efl.h"
-
-#include <cstdlib>
-
-#include "base/command_line.h"
-#include "base/environment.h"
-#include "base/files/file_path.h"
-#include "base/files/file_util.h"
-#include "base/logging.h"
-#include "base/memory/free_deleter.h"
-#include "base/nix/xdg_util.h"
-#include "base/path_service.h"
-#include "build/tizen_version.h"
-
-#if BUILDFLAG(IS_TIZEN)
-#include <appfw/app.h>
-#include <dlfcn.h>
-#include <tzplatform_config.h>
-
-#if !defined(_GNU_SOURCE)
-#define _GNU_SOURCE
-#endif
-#endif
-
-using namespace base;
-
-namespace {
-
-const FilePath::CharType kApplicationName[] = FILE_PATH_LITERAL("chromium-efl");
-const FilePath::CharType kApplicationDataBaseDir[] = FILE_PATH_LITERAL("db");
-
-#if BUILDFLAG(IS_TIZEN_TV)
-const FilePath::CharType kCertListFile[] =
- FILE_PATH_LITERAL("clientcert/ClientCertList");
-#endif
-
-#if !BUILDFLAG(IS_TIZEN)
-const FilePath::CharType kEdjePath[] = FILE_PATH_LITERAL(EDJE_DIR);
-const FilePath::CharType kLocalePath[] = FILE_PATH_LITERAL(LOCALE_DIR);
-const FilePath::CharType kImagePath[] = FILE_PATH_LITERAL(IMAGE_DIR);
-#else
-const FilePath::CharType kRootPath[] = FILE_PATH_LITERAL(LIB_RO_ROOT_DIR);
-const FilePath::CharType kBinDir[] = FILE_PATH_LITERAL("/usr/bin");
-const FilePath::CharType kApplicationDataDir[] = FILE_PATH_LITERAL("data");
-const FilePath::CharType kApplicationCacheDir[] = FILE_PATH_LITERAL("cache");
-const FilePath::CharType kExeDir[] = FILE_PATH_LITERAL("bin");
-const FilePath::CharType kDataDir[] = FILE_PATH_LITERAL("res");
-const FilePath::CharType kLocaleDir[] = FILE_PATH_LITERAL("locale");
-const FilePath::CharType kEdjeDir[] = FILE_PATH_LITERAL("themes");
-const FilePath::CharType kImageDir[] = FILE_PATH_LITERAL("images");
-const FilePath::CharType kChromiumLibPath[] =
- FILE_PATH_LITERAL("lib/" CHROMIUM_IMPL_LIB_FILE);
-const FilePath::CharType kNotificationIconDir[] = FILE_PATH_LITERAL("noti");
-
-bool GetDirAppDataTizen(FilePath& result) {
- char* buffer;
-
- if (!(buffer = app_get_data_path()))
- return false;
-
- result = FilePath(buffer);
- free(buffer);
- return true;
-}
-
-bool GetDirSharedDataTizen(FilePath& result) {
- char* buffer = app_get_shared_data_path();
-
- if (!buffer) {
- LOG(ERROR) << "Failed to get shared/data path. "
- << get_error_message(get_last_result());
- return false;
- }
-
- result = FilePath(buffer);
- free(buffer);
- return true;
-}
-
-bool GetDirChromiumPrivateTizen(FilePath& result) {
- std::unique_ptr<char, FreeDeleter> data_path(app_get_data_path());
- if (data_path) {
- result = FilePath(data_path.get());
- } else if (!GetDirAppDataTizen(result)) {
- return false;
- }
- result = result.Append(kApplicationName);
- return true;
-}
-
-FilePath GetDirUserDataTizen() {
- FilePath path;
- if (GetDirChromiumPrivateTizen(path))
- path = path.Append(kApplicationDataDir);
- return path;
-}
-
-FilePath GetDirCacheTizen() {
- FilePath path;
- if (GetDirChromiumPrivateTizen(path))
- path = path.Append(kApplicationCacheDir);
- return path;
-}
-#endif
-
-FilePath GetDirDownloads() {
-#if !BUILDFLAG(IS_TIZEN)
- return FilePath(FILE_PATH_LITERAL("/tmp/"));
-#else
- return FilePath(FILE_PATH_LITERAL(tzplatform_getenv(TZ_USER_DOWNLOADS)));
-#endif
-}
-
-FilePath GetDirImages() {
-#if !BUILDFLAG(IS_TIZEN)
- return FilePath(FILE_PATH_LITERAL("/tmp/"));
-#else
- return FilePath(FILE_PATH_LITERAL(tzplatform_getenv(TZ_USER_IMAGES)));
-#endif
-}
-
-void GetDirUserData(FilePath& result) {
-#if BUILDFLAG(IS_TIZEN)
- result = GetDirUserDataTizen();
- if (result.empty()) {
- std::unique_ptr<Environment> env(Environment::Create());
- FilePath config_dir(nix::GetXDGDirectory(
- env.get(), nix::kXdgConfigHomeEnvVar, nix::kDotConfigDir));
- char* app_id = NULL;
- if (APP_ERROR_NONE == app_get_id(&app_id)) {
- std::unique_ptr<char, FreeDeleter> app_name(app_id);
- result = config_dir.Append(app_name.get());
- } else {
- result = config_dir.Append(kApplicationName);
- }
- }
-#else
- std::unique_ptr<Environment> env(Environment::Create());
- FilePath config_dir(nix::GetXDGDirectory(env.get(), nix::kXdgConfigHomeEnvVar,
- nix::kDotConfigDir));
- result = config_dir.Append(kApplicationName);
-#endif
-}
-
-void GetDirCache(FilePath& result) {
-#if BUILDFLAG(IS_TIZEN)
- result = GetDirCacheTizen();
- if (result.empty()) {
- std::unique_ptr<Environment> env(Environment::Create());
- FilePath cache_dir(
- nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME", ".cache"));
- char* app_id = NULL;
- if (APP_ERROR_NONE == app_get_id(&app_id)) {
- std::unique_ptr<char, FreeDeleter> app_name(app_id);
- result = cache_dir.Append(app_name.get());
- } else {
- result = cache_dir.Append(kApplicationName);
- }
- }
-#else
- std::unique_ptr<Environment> env(Environment::Create());
- FilePath cache_dir(
- nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME", ".cache"));
- result = cache_dir.Append(kApplicationName);
-#endif
-}
-} // namespace
-
-namespace PathsEfl {
-
-#if BUILDFLAG(IS_TIZEN)
-FilePath GetLibRootPath(void) {
- Dl_info dl_info;
- if (!dladdr((void*)GetLibRootPath, &dl_info)) {
- LOG(ERROR) << "dladdr failed";
- return FilePath();
- }
- FilePath lib_root_path(dl_info.dli_fname);
- lib_root_path = MakeAbsoluteFilePath(lib_root_path);
-
- if (PathExists(lib_root_path)) {
- // Remove "lib/chromium-ewk.so" in full path
- lib_root_path = lib_root_path.DirName().DirName();
- } else {
- LOG(WARNING) << "Failed to get libchromium-ewk path : "
- << lib_root_path.value();
- lib_root_path = FilePath(kRootPath);
- }
-
- LOG(INFO) << "Library Path : " << lib_root_path.value();
- return lib_root_path;
-}
-#endif
-
-bool PathProvider(int key, FilePath* result) {
- DCHECK(result);
- FilePath cur;
- bool read_only = false;
- switch (key) {
-#if BUILDFLAG(IS_TIZEN)
- case DIR_LIB_ROOT:
- *result = GetLibRootPath();
- return true;
- case DIR_EXE:
- case DIR_MODULE:
- if (!PathService::Get(DIR_LIB_ROOT, &cur))
- return false;
- cur = cur.Append(kExeDir);
- read_only = true;
- break;
- case DIR_BIN:
- cur = cur.Append(kBinDir);
- read_only = true;
- break;
-#endif
- case DIR_LOCALE:
-#if BUILDFLAG(IS_TIZEN)
- if (!PathService::Get(DIR_LIB_ROOT, &cur))
- return false;
- cur = cur.Append(kDataDir).Append(kLocaleDir);
- read_only = true;
- break;
-#else
- *result = FilePath(kLocalePath);
- return true;
-#endif
- case EDJE_RESOURCE_DIR:
-#if BUILDFLAG(IS_TIZEN)
- if (!PathService::Get(DIR_LIB_ROOT, &cur))
- return false;
- cur = cur.Append(kDataDir).Append(kEdjeDir);
- read_only = true;
- break;
-#else
- *result = FilePath(kEdjePath);
- return true;
-#endif
- case DIR_DOWNLOADS:
- *result = GetDirDownloads();
- return true;
- case DIR_DOWNLOAD_IMAGE:
- *result = GetDirImages();
- return true;
- case DIR_USER_DATA:
- GetDirUserData(cur);
- break;
- case DIR_CACHE:
- GetDirCache(cur);
- break;
- case WEB_DATABASE_DIR:
- if (!PathService::Get(DIR_USER_DATA, &cur))
- return false;
- cur = cur.Append(kApplicationDataBaseDir);
- break;
- case IMAGE_RESOURCE_DIR:
-#if BUILDFLAG(IS_TIZEN)
- if (!PathService::Get(DIR_LIB_ROOT, &cur))
- return false;
- cur = cur.Append(kDataDir).Append(kImageDir);
- read_only = true;
- break;
-#else
- *result = FilePath(kImagePath);
- return true;
-#endif
-#if BUILDFLAG(IS_TIZEN)
- case DIR_SHARED:
- if (!GetDirSharedDataTizen(cur))
- return false;
- break;
- case DIR_SHARED_NOTI_ICON:
- if (!PathService::Get(DIR_SHARED, &cur))
- return false;
- cur = cur.Append(kNotificationIconDir);
- break;
- case FILE_CHROMIUM_LIB:
- if (!PathService::Get(DIR_LIB_ROOT, &cur))
- return false;
- cur = cur.Append(kChromiumLibPath);
- read_only = true;
- break;
-#endif
-#if BUILDFLAG(IS_TIZEN_TV)
- case FILE_CERT_LIST:
- if (!PathService::Get(DIR_LIB_ROOT, &cur))
- return false;
- cur = cur.Append(kDataDir).Append(kCertListFile);
- read_only = true;
- break;
-#endif
- default:
- return false;
- }
-
- if (!PathExists(cur) && (read_only || !CreateDirectory(cur))) {
- LOG(ERROR) << cur.value() << " does not exists!";
- return false;
- }
-
- *result = cur;
- return true;
-}
-
-void Register() {
- PathService::RegisterProvider(PathProvider, PATH_START, PATH_END);
-}
-} // namespace PathsEfl
+++ /dev/null
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef _PATHS_EFL_H_
-#define _PATHS_EFL_H_
-
-#include "base/base_paths.h"
-#include "content/common/content_export.h"
-
-namespace PathsEfl {
-enum {
- PATH_START = 2000,
- EDJE_RESOURCE_DIR,
- IMAGE_RESOURCE_DIR,
- WEB_DATABASE_DIR,
- DIR_USER_DATA,
- DIR_DATA_PATH,
- DIR_DOWNLOADS,
- DIR_DOWNLOAD_IMAGE,
- DIR_LIB_ROOT,
- DIR_LOCALE,
- DIR_SHARED,
- DIR_SHARED_NOTI_ICON,
- DIR_BIN,
-#if BUILDFLAG(IS_TIZEN)
- FILE_CHROMIUM_LIB,
-#endif
-#if BUILDFLAG(IS_TIZEN_TV)
- FILE_CERT_LIST,
-#endif
- PATH_END
-};
-
-// Call once per each process type to register the provider for the
-// path keys defined above
-CONTENT_EXPORT void Register();
-}
-
-#endif // _PATHS_EFL_H_
#include "base/logging.h"
#include "base/message_loop/message_pump_ecore.h"
#include "chromium_impl/build/tizen_version.h"
-#include "content/common/paths_efl.h"
#include "content/public/common/content_switches.h"
#include "efl/ecore_x_wayland_wrapper.h"
#include "tizen/system_info.h"
ui::OzonePlatform::InitializeForUI(params);
#endif
- PathsEfl::Register();
-
return 0;
}
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
-#include "content/common/paths_efl.h"
#include "ewk/efl_integration/eweb_view.h"
#include "public/ewk_view.h"
if (!CreateTextLabel(dgettext("WebKit", "IDS_WEBVIEW_BODY_USERNAME"), box))
return nullptr;
base::FilePath edj_dir, authentication_edj;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
authentication_edj =
edj_dir.Append(FILE_PATH_LITERAL("AuthenticationPopup.edj"));
#include "base/strings/utf_string_conversions.h"
#include "content/browser/renderer_host/render_widget_host_view_aura.h"
#include "content/browser/web_contents/web_contents_impl.h"
-#include "content/common/paths_efl.h"
#include "eweb_view.h"
#include "tizen/system_info.h"
#include "ui/display/screen.h"
elm_object_part_content_set(smart_parent, "autofill_popup", autofill_popup_);
base::FilePath edj_dir;
base::FilePath autofill_edj;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edj_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edj_dir);
autofill_edj = edj_dir.Append(FILE_PATH_LITERAL("AutofillPopup.edj"));
elm_layout_file_set(autofill_popup_,
autofill_edj.AsUTF8Unsafe().c_str(),
#include "base/path_service.h"
#include "base/task/bind_post_task.h"
#include "base/task/thread_pool.h"
-#include "content/common/paths_efl.h"
#include "favicon_commands.h"
const char * const FaviconDatabasePrivate::pageUrlToFaviconUrlTable = "url_to_favicon_url";
sqlite(0),
weakPtrFactory(this) {
base::FilePath db_path;
- if (base::PathService::Get(PathsEfl::WEB_DATABASE_DIR, &db_path))
+ if (base::PathService::Get(base::WEB_DATABASE_DIR, &db_path))
path = db_path.Append(FILE_PATH_LITERAL(defaultFilename));
else
LOG(ERROR) << "[favicon] Could not get web database directory";
#include "base/strings/utf_string_conversions.h"
#include "browser_context_efl.h"
#include "common/web_contents_utils.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/persistent_notification_status.h"
#include "eweb_view.h"
void RemoveImageFiles(const std::string& tag) {
base::FilePath image_path;
- if (!base::PathService::Get(PathsEfl::DIR_SHARED_NOTI_ICON, &image_path)) {
+ if (!base::PathService::Get(base::DIR_SHARED_NOTI_ICON, &image_path)) {
LOG(ERROR) << "Failed to retrieve the notification resource path";
return;
}
return true;
base::FilePath db_path;
- if (!base::PathService::Get(PathsEfl::WEB_DATABASE_DIR, &db_path)) {
+ if (!base::PathService::Get(base::WEB_DATABASE_DIR, &db_path)) {
LOG(ERROR) << "Could not get web database directory.";
return false;
}
}
base::FilePath noti_path;
- if (base::PathService::Get(PathsEfl::DIR_SHARED_NOTI_ICON, ¬i_path)) {
+ if (base::PathService::Get(base::DIR_SHARED_NOTI_ICON, ¬i_path)) {
bool has_images = false;
const std::string tag_str = std::to_string(tag);
#include "components/password_manager/core/browser/password_store/password_store.h"
#include "components/password_manager/core/browser/password_store/password_store_built_in_backend.h"
#include "components/sync/model/syncable_service.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/browser_thread.h"
using namespace password_manager;
void PasswordStoreFactory::Init() {
base::FilePath db_path;
- if (!base::PathService::Get(PathsEfl::WEB_DATABASE_DIR, &db_path)) {
+ if (!base::PathService::Get(base::WEB_DATABASE_DIR, &db_path)) {
LOG(ERROR) << "Could not access login database path.";
return;
}
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/autofill/core/browser/webdata/payments/payments_autofill_table.h"
#include "components/webdata/common/webdata_constants.h"
-#include "content/common/paths_efl.h"
#include "eweb_view.h"
using autofill::AutofillWebDataService;
WebDataServiceWrapperEfl::WebDataServiceWrapperEfl() {
base::FilePath db_path;
- base::PathService::Get(PathsEfl::WEB_DATABASE_DIR, &db_path);
+ base::PathService::Get(base::WEB_DATABASE_DIR, &db_path);
base::FilePath path = db_path.Append(FILE_PATH_LITERAL(".FormData.db"));
auto ui_task_runner = base::SingleThreadTaskRunner::GetCurrentDefault();
#include "components/prefs/pref_service_factory.h"
#include "components/user_prefs/user_prefs.h"
#include "components/visitedlink/browser/visitedlink_writer.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
static base::FilePath path;
if (path.empty())
- base::PathService::Get(PathsEfl::DIR_USER_DATA, &path);
+ base::PathService::Get(base::DIR_USER_DATA, &path);
return path;
}
#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/common/paths_efl.h"
#include "content/gpu/in_process_gpu_thread.h"
#include "content/public/common/content_switches.h"
#include "content_browser_client_efl.h"
std::string SubProcessPath() {
base::FilePath sub_process_path;
#if BUILDFLAG(IS_TIZEN)
- base::PathService::Get(PathsEfl::DIR_BIN, &sub_process_path);
+ base::PathService::Get(base::DIR_BIN, &sub_process_path);
#else
base::PathService::Get(base::DIR_EXE, &sub_process_path);
#endif
base::FilePath user_data_dir = command_line->GetSwitchValuePath("user-data-dir");
if (!user_data_dir.empty() &&
!base::PathService::OverrideAndCreateIfNeeded(
- PathsEfl::DIR_USER_DATA, user_data_dir, true, true)) {
+ base::DIR_USER_DATA, user_data_dir, true, true)) {
DLOG(WARNING) << "Could not set user data directory to " << user_data_dir.value();
- if (!base::PathService::Get(PathsEfl::DIR_USER_DATA, &user_data_dir))
+ if (!base::PathService::Get(base::DIR_USER_DATA, &user_data_dir))
CHECK(false) << "Could not get default user data directory";
command_line->AppendSwitchPath("user-data-dir", user_data_dir);
std::optional<int> ContentMainDelegateEfl::BasicStartupComplete() {
content::SetContentClient(&content_client_);
- PathsEfl::Register();
return std::nullopt;
}
#include "content/browser/renderer_host/render_widget_host_view_aura.h"
#include "content/browser/selection/selection_controller_efl.h"
#include "content/browser/web_contents/web_contents_impl.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/render_view_host.h"
case EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_LINK_TO_DISK: {
if (!TriggerDownloadCb(GURL(params_.link_url.spec()))) {
base::FilePath path;
- if (!base::PathService::Get(PathsEfl::DIR_DOWNLOADS, &path)) {
+ if (!base::PathService::Get(base::DIR_DOWNLOADS, &path)) {
LOG(ERROR) << "Could not get downloads directory.";
break;
}
case EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_IMAGE_TO_DISK: {
if (!TriggerDownloadCb(GURL(params_.src_url.spec()))) {
base::FilePath path;
- if (!base::PathService::Get(PathsEfl::DIR_DOWNLOAD_IMAGE, &path)) {
+ if (!base::PathService::Get(base::DIR_DOWNLOAD_IMAGE, &path)) {
LOG(ERROR) << "Could not get image downloads directory.";
break;
}
#include "base/path_service.h"
#include "components/download/public/common/download_danger_type.h"
#include "components/download/public/common/download_item.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/download_manager.h"
#include "ewk/efl_integration/browser_context_efl.h"
#include "ewk/efl_integration/eweb_view.h"
download::DownloadItem* item) const {
base::FilePath path;
if (blink::IsSupportedImageMimeType(item->GetMimeType())) {
- if (!base::PathService::Get(PathsEfl::DIR_DOWNLOAD_IMAGE, &path)) {
+ if (!base::PathService::Get(base::DIR_DOWNLOAD_IMAGE, &path)) {
LOG(ERROR) << "Could not get image directory.";
return base::FilePath();
}
} else {
- if (!base::PathService::Get(PathsEfl::DIR_DOWNLOADS, &path)) {
+ if (!base::PathService::Get(base::DIR_DOWNLOADS, &path)) {
LOG(ERROR) << "Could not get download directory.";
return base::FilePath();
}
#include "common/render_messages_ewk.h"
#include "components/visitedlink/renderer/visitedlink_reader.h"
#include "content/common/locale_efl.h"
-#include "content/common/paths_efl.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/content_plugin_info.h"
#include "content/public/renderer/content_renderer_client.h"
#include "base/path_service.h"
#include "chrome/common/chrome_paths.h"
#include "content/browser/web_contents/web_contents_impl.h"
-#include "content/common/paths_efl.h"
#include "content/public/browser/browser_main_runner.h"
#include "electron/shell/browser/api/electron_api_browser_window.h"
#include "electron/shell/browser/browser.h"
// For IDS_WEBVIEW_* strings.
base::FilePath locale_dir;
- base::PathService::Get(PathsEfl::DIR_LOCALE, &locale_dir);
+ base::PathService::Get(base::DIR_LOCALE, &locale_dir);
bindtextdomain("WebKit", locale_dir.value().c_str());
}
}
#include "base/logging.h"
#include "base/path_service.h"
-#include "tizen_src/chromium_impl/content/common/paths_efl.h"
#include "wrt/src/browser/native_web_runtime.h"
#include "wrt/src/browser/tv/native_web_runtime_delegate_tv.h"
#include "wrt/src/browser/tv/wrt_native_window_tv.h"
top_window_ = top_window;
base::FilePath edje_dir;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edje_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edje_dir);
elm_theme_overlay_add(NULL,
(edje_dir.value() + "/" + kDecoratorEdjeFile).c_str());
ea_policy_handle_desktop_mode(top_window_, EINA_TRUE);
#include "base/strings/string_split.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
-#include "content/common/paths_efl.h"
#include "content/common/zygote/zygote_communication_linux.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "sandbox/linux/services/credentials.h"
#include "services/network/public/mojom/clear_data_filter.mojom.h"
#include "tizen_src/chromium_impl/components/xwalk_extensions/browser/xwalk_extension_manager.h"
-#include "tizen_src/chromium_impl/content/common/paths_efl.h"
#include "tizen_src/chromium_impl/content/public/browser/certificates_utils.h"
#include "tizen_src/chromium_impl/tizen/vconf_handle.h"
#include "v8/include/v8.h"
}
void NativeWebRuntimeDelegateTV::PostEarlyInitialization() {
- PathsEfl::Register();
if (!base::i18n::InitializeICU())
LOG(ERROR) << "base::i18n::InitializeICU fail";
base::AutoLock lock(worker_thread_lock);
base::FilePath locale_dir;
- base::PathService::Get(PathsEfl::DIR_LOCALE, &locale_dir);
+ base::PathService::Get(base::DIR_LOCALE, &locale_dir);
auto dir = locale_dir.value().c_str();
LOG(INFO) << "locale dir:" << dir;
bindtextdomain(kTextDomainRuntime, dir);
#include "base/files/file_path.h"
#include "base/path_service.h"
-#include "tizen_src/chromium_impl/content/common/paths_efl.h"
#include "wrt/src/browser/popup_string.h"
#include "wrt/src/browser/wrt_native_window.h"
#include "wrt/src/common/locale_manager.h"
Evas_Object* PopupTV::AddEntry(const char* id, Popup::EntryType type) {
base::FilePath edje_dir;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edje_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edje_dir);
edjeFilePath_ = edje_dir.value() + "/" + kWRTEdjeFile;
Evas_Object* entry = Popup::AddEntry(id, type);
#if BUILDFLAG(IS_TIZEN_TV)
#include "base/path_service.h"
-#include "tizen_src/chromium_impl/content/common/paths_efl.h"
#else
#include <inputmethod.h>
#include <watch_app_efl.h>
layout_ = elm_layout_add(container);
#if BUILDFLAG(IS_TIZEN_TV)
base::FilePath edje_dir;
- base::PathService::Get(PathsEfl::EDJE_RESOURCE_DIR, &edje_dir);
+ base::PathService::Get(base::EDJE_RESOURCE_DIR, &edje_dir);
elm_layout_file_set(layout_, (edje_dir.value() + "/" + kEdjeFile).c_str(),
"web-application");
#else
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "electron/shell/browser/notifications/notification_delegate.h"
-#include "tizen_src/chromium_impl/content/common/paths_efl.h"
#include "tizen_src/ewk/efl_integration/common/web_contents_utils.h"
#include "ui/gfx/codec/png_codec.h"
}
base::FilePath noti_path;
- if (base::PathService::Get(PathsEfl::DIR_SHARED_NOTI_ICON, ¬i_path)) {
+ if (base::PathService::Get(base::DIR_SHARED_NOTI_ICON, ¬i_path)) {
bool has_images = false;
const std::string tag_str = options.tag;
void WRTNotification::RemoveImageFiles(const std::string& tag) {
base::FilePath image_path;
- if (!base::PathService::Get(PathsEfl::DIR_SHARED_NOTI_ICON, &image_path)) {
+ if (!base::PathService::Get(base::DIR_SHARED_NOTI_ICON, &image_path)) {
LOG(ERROR) << "Failed to retrieve the notification resource path";
return;
}
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
-#include "content/common/paths_efl.h"
#include "content/public/common/content_switches.h"
#include "electron/shell/common/gin_helper/object_template_builder.h"
#include "wrt/src/common/application_data.h"
#include "components/nacl/common/nacl_constants.h"
#include "components/nacl/common/nacl_process_type.h"
#include "components/nacl/renderer/plugin/ppapi_entrypoints.h"
-#include "content/common/paths_efl.h"
#include "ppapi/shared_impl/ppapi_permissions.h"
#endif
#if BUILDFLAG(ENABLE_NACL)
base::FilePath path;
- if (base::PathService::Get(PathsEfl::FILE_NACL_PLUGIN, &path)) {
+ if (base::PathService::Get(base::FILE_NACL_PLUGIN, &path)) {
content::ContentPluginInfo nacl;
// The nacl plugin is now built into the binary.
#include "base/logging.h"
#include "base/path_service.h"
#include "base/strings/string_split.h"
-#include "content/common/paths_efl.h"
#include "electron/shell/app/node_main.h"
#include "tizen_src/ewk/efl_integration/command_line_efl.h"
#include "wrt/src/common/application_data.h"
ApplicationData::SetServiceApp();
base::PathService::DisableCache();
- PathsEfl::Register();
_register_wrt();
_register_wrt_xwalk_extension();