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/ppapi_proxy_test.h" | 5 #include "ppapi/proxy/ppapi_proxy_test.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 #include <tuple> | 8 #include <tuple> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/process/process_handle.h" | 14 #include "base/process/process_handle.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "ipc/ipc_sync_channel.h" | 18 #include "ipc/ipc_sync_channel.h" |
19 #include "ipc/message_filter.h" | 19 #include "ipc/message_filter.h" |
20 #include "ppapi/c/pp_errors.h" | 20 #include "ppapi/c/pp_errors.h" |
21 #include "ppapi/c/private/ppb_proxy_private.h" | 21 #include "ppapi/c/private/ppb_proxy_private.h" |
22 #include "ppapi/proxy/ppapi_messages.h" | 22 #include "ppapi/proxy/ppapi_messages.h" |
23 #include "ppapi/proxy/ppb_message_loop_proxy.h" | 23 #include "ppapi/proxy/ppb_message_loop_proxy.h" |
24 | 24 |
25 namespace ppapi { | 25 namespace ppapi { |
26 namespace proxy { | 26 namespace proxy { |
27 | 27 |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 void TwoWayTest::PostTaskOnRemoteHarness(const base::Closure& task) { | 579 void TwoWayTest::PostTaskOnRemoteHarness(const base::Closure& task) { |
580 base::WaitableEvent task_complete(true, false); | 580 base::WaitableEvent task_complete(true, false); |
581 plugin_thread_.task_runner()->PostTask( | 581 plugin_thread_.task_runner()->PostTask( |
582 FROM_HERE, base::Bind(&RunTaskOnRemoteHarness, task, &task_complete)); | 582 FROM_HERE, base::Bind(&RunTaskOnRemoteHarness, task, &task_complete)); |
583 task_complete.Wait(); | 583 task_complete.Wait(); |
584 } | 584 } |
585 | 585 |
586 | 586 |
587 } // namespace proxy | 587 } // namespace proxy |
588 } // namespace ppapi | 588 } // namespace ppapi |
OLD | NEW |