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

Side by Side Diff: media/base/media_client.cc

Issue 2712983004: Simplify/Cleanup MediaClient (Closed)
Patch Set: Fix test leak Created 3 years, 8 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 | « media/base/media_client.h ('k') | media/base/media_log.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 "media/base/media_client.h" 5 #include "media/base/media_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 10
11 static MediaClient* g_media_client = nullptr; 11 static MediaClient* g_media_client = nullptr;
12 12
13 void SetMediaClient(MediaClient* media_client) { 13 void SetMediaClient(MediaClient* media_client) {
14 g_media_client = media_client; 14 g_media_client = media_client;
15 } 15 }
16 16
17 MediaClient* GetMediaClient() { 17 MediaClient* GetMediaClient() {
18 return g_media_client; 18 return g_media_client;
19 } 19 }
20 20
21 KeySystemInfoForUMA::KeySystemInfoForUMA(
22 const std::string& key_system,
23 const std::string& key_system_name_for_uma)
24 : key_system(key_system),
25 key_system_name_for_uma(key_system_name_for_uma) {}
26
27 KeySystemInfoForUMA::~KeySystemInfoForUMA() {
28 }
29
30 MediaClient::MediaClient() { 21 MediaClient::MediaClient() {
31 } 22 }
32 23
33 MediaClient::~MediaClient() { 24 MediaClient::~MediaClient() {
34 } 25 }
35 26
36 } // namespace media 27 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_client.h ('k') | media/base/media_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698