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

Side by Side Diff: chromecast/shell/renderer/cast_content_renderer_client.cc

Issue 568243002: Adds initial key systems support for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address last comments Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « chromecast/shell/renderer/DEPS ('k') | chromecast/shell/renderer/key_systems_cast.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/shell/renderer/cast_content_renderer_client.h" 5 #include "chromecast/shell/renderer/cast_content_renderer_client.h"
6 6
7 #include <sys/sysinfo.h> 7 #include <sys/sysinfo.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/memory_pressure_listener.h" 10 #include "base/memory/memory_pressure_listener.h"
11 #include "chromecast/shell/renderer/key_systems_cast.h"
11 #include "content/public/common/content_switches.h" 12 #include "content/public/common/content_switches.h"
12 #include "content/public/renderer/render_view.h" 13 #include "content/public/renderer/render_view.h"
13 #include "crypto/nss_util.h" 14 #include "crypto/nss_util.h"
14 #include "third_party/WebKit/public/platform/WebColor.h" 15 #include "third_party/WebKit/public/platform/WebColor.h"
15 #include "third_party/WebKit/public/web/WebView.h" 16 #include "third_party/WebKit/public/web/WebView.h"
16 17
17 namespace chromecast { 18 namespace chromecast {
18 namespace shell { 19 namespace shell {
19 20
20 namespace { 21 namespace {
(...skipping 18 matching lines...) Expand all
39 void CastContentRendererClient::RenderViewCreated( 40 void CastContentRendererClient::RenderViewCreated(
40 content::RenderView* render_view) { 41 content::RenderView* render_view) {
41 blink::WebView* webview = render_view->GetWebView(); 42 blink::WebView* webview = render_view->GetWebView();
42 if (webview) { 43 if (webview) {
43 webview->setBaseBackgroundColor(kColorBlack); 44 webview->setBaseBackgroundColor(kColorBlack);
44 } 45 }
45 } 46 }
46 47
47 void CastContentRendererClient::AddKeySystems( 48 void CastContentRendererClient::AddKeySystems(
48 std::vector<content::KeySystemInfo>* key_systems) { 49 std::vector<content::KeySystemInfo>* key_systems) {
50 AddChromecastKeySystems(key_systems);
51 AddChromecastPlatformKeySystems(key_systems);
49 } 52 }
50 53
51 } // namespace shell 54 } // namespace shell
52 } // namespace chromecast 55 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/shell/renderer/DEPS ('k') | chromecast/shell/renderer/key_systems_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698