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 #ifndef PPAPI_PROXY_PRINTING_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_PRINTING_RESOURCE_H_ |
6 #define PPAPI_PROXY_PRINTING_RESOURCE_H_ | 6 #define PPAPI_PROXY_PRINTING_RESOURCE_H_ |
7 | 7 |
8 #include "ppapi/proxy/connection.h" | 8 #include "ppapi/proxy/connection.h" |
9 #include "ppapi/proxy/plugin_resource.h" | 9 #include "ppapi/proxy/plugin_resource.h" |
10 #include "ppapi/proxy/ppapi_proxy_export.h" | 10 #include "ppapi/proxy/ppapi_proxy_export.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 // Resource overrides. | 25 // Resource overrides. |
26 virtual thunk::PPB_Printing_API* AsPPB_Printing_API() OVERRIDE; | 26 virtual thunk::PPB_Printing_API* AsPPB_Printing_API() OVERRIDE; |
27 | 27 |
28 // PPB_Printing_API. | 28 // PPB_Printing_API. |
29 virtual int32_t GetDefaultPrintSettings( | 29 virtual int32_t GetDefaultPrintSettings( |
30 PP_PrintSettings_Dev* print_settings, | 30 PP_PrintSettings_Dev* print_settings, |
31 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 31 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
32 | 32 |
33 private: | 33 private: |
34 // PluginResource override. | |
35 virtual void OnReplyReceived(const ResourceMessageReplyParams& params, | |
36 const IPC::Message& msg) OVERRIDE; | |
37 | |
38 void OnPluginMsgGetDefaultPrintSettingsReply( | 34 void OnPluginMsgGetDefaultPrintSettingsReply( |
| 35 PP_PrintSettings_Dev* settings_out, |
| 36 scoped_refptr<TrackedCallback> callback, |
39 const ResourceMessageReplyParams& params, | 37 const ResourceMessageReplyParams& params, |
40 const PP_PrintSettings_Dev& print_settings); | 38 const PP_PrintSettings_Dev& settings); |
41 | |
42 PP_PrintSettings_Dev* print_settings_; | |
43 | |
44 scoped_refptr<TrackedCallback> callback_; | |
45 | 39 |
46 DISALLOW_COPY_AND_ASSIGN(PrintingResource); | 40 DISALLOW_COPY_AND_ASSIGN(PrintingResource); |
47 }; | 41 }; |
48 | 42 |
49 } // namespace proxy | 43 } // namespace proxy |
50 } // namespace ppapi | 44 } // namespace ppapi |
51 | 45 |
52 #endif // PPAPI_PROXY_PRINTING_RESOURCE_H_ | 46 #endif // PPAPI_PROXY_PRINTING_RESOURCE_H_ |
OLD | NEW |