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 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 5 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 12 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
13 #include "chrome/browser/engagement/site_engagement_service.h" | 13 #include "chrome/browser/engagement/site_engagement_service.h" |
14 #include "chrome/browser/plugins/plugin_finder.h" | 14 #include "chrome/browser/plugins/plugin_finder.h" |
15 #include "chrome/browser/plugins/plugin_metadata.h" | 15 #include "chrome/browser/plugins/plugin_metadata.h" |
16 #include "chrome/browser/plugins/plugin_utils.h" | 16 #include "chrome/browser/plugins/plugin_utils.h" |
17 #include "chrome/browser/plugins/plugins_field_trial.h" | 17 #include "chrome/browser/plugins/plugins_field_trial.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/common/chrome_features.h" | 19 #include "chrome/common/chrome_features.h" |
20 #include "chrome/common/render_messages.h" | 20 #include "chrome/common/render_messages.h" |
21 #include "components/content_settings/content/common/content_settings_messages.h
" | |
22 #include "components/content_settings/core/browser/host_content_settings_map.h" | 21 #include "components/content_settings/core/browser/host_content_settings_map.h" |
23 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
24 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
25 #include "content/public/browser/plugin_service.h" | 24 #include "content/public/browser/plugin_service.h" |
26 #include "content/public/browser/render_frame_host.h" | 25 #include "content/public/browser/render_frame_host.h" |
27 #include "content/public/browser/render_process_host.h" | 26 #include "content/public/browser/render_process_host.h" |
28 #include "content/public/browser/resource_context.h" | 27 #include "content/public/browser/resource_context.h" |
29 #include "content/public/browser/web_contents.h" | 28 #include "content/public/browser/web_contents.h" |
30 #include "content/public/common/content_constants.h" | 29 #include "content/public/common/content_constants.h" |
31 #include "url/gurl.h" | 30 #include "url/gurl.h" |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 296 |
298 const ChromePluginServiceFilter::ProcessDetails* | 297 const ChromePluginServiceFilter::ProcessDetails* |
299 ChromePluginServiceFilter::GetProcess( | 298 ChromePluginServiceFilter::GetProcess( |
300 int render_process_id) const { | 299 int render_process_id) const { |
301 std::map<int, ProcessDetails>::const_iterator it = | 300 std::map<int, ProcessDetails>::const_iterator it = |
302 plugin_details_.find(render_process_id); | 301 plugin_details_.find(render_process_id); |
303 if (it == plugin_details_.end()) | 302 if (it == plugin_details_.end()) |
304 return NULL; | 303 return NULL; |
305 return &it->second; | 304 return &it->second; |
306 } | 305 } |
OLD | NEW |