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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "base/version.h" | |
13 #include "chrome/browser/lifetime/application_lifetime.h" | 12 #include "chrome/browser/lifetime/application_lifetime.h" |
14 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 13 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
15 #include "chrome/browser/plugins/plugin_finder.h" | 14 #include "chrome/browser/plugins/plugin_finder.h" |
16 #include "chrome/browser/plugins/plugin_metadata.h" | 15 #include "chrome/browser/plugins/plugin_metadata.h" |
17 #include "chrome/browser/plugins/plugin_prefs.h" | 16 #include "chrome/browser/plugins/plugin_prefs.h" |
18 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/renderer_preferences_util.h" | 18 #include "chrome/browser/renderer_preferences_util.h" |
20 #include "chrome/browser/tab_contents/tab_util.h" | 19 #include "chrome/browser/tab_contents/tab_util.h" |
21 #include "chrome/browser/ui/pdf/open_pdf_in_reader_prompt_delegate.h" | 20 #include "chrome/browser/ui/pdf/open_pdf_in_reader_prompt_delegate.h" |
22 #include "chrome/browser/ui/pdf/pdf_tab_helper.h" | 21 #include "chrome/browser/ui/pdf/pdf_tab_helper.h" |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 | 401 |
403 void PDFHasUnsupportedFeature(content::WebContents* web_contents) { | 402 void PDFHasUnsupportedFeature(content::WebContents* web_contents) { |
404 #if defined(OS_WIN) && defined(ENABLE_PLUGIN_INSTALLATION) | 403 #if defined(OS_WIN) && defined(ENABLE_PLUGIN_INSTALLATION) |
405 // Only works for Windows for now. For Mac, we'll have to launch the file | 404 // Only works for Windows for now. For Mac, we'll have to launch the file |
406 // externally since Adobe Reader doesn't work inside Chrome. | 405 // externally since Adobe Reader doesn't work inside Chrome. |
407 PluginService::GetInstance()->GetPlugins(base::Bind(&GotPluginsCallback, | 406 PluginService::GetInstance()->GetPlugins(base::Bind(&GotPluginsCallback, |
408 web_contents->GetRenderProcessHost()->GetID(), | 407 web_contents->GetRenderProcessHost()->GetID(), |
409 web_contents->GetRenderViewHost()->GetRoutingID())); | 408 web_contents->GetRenderViewHost()->GetRoutingID())); |
410 #endif | 409 #endif |
411 } | 410 } |
OLD | NEW |