|
Refactor the way singleton-style resources are exposed via PPB_Instance
Currently a lot of boilerplate needs to be added everytime we add a new singleton style resource and as we add more of them this will accumulate. This patch reduces the amount of code needed by exposing a GetSingletonResource function in PPB_Instance_API which takes an ID specifying what type of resource is needed. A new Enter type, EnterInstanceAPI, is provided which is templated on the singleton API you want access to.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170221
Total comments: 8
Total comments: 6
Total comments: 6
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+189 lines, -136 lines) |
Patch |
 |
M |
ppapi/proxy/gamepad_resource.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/gamepad_resource.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_dispatcher.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_instance_proxy.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_instance_proxy.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+32 lines, -48 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/resource.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/shared_impl/singleton_resource_id.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/enter.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
6 chunks |
+47 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_flash_clipboard_api.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_flash_clipboard_thunk.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_flash_functions_api.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_gamepad_api.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_gamepad_thunk.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_instance_api.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+9 lines, -12 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_plugin_instance.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
4 chunks |
+22 lines, -15 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|