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

Side by Side Diff: media/base/key_systems_support_uma.h

Issue 1099383002: Change ScopedPtrHashMap's 2nd template parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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/cdm_promise_adapter.h ('k') | media/blink/webencryptedmediaclient_impl.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 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
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_
OLDNEW
« no previous file with comments | « media/base/cdm_promise_adapter.h ('k') | media/blink/webencryptedmediaclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698