| 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/pdf/pdf_unsupported_feature.h" | 5 #include "chrome/browser/ui/pdf/pdf_unsupported_feature.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/lifetime/application_lifetime.h" | 15 #include "chrome/browser/lifetime/application_lifetime.h" |
| 16 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 16 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
| 17 #include "chrome/browser/plugins/plugin_metadata.h" | 17 #include "chrome/browser/plugins/plugin_metadata.h" |
| 18 #include "chrome/browser/plugins/plugin_prefs.h" | 18 #include "chrome/browser/plugins/plugin_prefs.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/browser/renderer_preferences_util.h" | 20 #include "chrome/browser/renderer_preferences_util.h" |
| 21 #include "chrome/browser/tab_contents/tab_util.h" | 21 #include "chrome/browser/tab_contents/tab_util.h" |
| 22 #include "chrome/common/chrome_content_client.h" | 22 #include "chrome/common/chrome_content_client.h" |
| 23 #include "chrome/grit/browser_resources.h" |
| 23 #include "chrome/grit/generated_resources.h" | 24 #include "chrome/grit/generated_resources.h" |
| 24 #include "components/pdf/browser/open_pdf_in_reader_prompt_client.h" | 25 #include "components/pdf/browser/open_pdf_in_reader_prompt_client.h" |
| 25 #include "components/pdf/browser/pdf_web_contents_helper.h" | 26 #include "components/pdf/browser/pdf_web_contents_helper.h" |
| 27 #include "components/strings/grit/components_strings.h" |
| 26 #include "content/public/browser/interstitial_page.h" | 28 #include "content/public/browser/interstitial_page.h" |
| 27 #include "content/public/browser/interstitial_page_delegate.h" | 29 #include "content/public/browser/interstitial_page_delegate.h" |
| 28 #include "content/public/browser/navigation_details.h" | 30 #include "content/public/browser/navigation_details.h" |
| 29 #include "content/public/browser/navigation_entry.h" | 31 #include "content/public/browser/navigation_entry.h" |
| 30 #include "content/public/browser/page_navigator.h" | 32 #include "content/public/browser/page_navigator.h" |
| 31 #include "content/public/browser/render_frame_host.h" | 33 #include "content/public/browser/render_frame_host.h" |
| 32 #include "content/public/browser/render_process_host.h" | 34 #include "content/public/browser/render_process_host.h" |
| 33 #include "content/public/browser/render_view_host.h" | 35 #include "content/public/browser/render_view_host.h" |
| 34 #include "content/public/browser/user_metrics.h" | 36 #include "content/public/browser/user_metrics.h" |
| 35 #include "content/public/browser/web_contents.h" | 37 #include "content/public/browser/web_contents.h" |
| 36 #include "content/public/common/renderer_preferences.h" | 38 #include "content/public/common/renderer_preferences.h" |
| 37 #include "grit/browser_resources.h" | |
| 38 #include "grit/components_strings.h" | |
| 39 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
| 40 #include "ui/base/resource/resource_bundle.h" | 40 #include "ui/base/resource/resource_bundle.h" |
| 41 #include "ui/base/webui/jstemplate_builder.h" | 41 #include "ui/base/webui/jstemplate_builder.h" |
| 42 | 42 |
| 43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
| 44 #include "chrome/browser/ui/pdf/adobe_reader_info_win.h" | 44 #include "chrome/browser/ui/pdf/adobe_reader_info_win.h" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 using base::UserMetricsAction; | 47 using base::UserMetricsAction; |
| 48 using content::InterstitialPage; | 48 using content::InterstitialPage; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 MaybeShowOpenPDFInReaderPrompt(web_contents, reader_info); | 357 MaybeShowOpenPDFInReaderPrompt(web_contents, reader_info); |
| 358 return; | 358 return; |
| 359 } | 359 } |
| 360 GetAdobeReaderPluginInfoAsync( | 360 GetAdobeReaderPluginInfoAsync( |
| 361 profile, | 361 profile, |
| 362 base::Bind(&GotPluginsCallback, | 362 base::Bind(&GotPluginsCallback, |
| 363 web_contents->GetRenderProcessHost()->GetID(), | 363 web_contents->GetRenderProcessHost()->GetID(), |
| 364 web_contents->GetRenderViewHost()->GetRoutingID())); | 364 web_contents->GetRenderViewHost()->GetRoutingID())); |
| 365 #endif // defined(OS_WIN) | 365 #endif // defined(OS_WIN) |
| 366 } | 366 } |
| OLD | NEW |