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
3 // found in the LICENSE file.
5 // Multiply-included file, no traditional include guard.
8 #include "content/public/common/common_param_traits.h"
9 #include "content/public/common/common_param_traits_macros.h"
10 #include "content/public/common/referrer.h"
11 #include "ipc/ipc_message_macros.h"
14 #define IPC_MESSAGE_START PDFMsgStart
16 // Updates the content restrictions, i.e. to disable print/copy.
17 IPC_MESSAGE_ROUTED1(PDFHostMsg_PDFUpdateContentRestrictions
,
18 int /* restrictions */)
20 // The currently displayed PDF has an unsupported feature.
21 IPC_MESSAGE_ROUTED0(PDFHostMsg_PDFHasUnsupportedFeature
)
23 // Brings up SaveAs... dialog to save specified URL.
24 IPC_MESSAGE_ROUTED2(PDFHostMsg_PDFSaveURLAs
,
26 content::Referrer
/* referrer */)
28 // Brings up a Password... dialog for protected documents.
29 IPC_SYNC_MESSAGE_ROUTED1_1(PDFHostMsg_PDFModalPromptForPassword
,
30 std::string
/* prompt */,
31 std::string
/* actual_value */)