| Index: webkit/glue/plugins/pepper_plugin_module.cc
|
| ===================================================================
|
| --- webkit/glue/plugins/pepper_plugin_module.cc (revision 49795)
|
| +++ webkit/glue/plugins/pepper_plugin_module.cc (working copy)
|
| @@ -7,6 +7,7 @@
|
| #include <set>
|
|
|
| #include "base/command_line.h"
|
| +#include "base/message_loop.h"
|
| #include "base/message_loop_proxy.h"
|
| #include "base/logging.h"
|
| #include "base/scoped_ptr.h"
|
| @@ -110,8 +111,21 @@
|
| return context->ReadImageData(image, x, y);
|
| }
|
|
|
| +void RunMessageLoop() {
|
| + bool old_state = MessageLoop::current()->NestableTasksAllowed();
|
| + MessageLoop::current()->SetNestableTasksAllowed(true);
|
| + MessageLoop::current()->Run();
|
| + MessageLoop::current()->SetNestableTasksAllowed(old_state);
|
| +}
|
| +
|
| +void QuitMessageLoop() {
|
| + MessageLoop::current()->Quit();
|
| +}
|
| +
|
| const PPB_Testing testing_interface = {
|
| - &ReadImageData
|
| + &ReadImageData,
|
| + &RunMessageLoop,
|
| + &QuitMessageLoop,
|
| };
|
|
|
| // GetInterface ----------------------------------------------------------------
|
|
|