| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/plugin_updater.h" | 5 #include "chrome/browser/plugin_updater.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "base/version.h" | 16 #include "base/version.h" |
| 17 #include "chrome/browser/browser_thread.h" | 17 #include "chrome/browser/browser_thread.h" |
| 18 #include "chrome/browser/prefs/pref_service.h" | 18 #include "chrome/browser/prefs/pref_service.h" |
| 19 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
| 21 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
| 22 #include "chrome/common/notification_service.h" | 22 #include "chrome/common/notification_service.h" |
| 23 #include "chrome/common/pepper_plugin_registry.h" | 23 #include "chrome/common/pepper_plugin_registry.h" |
| 24 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
| 25 #include "webkit/glue/plugins/webplugininfo.h" | 25 #include "webkit/glue/plugins/webplugininfo.h" |
| 26 | 26 |
| 27 // How long to wait to save the plugin enabled information, which might need to | 27 // How long to wait to save the plugin enabled information, which might need to |
| 28 // go to disk. | 28 // go to disk. |
| 29 #define kPluginUpdateDelayMs (60 * 1000) | 29 #define kPluginUpdateDelayMs (60 * 1000) |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 NotificationService::current()->Notify( | 301 NotificationService::current()->Notify( |
| 302 NotificationType::PLUGIN_ENABLE_STATUS_CHANGED, | 302 NotificationType::PLUGIN_ENABLE_STATUS_CHANGED, |
| 303 Source<PluginUpdater>(GetPluginUpdater()), | 303 Source<PluginUpdater>(GetPluginUpdater()), |
| 304 NotificationService::NoDetails()); | 304 NotificationService::NoDetails()); |
| 305 } | 305 } |
| 306 | 306 |
| 307 /*static*/ | 307 /*static*/ |
| 308 PluginUpdater* PluginUpdater::GetPluginUpdater() { | 308 PluginUpdater* PluginUpdater::GetPluginUpdater() { |
| 309 return Singleton<PluginUpdater>::get(); | 309 return Singleton<PluginUpdater>::get(); |
| 310 } | 310 } |
| OLD | NEW |