Chromium Code Reviews| Index: chrome/renderer/pepper/pepper_uma_host.h |
| diff --git a/chrome/renderer/pepper/pepper_uma_host.h b/chrome/renderer/pepper/pepper_uma_host.h |
| index b417b632b5885402f2e02b1e1d0cf30b13c01855..d67f661518aefa686e4fb529225fcc26e736a2fb 100644 |
| --- a/chrome/renderer/pepper/pepper_uma_host.h |
| +++ b/chrome/renderer/pepper/pepper_uma_host.h |
| @@ -8,6 +8,8 @@ |
| #include <set> |
| #include <string> |
| +#include "base/containers/hash_tables.h" |
| +#include "base/files/file_path.h" |
| #include "ppapi/c/pp_instance.h" |
| #include "ppapi/c/pp_resource.h" |
| #include "ppapi/host/resource_host.h" |
| @@ -63,11 +65,14 @@ class PepperUMAHost : public ppapi::host::ResourceHost { |
| const GURL document_url_; |
| bool is_plugin_in_process_; |
| + base::FilePath plugin_base_name_; |
| // Set of origins that can use UMA private APIs from NaCl. |
| std::set<std::string> allowed_origins_; |
| // Set of hashed histogram prefixes that can be used from this interface. |
| std::set<std::string> allowed_histogram_prefixes_; |
| + // Set of plugin files names that are allowed to use this interface. |
| + base::hash_set<std::string> allowed_plugin_base_names_; |
|
Ilya Sherman
2014/05/14 21:52:51
nit: bbudge, why did you recommend base::hash_set
xhwang
2014/05/15 00:14:28
Reverted back to std::set for consistency with the
|
| DISALLOW_COPY_AND_ASSIGN(PepperUMAHost); |
| }; |