Chromium Code Reviews| Index: ppapi/proxy/plugin_dispatcher.cc |
| =================================================================== |
| --- ppapi/proxy/plugin_dispatcher.cc (revision 86427) |
| +++ ppapi/proxy/plugin_dispatcher.cc (working copy) |
| @@ -20,6 +20,7 @@ |
| #include "ppapi/proxy/ppb_font_proxy.h" |
| #include "ppapi/proxy/ppp_class_proxy.h" |
| #include "ppapi/proxy/resource_creation_proxy.h" |
| +#include "ppapi/shared_impl/ppapi_preferences.h" |
|
yzshen1
2011/05/25 23:40:11
[minor]
You may not need it since it has been incl
|
| #include "ppapi/shared_impl/tracker_base.h" |
| #if defined(OS_POSIX) |
| @@ -122,6 +123,7 @@ |
| bool handled = true; |
| IPC_BEGIN_MESSAGE_MAP(PluginDispatcher, msg) |
| IPC_MESSAGE_HANDLER(PpapiMsg_SupportsInterface, OnMsgSupportsInterface) |
| + IPC_MESSAGE_HANDLER(PpapiMsg_SetPreferences, OnMsgSetPreferences) |
| IPC_END_MESSAGE_MAP() |
| return handled; |
| } |
| @@ -274,6 +276,10 @@ |
| *result = true; |
| } |
| +void PluginDispatcher::OnMsgSetPreferences(const ::ppapi::Preferences& prefs) { |
| + preferences_ = prefs; |
| +} |
| + |
| } // namespace proxy |
| } // namespace pp |