This source file includes following definitions.
- PreSandboxInitialization
#include "chrome/plugin/chrome_content_plugin_client.h"
#if defined(ENABLE_REMOTING)
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "content/public/common/content_paths.h"
#include "media/base/media.h"
#if defined(OS_WIN)
#include "base/logging.h"
#include "base/native_library.h"
#elif defined(OS_POSIX) && !defined(OS_MACOSX) && defined(USE_NSS)
#include "crypto/nss_util.h"
#endif
#endif
namespace chrome {
void ChromeContentPluginClient::PreSandboxInitialization() {
#if defined(ENABLE_REMOTING)
#if defined(OS_POSIX) && !defined(OS_MACOSX) && defined(USE_NSS)
crypto::ForceNSSNoDBInit();
crypto::EnsureNSSInit();
#elif defined(OS_WIN)
base::NativeLibraryLoadError error;
if (base::LoadNativeLibrary(base::FilePath(L"crypt32.dll"), &error) == NULL)
LOG(ERROR) << "Failed to load crypto32.dll: " << error.ToString();
#endif
base::FilePath media_path;
PathService::Get(content::DIR_MEDIA_LIBS, &media_path);
if (!media_path.empty())
media::InitializeMediaLibrary(media_path);
#endif
}
}