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_infobar_delegates.h" | 5 #include "chrome/browser/plugins/plugin_infobar_delegates.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/content_settings/host_content_settings_map.h" | 10 #include "chrome/browser/content_settings/host_content_settings_map.h" |
11 #include "chrome/browser/infobars/infobar_service.h" | 11 #include "chrome/browser/infobars/infobar_service.h" |
12 #include "chrome/browser/lifetime/application_lifetime.h" | 12 #include "chrome/browser/lifetime/application_lifetime.h" |
13 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 13 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
14 #include "chrome/browser/plugins/plugin_metadata.h" | 14 #include "chrome/browser/plugins/plugin_metadata.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/shell_integration.h" | 16 #include "chrome/browser/shell_integration.h" |
17 #include "chrome/browser/ui/browser_commands.h" | 17 #include "chrome/browser/ui/browser_commands.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "chrome/grit/generated_resources.h" | 19 #include "chrome/grit/generated_resources.h" |
20 #include "chrome/grit/locale_settings.h" | 20 #include "chrome/grit/locale_settings.h" |
21 #include "components/google/core/browser/google_util.h" | 21 #include "components/google/core/browser/google_util.h" |
22 #include "components/infobars/core/infobar.h" | 22 #include "components/infobars/core/infobar.h" |
23 #include "content/public/browser/render_process_host.h" | 23 #include "content/public/browser/render_process_host.h" |
24 #include "content/public/browser/render_view_host.h" | 24 #include "content/public/browser/render_view_host.h" |
25 #include "content/public/browser/user_metrics.h" | 25 #include "content/public/browser/user_metrics.h" |
26 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
| 27 #include "grit/components_strings.h" |
27 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
28 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
29 | 30 |
30 #if defined(ENABLE_PLUGIN_INSTALLATION) | 31 #if defined(ENABLE_PLUGIN_INSTALLATION) |
31 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
32 #include "base/win/metro.h" | 33 #include "base/win/metro.h" |
33 #endif | 34 #endif |
34 #include "chrome/browser/plugins/plugin_installer.h" | 35 #include "chrome/browser/plugins/plugin_installer.h" |
35 #endif | 36 #endif |
36 | 37 |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 "https://support.google.com/chrome/?p=ib_redirect_to_desktop"), | 521 "https://support.google.com/chrome/?p=ib_redirect_to_desktop"), |
521 content::Referrer(), | 522 content::Referrer(), |
522 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, | 523 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
523 content::PAGE_TRANSITION_LINK, false)); | 524 content::PAGE_TRANSITION_LINK, false)); |
524 return false; | 525 return false; |
525 } | 526 } |
526 | 527 |
527 #endif // defined(OS_WIN) | 528 #endif // defined(OS_WIN) |
528 | 529 |
529 #endif // defined(ENABLE_PLUGIN_INSTALLATION) | 530 #endif // defined(ENABLE_PLUGIN_INSTALLATION) |
OLD | NEW |