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/plugin_info_message_filter.h" | 5 #include "chrome/browser/plugins/plugin_info_message_filter.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
19 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 19 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
20 #include "chrome/browser/plugins/plugin_finder.h" | 20 #include "chrome/browser/plugins/plugin_finder.h" |
21 #include "chrome/browser/plugins/plugin_metadata.h" | 21 #include "chrome/browser/plugins/plugin_metadata.h" |
22 #include "chrome/browser/plugins/plugin_prefs.h" | 22 #include "chrome/browser/plugins/plugin_prefs.h" |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/ui/browser_otr_state.h" | 24 #include "chrome/browser/ui/browser_otr_state.h" |
25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 status == ChromeViewHostMsg_GetPluginInfo_Status::kPlayImportantContent) { | 522 status == ChromeViewHostMsg_GetPluginInfo_Status::kPlayImportantContent) { |
523 ChromePluginServiceFilter::GetInstance()->AuthorizePlugin( | 523 ChromePluginServiceFilter::GetInstance()->AuthorizePlugin( |
524 render_process_id_, path); | 524 render_process_id_, path); |
525 } | 525 } |
526 } | 526 } |
527 | 527 |
528 bool PluginInfoMessageFilter::Context::IsPluginEnabled( | 528 bool PluginInfoMessageFilter::Context::IsPluginEnabled( |
529 const content::WebPluginInfo& plugin) const { | 529 const content::WebPluginInfo& plugin) const { |
530 return plugin_prefs_->IsPluginEnabled(plugin); | 530 return plugin_prefs_->IsPluginEnabled(plugin); |
531 } | 531 } |
OLD | NEW |