|
Pepper: Introduce ThreadAwareCallback.
Some PPB interfaces have methods that set a custom callback. Usually, the callback has to be called on the same thread as the one it was set on. ThreadAwareCallback keeps track of the target thread, and posts a task to run on it if requested from a different thread.
BUG=None
TEST=newly added unittests.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177319
Total comments: 36
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+650 lines, -68 lines) |
Patch |
 |
M |
chrome/browser/component_updater/test/component_installers_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_shared.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_tests.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/device_enumeration_resource_helper.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/proxy/device_enumeration_resource_helper.cc
|
View
|
1
2
3
4
|
5 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_globals.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_globals.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_proxy_test.h
|
View
|
1
2
3
4
5
|
6 chunks |
+73 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_proxy_test.cc
|
View
|
1
2
3
4
5
|
13 chunks |
+136 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_message_loop_proxy.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_var_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
8 chunks |
+7 lines, -21 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/DEPS
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppapi_globals.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppapi_globals.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/test_globals.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/test_globals.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
ppapi/shared_impl/thread_aware_callback.h
|
View
|
1
2
3
4
|
1 chunk |
+115 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/shared_impl/thread_aware_callback.cc
|
View
|
1
2
3
4
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/shared_impl/thread_aware_callback_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+218 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/host_globals.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/host_globals.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|