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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "base/version.h" | 10 #include "base/version.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
23 #include "content/public/browser/interstitial_page.h" | 23 #include "content/public/browser/interstitial_page.h" |
24 #include "content/public/browser/interstitial_page_delegate.h" | 24 #include "content/public/browser/interstitial_page_delegate.h" |
25 #include "content/public/browser/plugin_service.h" | 25 #include "content/public/browser/plugin_service.h" |
26 #include "content/public/browser/render_process_host.h" | 26 #include "content/public/browser/render_process_host.h" |
27 #include "content/public/browser/render_view_host.h" | 27 #include "content/public/browser/render_view_host.h" |
28 #include "content/public/browser/user_metrics.h" | 28 #include "content/public/browser/user_metrics.h" |
29 #include "content/public/browser/web_contents.h" | 29 #include "content/public/browser/web_contents.h" |
30 #include "grit/browser_resources.h" | 30 #include "grit/browser_resources.h" |
31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
32 #include "grit/theme_resources_standard.h" | 32 #include "grit/theme_resources.h" |
33 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
34 #include "ui/base/layout.h" | 34 #include "ui/base/layout.h" |
35 #include "ui/base/resource/resource_bundle.h" | 35 #include "ui/base/resource/resource_bundle.h" |
36 #include "ui/gfx/image/image.h" | 36 #include "ui/gfx/image/image.h" |
37 #include "webkit/plugins/npapi/plugin_group.h" | 37 #include "webkit/plugins/npapi/plugin_group.h" |
38 | 38 |
39 #if defined(ENABLE_PLUGIN_INSTALLATION) | 39 #if defined(ENABLE_PLUGIN_INSTALLATION) |
40 #include "chrome/browser/plugin_finder.h" | 40 #include "chrome/browser/plugin_finder.h" |
41 #include "chrome/browser/plugin_installer.h" | 41 #include "chrome/browser/plugin_installer.h" |
42 #else | 42 #else |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 | 433 |
434 void PDFHasUnsupportedFeature(TabContents* tab) { | 434 void PDFHasUnsupportedFeature(TabContents* tab) { |
435 #if defined(OS_WIN) && defined(ENABLE_PLUGIN_INSTALLATION) | 435 #if defined(OS_WIN) && defined(ENABLE_PLUGIN_INSTALLATION) |
436 // Only works for Windows for now. For Mac, we'll have to launch the file | 436 // Only works for Windows for now. For Mac, we'll have to launch the file |
437 // externally since Adobe Reader doesn't work inside Chrome. | 437 // externally since Adobe Reader doesn't work inside Chrome. |
438 PluginFinder::Get(base::Bind(&GotPluginFinderCallback, | 438 PluginFinder::Get(base::Bind(&GotPluginFinderCallback, |
439 tab->web_contents()->GetRenderProcessHost()->GetID(), | 439 tab->web_contents()->GetRenderProcessHost()->GetID(), |
440 tab->web_contents()->GetRenderViewHost()->GetRoutingID())); | 440 tab->web_contents()->GetRenderViewHost()->GetRoutingID())); |
441 #endif | 441 #endif |
442 } | 442 } |
OLD | NEW |