summaryrefslogtreecommitdiffstats
path: root/components/pdf/browser
diff options
context:
space:
mode:
authorraymes <raymes@chromium.org>2015-05-06 20:44:37 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-07 03:45:53 +0000
commitec40c91c3f90649a4e7a29a459839d1fb5a46e1a (patch)
tree0a8c2fbc90f6dae551760631a6331ce192b61ec1 /components/pdf/browser
parentcfae748cda0ab6830022fd99159c6e494e271e0f (diff)
downloadchromium_src-ec40c91c3f90649a4e7a29a459839d1fb5a46e1a.zip
chromium_src-ec40c91c3f90649a4e7a29a459839d1fb5a46e1a.tar.gz
chromium_src-ec40c91c3f90649a4e7a29a459839d1fb5a46e1a.tar.bz2
Remove the unused parts of PPB_PDF
These parts were only used by the in-process viewer. BUG=303491 TBR=jam@chromium.org for components/resources/ Review URL: https://codereview.chromium.org/1125113002 Cr-Commit-Position: refs/heads/master@{#328695}
Diffstat (limited to 'components/pdf/browser')
-rw-r--r--components/pdf/browser/pdf_web_contents_helper.cc22
-rw-r--r--components/pdf/browser/pdf_web_contents_helper.h5
-rw-r--r--components/pdf/browser/pdf_web_contents_helper_client.h9
3 files changed, 0 insertions, 36 deletions
diff --git a/components/pdf/browser/pdf_web_contents_helper.cc b/components/pdf/browser/pdf_web_contents_helper.cc
index 59a17a8..b1b8cd1 100644
--- a/components/pdf/browser/pdf_web_contents_helper.cc
+++ b/components/pdf/browser/pdf_web_contents_helper.cc
@@ -48,8 +48,6 @@ bool PDFWebContentsHelper::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(PDFHostMsg_PDFSaveURLAs, OnSaveURLAs)
IPC_MESSAGE_HANDLER(PDFHostMsg_PDFUpdateContentRestrictions,
OnUpdateContentRestrictions)
- IPC_MESSAGE_HANDLER_DELAY_REPLY(PDFHostMsg_PDFModalPromptForPassword,
- OnModalPromptForPassword)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -84,24 +82,4 @@ void PDFWebContentsHelper::OnUpdateContentRestrictions(
client_->UpdateContentRestrictions(web_contents(), content_restrictions);
}
-void PDFWebContentsHelper::OnModalPromptForPasswordClosed(
- IPC::Message* reply_message,
- bool success,
- const base::string16& actual_value) {
- PDFHostMsg_PDFModalPromptForPassword::WriteReplyParams(
- reply_message, base::UTF16ToUTF8(actual_value));
- Send(reply_message);
-}
-
-void PDFWebContentsHelper::OnModalPromptForPassword(
- const std::string& prompt,
- IPC::Message* reply_message) {
- base::Callback<void(bool, const base::string16&)> callback =
- base::Bind(&PDFWebContentsHelper::OnModalPromptForPasswordClosed,
- base::Unretained(this),
- reply_message);
- client_->OnShowPDFPasswordDialog(
- web_contents(), base::UTF8ToUTF16(prompt), callback);
-}
-
} // namespace pdf
diff --git a/components/pdf/browser/pdf_web_contents_helper.h b/components/pdf/browser/pdf_web_contents_helper.h
index 73f8453..8d805f0 100644
--- a/components/pdf/browser/pdf_web_contents_helper.h
+++ b/components/pdf/browser/pdf_web_contents_helper.h
@@ -51,16 +51,11 @@ class PDFWebContentsHelper
// Internal helpers ----------------------------------------------------------
void UpdateLocationBar();
- void OnModalPromptForPasswordClosed(IPC::Message* reply_message,
- bool success,
- const base::string16& actual_value);
// Message handlers.
void OnHasUnsupportedFeature();
void OnSaveURLAs(const GURL& url, const content::Referrer& referrer);
void OnUpdateContentRestrictions(int content_restrictions);
- void OnModalPromptForPassword(const std::string& prompt,
- IPC::Message* reply_message);
// The model for the confirmation prompt to open a PDF in Adobe Reader.
scoped_ptr<OpenPDFInReaderPromptClient> open_in_reader_prompt_;
diff --git a/components/pdf/browser/pdf_web_contents_helper_client.h b/components/pdf/browser/pdf_web_contents_helper_client.h
index 17dfb4e..eb983bf 100644
--- a/components/pdf/browser/pdf_web_contents_helper_client.h
+++ b/components/pdf/browser/pdf_web_contents_helper_client.h
@@ -15,10 +15,6 @@ class WebContents;
namespace pdf {
-typedef base::Callback<
- void(bool /* success */, const base::string16& /* password */)>
- PasswordDialogClosedCallback;
-
class PDFWebContentsHelperClient {
public:
virtual ~PDFWebContentsHelperClient() {}
@@ -31,11 +27,6 @@ class PDFWebContentsHelperClient {
virtual void OnPDFHasUnsupportedFeature(content::WebContents* contents) = 0;
virtual void OnSaveURL(content::WebContents* contents) = 0;
-
- virtual void OnShowPDFPasswordDialog(
- content::WebContents* contents,
- const base::string16& prompt,
- const PasswordDialogClosedCallback& callback) = 0;
};
} // namespace pdf