Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Issue 9034035: Make it possible to have 1 PpapiGlobals per thread. Update unit tests. (Closed)

Created:
8 years, 11 months ago by dmichael (off chromium)
Modified:
8 years, 11 months ago
Reviewers:
brettw, piman
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make it possible to have 1 PpapiGlobals per thread. Update unit tests. This allows us to distinguish trackers in the unit tests, instead of all vars/resources going in 1 tracker. This should also allow us to unit-test PPB proxies. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117399

Patch Set 1 #

Patch Set 2 : Remove perftest stuff from this CL #

Total comments: 3

Patch Set 3 : Fix test. Cleanup. Move proxy lock to globals. #

Total comments: 6

Patch Set 4 : Oops, forgot to save host_globals.h. #

Patch Set 5 : remove SHARED; contaminated from another CL #

Total comments: 8

Patch Set 6 : review comments, shared fixes #

Total comments: 2

Patch Set 7 : Review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -198 lines) Patch
M ppapi/proxy/host_dispatcher.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ppapi/proxy/host_var_serialization_rules.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M ppapi/proxy/host_var_serialization_rules.cc View 1 2 3 4 5 4 chunks +18 lines, -18 lines 0 comments Download
M ppapi/proxy/plugin_globals.h View 1 2 3 4 5 6 4 chunks +11 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_globals.cc View 1 2 3 4 5 6 2 chunks +20 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_resource_tracker.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M ppapi/proxy/plugin_resource_tracker.cc View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/plugin_var_tracker.h View 1 chunk +0 lines, -6 lines 0 comments Download
M ppapi/proxy/plugin_var_tracker.cc View 1 1 chunk +0 lines, -15 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.h View 1 2 3 4 5 5 chunks +11 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 2 7 chunks +11 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_var_unittest.cc View 1 2 8 chunks +21 lines, -7 lines 0 comments Download
M ppapi/proxy/ppp_instance_private_proxy_unittest.cc View 1 2 3 4 5 7 chunks +54 lines, -61 lines 0 comments Download
M ppapi/proxy/ppp_instance_proxy_unittest.cc View 1 2 3 4 5 5 chunks +20 lines, -5 lines 0 comments Download
M ppapi/proxy/ppp_messaging_proxy_unittest.cc View 2 chunks +15 lines, -33 lines 0 comments Download
M ppapi/proxy/serialized_var_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppapi_globals.h View 1 2 3 4 5 6 3 chunks +40 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppapi_globals.cc View 1 2 3 4 5 6 2 chunks +32 lines, -1 line 0 comments Download
M ppapi/shared_impl/proxy_lock.h View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M ppapi/shared_impl/proxy_lock.cc View 1 2 3 4 5 1 chunk +7 lines, -16 lines 0 comments Download
M ppapi/shared_impl/test_globals.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/shared_impl/test_globals.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M ppapi/shared_impl/var_tracker.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ppapi/shared_impl/var_tracker.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/host_globals.h View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/host_globals.cc View 1 2 3 4 5 6 3 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
dmichael (off chromium)
This isn't 100% ready for review, but I wanted to get some feedback on the ...
8 years, 11 months ago (2012-01-03 23:27:44 UTC) #1
brettw
I don't understand what you mean by "distinguish trackers for the unit tests"
8 years, 11 months ago (2012-01-03 23:47:40 UTC) #2
dmichael (off chromium)
I mean when you expect a certain var in the host tracker, you talk to ...
8 years, 11 months ago (2012-01-04 00:00:40 UTC) #3
dmichael (off chromium)
Now that I'm not typing on a phone, let me clarify. This CL adds the ...
8 years, 11 months ago (2012-01-04 03:41:25 UTC) #4
dmichael (off chromium)
brettw: if you have time. piman: just FYI http://codereview.chromium.org/9034035/diff/8001/ppapi/proxy/ppp_instance_private_proxy_unittest.cc File ppapi/proxy/ppp_instance_private_proxy_unittest.cc (right): http://codereview.chromium.org/9034035/diff/8001/ppapi/proxy/ppp_instance_private_proxy_unittest.cc#newcode99 ppapi/proxy/ppp_instance_private_proxy_unittest.cc:99: PPB_Var_Shared::GetVarInterface1_0()->VarToUtf8, ...
8 years, 11 months ago (2012-01-05 22:50:51 UTC) #5
brettw
http://codereview.chromium.org/9034035/diff/8001/ppapi/proxy/ppp_instance_private_proxy_unittest.cc File ppapi/proxy/ppp_instance_private_proxy_unittest.cc (right): http://codereview.chromium.org/9034035/diff/8001/ppapi/proxy/ppp_instance_private_proxy_unittest.cc#newcode21 ppapi/proxy/ppp_instance_private_proxy_unittest.cc:21: PP_Var GetPPVarNoAddRef(Var* var) { Blank line above this. http://codereview.chromium.org/9034035/diff/8001/ppapi/shared_impl/proxy_lock.cc ...
8 years, 11 months ago (2012-01-05 23:41:20 UTC) #6
dmichael (off chromium)
new snap up. http://codereview.chromium.org/9034035/diff/8001/ppapi/proxy/ppp_instance_private_proxy_unittest.cc File ppapi/proxy/ppp_instance_private_proxy_unittest.cc (right): http://codereview.chromium.org/9034035/diff/8001/ppapi/proxy/ppp_instance_private_proxy_unittest.cc#newcode21 ppapi/proxy/ppp_instance_private_proxy_unittest.cc:21: PP_Var GetPPVarNoAddRef(Var* var) { On 2012/01/05 ...
8 years, 11 months ago (2012-01-06 18:18:45 UTC) #7
dmichael (off chromium)
piman, could you take a look since brettw's not available?
8 years, 11 months ago (2012-01-11 18:29:30 UTC) #8
piman
http://codereview.chromium.org/9034035/diff/31002/ppapi/proxy/plugin_globals.h File ppapi/proxy/plugin_globals.h (right): http://codereview.chromium.org/9034035/diff/31002/ppapi/proxy/plugin_globals.h#newcode33 ppapi/proxy/plugin_globals.h:33: return static_cast<PluginGlobals*>(PpapiGlobals::Get()); Could we add a way to DCHECK ...
8 years, 11 months ago (2012-01-11 19:23:25 UTC) #9
dmichael (off chromium)
http://codereview.chromium.org/9034035/diff/31002/ppapi/proxy/plugin_globals.h File ppapi/proxy/plugin_globals.h (right): http://codereview.chromium.org/9034035/diff/31002/ppapi/proxy/plugin_globals.h#newcode33 ppapi/proxy/plugin_globals.h:33: return static_cast<PluginGlobals*>(PpapiGlobals::Get()); On 2012/01/11 19:23:25, piman wrote: > Could ...
8 years, 11 months ago (2012-01-12 04:42:23 UTC) #10
piman
lgtm
8 years, 11 months ago (2012-01-12 06:36:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/9034035/37002
8 years, 11 months ago (2012-01-12 07:00:36 UTC) #12
commit-bot: I haz the power
8 years, 11 months ago (2012-01-12 08:15:42 UTC) #13
Change committed as 117399

Powered by Google App Engine
This is Rietveld 408576698