| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_observer.h" | 5 #include "chrome/browser/plugin_observer.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/content_settings/host_content_settings_map.h" | 8 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 9 #include "chrome/browser/google/google_util.h" | 9 #include "chrome/browser/google/google_util.h" |
| 10 #include "chrome/browser/metrics/user_metrics.h" | 10 #include "chrome/browser/metrics/user_metrics.h" |
| 11 #include "chrome/browser/plugin_installer_infobar_delegate.h" | 11 #include "chrome/browser/plugin_installer_infobar_delegate.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/renderer_host/render_view_host.h" | |
| 14 #include "chrome/browser/tab_contents/infobar_delegate.h" | 13 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 15 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 16 #include "chrome/common/render_messages.h" | 14 #include "chrome/common/render_messages.h" |
| 17 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "content/browser/renderer_host/render_view_host.h" |
| 17 #include "content/browser/tab_contents/tab_contents.h" |
| 18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/base/resource/resource_bundle.h" | 21 #include "ui/base/resource/resource_bundle.h" |
| 22 #include "webkit/plugins/npapi/default_plugin_shared.h" | 22 #include "webkit/plugins/npapi/default_plugin_shared.h" |
| 23 #include "webkit/plugins/npapi/plugin_list.h" | 23 #include "webkit/plugins/npapi/plugin_list.h" |
| 24 #include "webkit/plugins/npapi/webplugininfo.h" | 24 #include "webkit/plugins/npapi/webplugininfo.h" |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 } | 315 } |
| 316 | 316 |
| 317 void PluginObserver::OnBlockedOutdatedPlugin(const string16& name, | 317 void PluginObserver::OnBlockedOutdatedPlugin(const string16& name, |
| 318 const GURL& update_url) { | 318 const GURL& update_url) { |
| 319 tab_contents()->AddInfoBar(update_url.is_empty() ? | 319 tab_contents()->AddInfoBar(update_url.is_empty() ? |
| 320 static_cast<InfoBarDelegate*>(new BlockedPluginInfoBarDelegate( | 320 static_cast<InfoBarDelegate*>(new BlockedPluginInfoBarDelegate( |
| 321 tab_contents(), name)) : | 321 tab_contents(), name)) : |
| 322 new OutdatedPluginInfoBarDelegate(tab_contents(), name, update_url)); | 322 new OutdatedPluginInfoBarDelegate(tab_contents(), name, update_url)); |
| 323 } | 323 } |
| 324 | 324 |
| OLD | NEW |