Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Unified Diff: chromecast/shell/renderer/cast_content_renderer_client.cc

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/shell/renderer/cast_content_renderer_client.cc
diff --git a/chromecast/shell/renderer/cast_content_renderer_client.cc b/chromecast/shell/renderer/cast_content_renderer_client.cc
deleted file mode 100644
index d7cb87cad23436c1495a7490515840e7700bb439..0000000000000000000000000000000000000000
--- a/chromecast/shell/renderer/cast_content_renderer_client.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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 "chromecast/shell/renderer/key_systems_cast.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/WebSettings.h"
-#include "third_party/WebKit/public/web/WebView.h"
-
-namespace chromecast {
-namespace shell {
-
-namespace {
-
-// Default background color to set for WebViews. WebColor is in ARGB format
-// though the comment of WebColor says it is in RGBA.
-const blink::WebColor kColorBlack = 0xFF000000;
-
-} // namespace
-
-void CastContentRendererClient::RenderThreadStarted() {
-#if defined(USE_NSS)
- // Note: Copied from chrome_render_process_observer.cc 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))
- crypto::InitNSSSafely();
-#endif
-}
-
-void CastContentRendererClient::RenderViewCreated(
- content::RenderView* render_view) {
- blink::WebView* webview = render_view->GetWebView();
- if (webview) {
- webview->setBaseBackgroundColor(kColorBlack);
- webview->settings()->setShrinksViewportContentToFit(false);
- }
-}
-
-void CastContentRendererClient::AddKeySystems(
- std::vector<content::KeySystemInfo>* key_systems) {
- AddChromecastKeySystems(key_systems);
- AddChromecastPlatformKeySystems(key_systems);
-}
-
-} // namespace shell
-} // namespace chromecast
« no previous file with comments | « chromecast/shell/renderer/cast_content_renderer_client.h ('k') | chromecast/shell/renderer/key_systems_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698