| Index: pdf/out_of_process_instance.cc
|
| diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
|
| index 92ef55003b3f22636b232e7a9df87466d8441a10..146c8b5c3a520e792b51524f6d6d7d65562b9858 100644
|
| --- a/pdf/out_of_process_instance.cc
|
| +++ b/pdf/out_of_process_instance.cc
|
| @@ -85,6 +85,8 @@ const char kJSGetPasswordCompleteType[] = "getPasswordComplete";
|
| const char kJSPassword[] = "password";
|
| // Print (Page -> Plugin)
|
| const char kJSPrintType[] = "print";
|
| +// Save (Page -> Plugin)
|
| +const char kJSSaveType[] = "save";
|
| // Go to page (Plugin -> Page)
|
| const char kJSGoToPageType[] = "goToPage";
|
| const char kJSPageNumber[] = "page";
|
| @@ -391,6 +393,8 @@ void OutOfProcessInstance::HandleMessage(const pp::Var& message) {
|
| }
|
| } else if (type == kJSPrintType) {
|
| Print();
|
| + } else if (type == kJSSaveType) {
|
| + pp::PDF::SaveAs(this);
|
| } else if (type == kJSRotateClockwiseType) {
|
| RotateClockwise();
|
| } else if (type == kJSRotateCounterclockwiseType) {
|
|
|