Chromium Code Reviews| 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 CHROME_RENDERER_PEPPER_PEPPER_UMA_HOST_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_UMA_HOST_H_ |
| 6 #define CHROME_RENDERER_PEPPER_PEPPER_UMA_HOST_H_ | 6 #define CHROME_RENDERER_PEPPER_PEPPER_UMA_HOST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/containers/hash_tables.h" | |
| 12 #include "base/files/file_path.h" | |
| 11 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 12 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/host/resource_host.h" | 15 #include "ppapi/host/resource_host.h" |
| 14 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 15 | 17 |
| 16 namespace content { | 18 namespace content { |
| 17 class RendererPpapiHost; | 19 class RendererPpapiHost; |
| 18 } | 20 } |
| 19 | 21 |
| 20 namespace ppapi { | 22 namespace ppapi { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 | 58 |
| 57 int32_t OnHistogramEnumeration(ppapi::host::HostMessageContext* context, | 59 int32_t OnHistogramEnumeration(ppapi::host::HostMessageContext* context, |
| 58 const std::string& name, | 60 const std::string& name, |
| 59 int32_t sample, | 61 int32_t sample, |
| 60 int32_t boundary_value); | 62 int32_t boundary_value); |
| 61 | 63 |
| 62 int32_t OnIsCrashReportingEnabled(ppapi::host::HostMessageContext* context); | 64 int32_t OnIsCrashReportingEnabled(ppapi::host::HostMessageContext* context); |
| 63 | 65 |
| 64 const GURL document_url_; | 66 const GURL document_url_; |
| 65 bool is_plugin_in_process_; | 67 bool is_plugin_in_process_; |
| 68 base::FilePath plugin_base_name_; | |
| 66 | 69 |
| 67 // Set of origins that can use UMA private APIs from NaCl. | 70 // Set of origins that can use UMA private APIs from NaCl. |
| 68 std::set<std::string> allowed_origins_; | 71 std::set<std::string> allowed_origins_; |
| 69 // Set of hashed histogram prefixes that can be used from this interface. | 72 // Set of hashed histogram prefixes that can be used from this interface. |
| 70 std::set<std::string> allowed_histogram_prefixes_; | 73 std::set<std::string> allowed_histogram_prefixes_; |
| 74 // Set of plugin files names that are allowed to use this interface. | |
| 75 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
| |
| 71 | 76 |
| 72 DISALLOW_COPY_AND_ASSIGN(PepperUMAHost); | 77 DISALLOW_COPY_AND_ASSIGN(PepperUMAHost); |
| 73 }; | 78 }; |
| 74 | 79 |
| 75 #endif // CHROME_RENDERER_PEPPER_PEPPER_UMA_HOST_H_ | 80 #endif // CHROME_RENDERER_PEPPER_PEPPER_UMA_HOST_H_ |
| OLD | NEW |