OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ |
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/sequenced_task_runner_helpers.h" | 15 #include "base/sequenced_task_runner_helpers.h" |
16 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
17 #include "chrome/browser/plugins/plugin_metadata.h" | 17 #include "chrome/browser/plugins/plugin_metadata.h" |
18 #include "chrome/browser/plugins/plugin_prefs.h" | 18 #include "chrome/browser/plugins/plugin_prefs.h" |
19 #include "components/content_settings/core/common/content_settings.h" | 19 #include "components/content_settings/core/common/content_settings.h" |
20 #include "components/keyed_service/core/keyed_service_shutdown_notifier.h" | 20 #include "components/keyed_service/core/keyed_service_shutdown_notifier.h" |
21 #include "components/prefs/pref_member.h" | 21 #include "components/prefs/pref_member.h" |
| 22 #include "components/ukm/ukm_service.h" |
22 #include "content/public/browser/browser_message_filter.h" | 23 #include "content/public/browser/browser_message_filter.h" |
23 #include "extensions/features/features.h" | 24 #include "extensions/features/features.h" |
24 #include "ppapi/features/features.h" | 25 #include "ppapi/features/features.h" |
25 | 26 |
26 struct ChromeViewHostMsg_GetPluginInfo_Output; | 27 struct ChromeViewHostMsg_GetPluginInfo_Output; |
27 enum class ChromeViewHostMsg_GetPluginInfo_Status; | 28 enum class ChromeViewHostMsg_GetPluginInfo_Status; |
28 class GURL; | 29 class GURL; |
29 class HostContentSettingsMap; | 30 class HostContentSettingsMap; |
30 class Profile; | 31 class Profile; |
31 | 32 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 std::vector<base::string16>* additional_param_names, | 152 std::vector<base::string16>* additional_param_names, |
152 std::vector<base::string16>* additional_param_values); | 153 std::vector<base::string16>* additional_param_values); |
153 #endif | 154 #endif |
154 | 155 |
155 // Reports usage metrics to RAPPOR and UKM. This must be a class function, | 156 // Reports usage metrics to RAPPOR and UKM. This must be a class function, |
156 // because UkmService requires a friend declaration by design to call. | 157 // because UkmService requires a friend declaration by design to call. |
157 void ReportMetrics(int render_frame_id, | 158 void ReportMetrics(int render_frame_id, |
158 const base::StringPiece& mime_type, | 159 const base::StringPiece& mime_type, |
159 const GURL& url, | 160 const GURL& url, |
160 const url::Origin& main_frame_origin, | 161 const url::Origin& main_frame_origin, |
161 int32_t ukm_source_id); | 162 ukm::SourceId ukm_source_id); |
162 | 163 |
163 Context context_; | 164 Context context_; |
164 std::unique_ptr<KeyedServiceShutdownNotifier::Subscription> | 165 std::unique_ptr<KeyedServiceShutdownNotifier::Subscription> |
165 shutdown_notifier_; | 166 shutdown_notifier_; |
166 | 167 |
167 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 168 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
168 | 169 |
169 const int32_t ukm_source_id_; | 170 const ukm::SourceId ukm_source_id_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); | 172 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); |
172 }; | 173 }; |
173 | 174 |
174 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ | 175 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ |
OLD | NEW |