| 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/ui/webui/plugins_ui.h" | 5 #include "chrome/browser/ui/webui/plugins_ui.h" | 
| 6 | 6 | 
| 7 #include <algorithm> | 7 #include <algorithm> | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| 11 #include "base/bind.h" | 11 #include "base/bind.h" | 
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" | 
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" | 
| 14 #include "base/memory/ref_counted_memory.h" | 14 #include "base/memory/ref_counted_memory.h" | 
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" | 
| 16 #include "base/memory/singleton.h" | 16 #include "base/memory/singleton.h" | 
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" | 
| 18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" | 
| 19 #include "base/path_service.h" | 19 #include "base/path_service.h" | 
| 20 #include "base/prefs/pref_member.h" | 20 #include "base/prefs/pref_member.h" | 
| 21 #include "base/prefs/pref_service.h" | 21 #include "base/prefs/pref_service.h" | 
| 22 #include "base/prefs/scoped_user_pref_update.h" | 22 #include "base/prefs/scoped_user_pref_update.h" | 
| 23 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" | 
| 24 #include "base/values.h" | 24 #include "base/values.h" | 
| 25 #include "chrome/browser/chrome_notification_types.h" | 25 #include "chrome/browser/chrome_notification_types.h" | 
| 26 #include "chrome/browser/content_settings/host_content_settings_map.h" |  | 
| 27 #include "chrome/browser/plugins/plugin_finder.h" | 26 #include "chrome/browser/plugins/plugin_finder.h" | 
| 28 #include "chrome/browser/plugins/plugin_metadata.h" | 27 #include "chrome/browser/plugins/plugin_metadata.h" | 
| 29 #include "chrome/browser/plugins/plugin_prefs.h" | 28 #include "chrome/browser/plugins/plugin_prefs.h" | 
| 30 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" | 
| 31 #include "chrome/browser/ui/browser.h" | 30 #include "chrome/browser/ui/browser.h" | 
| 32 #include "chrome/browser/ui/browser_window.h" | 31 #include "chrome/browser/ui/browser_window.h" | 
| 33 #include "chrome/common/chrome_content_client.h" | 32 #include "chrome/common/chrome_content_client.h" | 
| 34 #include "chrome/common/chrome_paths.h" | 33 #include "chrome/common/chrome_paths.h" | 
| 35 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" | 
| 36 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" | 
| 37 #include "chrome/grit/generated_resources.h" | 36 #include "chrome/grit/generated_resources.h" | 
|  | 37 #include "components/content_settings/core/browser/host_content_settings_map.h" | 
| 38 #include "components/pref_registry/pref_registry_syncable.h" | 38 #include "components/pref_registry/pref_registry_syncable.h" | 
| 39 #include "content/public/browser/notification_source.h" | 39 #include "content/public/browser/notification_source.h" | 
| 40 #include "content/public/browser/plugin_service.h" | 40 #include "content/public/browser/plugin_service.h" | 
| 41 #include "content/public/browser/web_contents.h" | 41 #include "content/public/browser/web_contents.h" | 
| 42 #include "content/public/browser/web_ui.h" | 42 #include "content/public/browser/web_ui.h" | 
| 43 #include "content/public/browser/web_ui_data_source.h" | 43 #include "content/public/browser/web_ui_data_source.h" | 
| 44 #include "content/public/browser/web_ui_message_handler.h" | 44 #include "content/public/browser/web_ui_message_handler.h" | 
| 45 #include "content/public/common/content_constants.h" | 45 #include "content/public/common/content_constants.h" | 
| 46 #include "grit/browser_resources.h" | 46 #include "grit/browser_resources.h" | 
| 47 #include "grit/theme_resources.h" | 47 #include "grit/theme_resources.h" | 
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 516 void PluginsUI::RegisterProfilePrefs( | 516 void PluginsUI::RegisterProfilePrefs( | 
| 517     user_prefs::PrefRegistrySyncable* registry) { | 517     user_prefs::PrefRegistrySyncable* registry) { | 
| 518   registry->RegisterBooleanPref( | 518   registry->RegisterBooleanPref( | 
| 519       prefs::kPluginsShowDetails, | 519       prefs::kPluginsShowDetails, | 
| 520       false, | 520       false, | 
| 521       user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 521       user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 
| 522   registry->RegisterDictionaryPref( | 522   registry->RegisterDictionaryPref( | 
| 523       prefs::kContentSettingsPluginWhitelist, | 523       prefs::kContentSettingsPluginWhitelist, | 
| 524       user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 524       user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 
| 525 } | 525 } | 
| OLD | NEW | 
|---|