OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chrome_pdf_web_contents_helper_client.h" | 5 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" |
6 | 6 |
7 #include "chrome/browser/download/download_stats.h" | 7 #include "chrome/browser/download/download_stats.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 void ChromePDFWebContentsHelperClient::OnPDFHasUnsupportedFeature( | 64 void ChromePDFWebContentsHelperClient::OnPDFHasUnsupportedFeature( |
65 content::WebContents* contents) { | 65 content::WebContents* contents) { |
66 PDFHasUnsupportedFeature(GetWebContentsToUse(contents)); | 66 PDFHasUnsupportedFeature(GetWebContentsToUse(contents)); |
67 } | 67 } |
68 | 68 |
69 void ChromePDFWebContentsHelperClient::OnSaveURL( | 69 void ChromePDFWebContentsHelperClient::OnSaveURL( |
70 content::WebContents* contents) { | 70 content::WebContents* contents) { |
71 RecordDownloadSource(DOWNLOAD_INITIATED_BY_PDF_SAVE); | 71 RecordDownloadSource(DOWNLOAD_INITIATED_BY_PDF_SAVE); |
72 } | 72 } |
73 | |
74 void ChromePDFWebContentsHelperClient::OnShowPDFPasswordDialog( | |
75 content::WebContents* contents, | |
76 const base::string16& prompt, | |
77 const pdf::PasswordDialogClosedCallback& callback) { | |
78 ShowPDFPasswordDialog(contents, prompt, callback); | |
79 } | |
OLD | NEW |