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 "ppapi/proxy/printing_resource.h" | 5 #include "ppapi/proxy/printing_resource.h" |
6 | 6 |
7 #include "ipc/ipc_message.h" | 7 #include "ipc/ipc_message.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/proxy/dispatch_reply_message.h" | 9 #include "ppapi/proxy/dispatch_reply_message.h" |
10 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 void PrintingResource::OnPluginMsgGetDefaultPrintSettingsReply( | 58 void PrintingResource::OnPluginMsgGetDefaultPrintSettingsReply( |
59 const ResourceMessageReplyParams& params, | 59 const ResourceMessageReplyParams& params, |
60 const PP_PrintSettings_Dev& settings) { | 60 const PP_PrintSettings_Dev& settings) { |
61 if (params.result() == PP_OK) | 61 if (params.result() == PP_OK) |
62 *print_settings_ = settings; | 62 *print_settings_ = settings; |
63 print_settings_ = NULL; | 63 print_settings_ = NULL; |
64 | 64 |
65 // Notify the plugin of the new data. | 65 // Notify the plugin of the new data. |
66 TrackedCallback::ClearAndRun(&callback_, params.result()); | 66 callback_->Run(params.result()); |
67 // DANGER: May delete |this|! | 67 // DANGER: May delete |this|! |
68 } | 68 } |
69 | 69 |
70 } // namespace proxy | 70 } // namespace proxy |
71 } // namespace ppapi | 71 } // namespace ppapi |
OLD | NEW |