OLD | NEW |
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 MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_ | 5 #ifndef MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_ |
6 #define MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_ | 6 #define MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 void ReportKeySystemSupport(const std::string& key_system, bool has_type); | 41 void ReportKeySystemSupport(const std::string& key_system, bool has_type); |
42 | 42 |
43 private: | 43 private: |
44 class Reporter; | 44 class Reporter; |
45 | 45 |
46 // Returns the Reporter for |key_system|. Returns NULL if |key_system| was not | 46 // Returns the Reporter for |key_system|. Returns NULL if |key_system| was not |
47 // added for UMA reporting. | 47 // added for UMA reporting. |
48 Reporter* GetReporter(const std::string& key_system); | 48 Reporter* GetReporter(const std::string& key_system); |
49 | 49 |
50 // Key system <-> Reporter map. | 50 // Key system <-> Reporter map. |
51 typedef base::ScopedPtrHashMap<std::string, Reporter> Reporters; | 51 typedef base::ScopedPtrHashMap<std::string, scoped_ptr<Reporter>> Reporters; |
52 Reporters reporters_; | 52 Reporters reporters_; |
53 }; | 53 }; |
54 | 54 |
55 } // namespace media | 55 } // namespace media |
56 | 56 |
57 #endif // MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_ | 57 #endif // MEDIA_BASE_KEY_SYSTEMS_SUPPORT_UMA_H_ |
OLD | NEW |