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

Side by Side Diff: content/renderer/media/crypto/key_systems_info.h

Issue 23484019: Refactor KeySystems code to call a function to populate the info. (relanding r221932) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build error (cannot |= an enum) Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 // TODO(ddorwin): Remove when AddKeySystems is removed.
12 #include "content/public/renderer/key_system_info.h"
11 13
12 namespace WebKit { 14 namespace WebKit {
13 class WebString; 15 class WebString;
14 } 16 }
15 17
16 namespace content { 18 namespace content {
17 19
18 // TODO(ddorwin): Move registration to ContentClient. 20 // TODO(ddorwin): Move registration to ContentClient.
19 void RegisterKeySystems(); 21 void AddKeySystems(std::vector<KeySystemInfo>* key_systems_info);
20 22
21 // Returns true if canPlayType should return an empty string for |key_system|. 23 // Returns true if canPlayType should return an empty string for |key_system|.
22 bool IsCanPlayTypeSuppressed(const std::string& key_system); 24 bool IsCanPlayTypeSuppressed(const std::string& key_system);
23 25
24 // Returns the name that UMA will use for the given |key_system|. 26 // Returns the name that UMA will use for the given |key_system|.
25 // This function can be called frequently. Hence this function should be 27 // This function can be called frequently. Hence this function should be
26 // implemented not to impact performance and does not rely on the main 28 // implemented not to impact performance and does not rely on the main
27 // key system map. 29 // key system map.
28 std::string KeySystemNameForUMAInternal(const WebKit::WebString& key_system); 30 std::string KeySystemNameForUMAInternal(const WebKit::WebString& key_system);
29 31
30 } // namespace content 32 } // namespace content
31 33
32 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ 34 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/key_systems.cc ('k') | content/renderer/media/crypto/key_systems_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698