blob: e07e227929529efac738c392f12a4ee357645d48 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/shell/renderer/cast_content_renderer_client.h"
#include <sys/sysinfo.h>
#include "base/command_line.h"
#include "base/memory/memory_pressure_listener.h"
#include "content/public/common/content_switches.h"
#include "content/public/renderer/render_view.h"
#include "crypto/nss_util.h"
#include "third_party/WebKit/public/platform/WebColor.h"
#include "third_party/WebKit/public/web/WebView.h"
namespace chromecast {
namespace shell {
namespace {
// Default background color to set for WebViews
const blink::WebColor kColorBlack = 0x000000FF;
} // namespace
void CastContentRendererClient::RenderThreadStarted() {
#if defined(USE_NSS)
// Note: Copied from to fix b/8676652.
// On platforms where the system NSS shared libraries are used,
// initialize NSS now because it won't be able to load the .so's
// after entering the sandbox.
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
void CastContentRendererClient::RenderViewCreated(
content::RenderView* render_view) {
blink::WebView* webview = render_view->GetWebView();
if (webview) {
void CastContentRendererClient::AddKeySystems(
std::vector<content::KeySystemInfo>* key_systems) {
} // namespace shell
} // namespace chromecast