|
Implement an IsAllowed function in the pepper PPB_Broker_Trusted API
Flash sometimes needs to synchronously know if it can launch the broker, otherwise it will try to launch the broker when it shouldn't, and end up popping an infobar. This adds an IsAllowed function to synchronously test whether the broker is allowed to launch without popping the infobar.
Note that the document URL of the plugin instance is needed in order to check the broker permissions in the browser process. This is only available in the renderer process. In order to avoid an extra hop to the renderer process just to get this URL, it is sent to the browser (with the render view ID) upon initialization of the instance when the instance is registered with the browser process.
BUG= 163248
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172104
Total comments: 26
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+609 lines, -99 lines) |
Patch |
 |
M |
chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.cc
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/renderer_host/pepper/pepper_broker_host.h
|
View
|
1
2
3
4
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/renderer_host/pepper/pepper_broker_host.cc
|
View
|
1
2
3
4
|
1 chunk |
+118 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/ppapi/ppapi_browsertest.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/test/ppapi/ppapi_test.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/ppapi_plugin_process_host.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/ppapi_plugin_process_host.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/pepper/browser_ppapi_host_impl.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+28 lines, -17 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_message_filter.h
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_message_filter.cc
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
A |
content/common/pepper_renderer_instance_data.h
|
View
|
1
2
3
4
5
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/common/pepper_renderer_instance_data.cc
|
View
|
1
2
3
4
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/view_messages.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+21 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/content_common.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/browser_ppapi_host.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_delegate_impl.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/api/trusted/ppb_broker_trusted.idl
|
View
|
|
2 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/c/trusted/ppb_broker_trusted.h
|
View
|
|
4 chunks |
+22 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_proxy.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/proxy/broker_resource.h
|
View
|
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/proxy/broker_resource.cc
|
View
|
1
2
3
4
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_messages.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_instance_proxy.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/resource.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/singleton_resource_id.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/tests/test_broker.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/tests/test_broker.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/interfaces_ppb_private.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_broker_api.h
|
View
|
1
2
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_broker_thunk.cc
|
View
|
1
2
|
1 chunk |
+29 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/host_var_tracker_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/plugin_module.h
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/plugin_module.cc
|
View
|
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_plugin_instance.h
|
View
|
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+13 lines, -10 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_webplugin_impl.cc
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|