| OLD | NEW |
| 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 #ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ | 6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 static void Initialize(); | 25 static void Initialize(); |
| 26 | 26 |
| 27 // MediaClient implementation. | 27 // MediaClient implementation. |
| 28 void AddKeySystemsInfoForUMA( | 28 void AddKeySystemsInfoForUMA( |
| 29 std::vector<media::KeySystemInfoForUMA>* key_systems_info_for_uma) final; | 29 std::vector<media::KeySystemInfoForUMA>* key_systems_info_for_uma) final; |
| 30 bool IsKeySystemsUpdateNeeded() final; | 30 bool IsKeySystemsUpdateNeeded() final; |
| 31 void AddSupportedKeySystems( | 31 void AddSupportedKeySystems( |
| 32 std::vector<std::unique_ptr<media::KeySystemProperties>>* | 32 std::vector<std::unique_ptr<media::KeySystemProperties>>* |
| 33 key_systems_properties) final; | 33 key_systems_properties) final; |
| 34 void RecordRapporURL(const std::string& metric, const GURL& url) final; | 34 void RecordRapporURL(const std::string& metric, const GURL& url) final; |
| 35 bool IsSupportedVideoConfig(media::VideoCodec codec, |
| 36 media::VideoCodecProfile profile, |
| 37 int level) override; |
| 35 | 38 |
| 36 void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock); | 39 void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock); |
| 37 | 40 |
| 38 private: | 41 private: |
| 39 friend struct base::DefaultLazyInstanceTraits<RenderMediaClient>; | 42 friend struct base::DefaultLazyInstanceTraits<RenderMediaClient>; |
| 40 | 43 |
| 41 RenderMediaClient(); | 44 RenderMediaClient(); |
| 42 ~RenderMediaClient() override; | 45 ~RenderMediaClient() override; |
| 43 | 46 |
| 44 // Makes sure all methods are called from the same thread. | 47 // Makes sure all methods are called from the same thread. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 60 | 63 |
| 61 #if defined(UNIT_TEST) | 64 #if defined(UNIT_TEST) |
| 62 // Helper function to access the RenderMediaClient instance. Used only by unit | 65 // Helper function to access the RenderMediaClient instance. Used only by unit |
| 63 // tests. | 66 // tests. |
| 64 CONTENT_EXPORT RenderMediaClient* GetRenderMediaClientInstanceForTesting(); | 67 CONTENT_EXPORT RenderMediaClient* GetRenderMediaClientInstanceForTesting(); |
| 65 #endif | 68 #endif |
| 66 | 69 |
| 67 } // namespace content | 70 } // namespace content |
| 68 | 71 |
| 69 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ | 72 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ |
| OLD | NEW |