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

Issue 6995083: Proxy PPB_Var, fix o-o-p string var id tracking. (Closed)

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

Description

Proxy PPB_Var, fix o-o-p string var id tracking. Note this doesn't need to use IPC at all, so it's a little strange. Made test for pp::Var/PPB_Var that does only strings (copied from test_var_deprecated.cc). Fixed string var tracking so test can pass out-of-process (aside from invalid UTF8 checking, which is still not implemented o-o-p). BUG=85236 TEST=test_var.cc, run tests manually out-of-process. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88384

Patch Set 1 : updated resource tracker unit test #

Total comments: 8

Patch Set 2 : Fixes based on piman's review comments. #

Patch Set 3 : Updated copyright header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -70 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.cc View 2 chunks +15 lines, -6 lines 0 comments Download
M ppapi/proxy/plugin_var_tracker.h View 1 2 5 chunks +32 lines, -7 lines 0 comments Download
M ppapi/proxy/plugin_var_tracker.cc View 6 chunks +43 lines, -38 lines 0 comments Download
M ppapi/proxy/plugin_var_tracker_unittest.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_var_deprecated_proxy.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
A ppapi/proxy/ppb_var_proxy.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_var_proxy.cc View 1 chunk +85 lines, -0 lines 0 comments Download
A ppapi/tests/test_var.h View 1 chunk +38 lines, -0 lines 0 comments Download
A ppapi/tests/test_var.cc View 1 1 chunk +247 lines, -0 lines 0 comments Download
M ppapi/tests/test_var_deprecated.cc View 1 5 chunks +6 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
dmichael (off chromium)
9 years, 6 months ago (2011-06-08 18:47:34 UTC) #1
piman
LGTM, couple of nits. Adding Brett in CC because he wrote most of this for ...
9 years, 6 months ago (2011-06-08 19:31:29 UTC) #2
dmichael (off chromium)
Thanks for the review. Think it's okay to land prior to brettw having a chance ...
9 years, 6 months ago (2011-06-08 20:09:39 UTC) #3
piman
9 years, 6 months ago (2011-06-08 20:12:04 UTC) #4
On Wed, Jun 8, 2011 at 1:09 PM, <dmichael@chromium.org> wrote:

> Thanks for the review. Think it's okay to land prior to brettw having a
> chance
> to look at it?  I was afraid this might block you porting to
> InstancePrivate/VarPrivate.


Yes, go ahead. I just cc: brett if he wants to do a post commit review.

>
>
>
>
> http://codereview.chromium.org/6995083/diff/10001/ppapi/proxy/ppb_var_proxy.h
> File ppapi/proxy/ppb_var_proxy.h (right):
>
>
>
http://codereview.chromium.org/6995083/diff/10001/ppapi/proxy/ppb_var_proxy.h...
> ppapi/proxy/ppb_var_proxy.h:24: return reinterpret_cast<const
> PPB_Var*>(target_interface());
> On 2011/06/08 19:31:29, piman wrote:
>
>> nit: static_cast ?
>>
> Done here and in ppb_var_deprecated_proxy.h.
>
>
> http://codereview.chromium.org/6995083/diff/10001/ppapi/tests/test_var.cc
> File ppapi/tests/test_var.cc (right):
>
>
>
http://codereview.chromium.org/6995083/diff/10001/ppapi/tests/test_var.cc#new...
> ppapi/tests/test_var.cc:28: var_interface_ = reinterpret_cast<PPB_Var
> const*>(
> On 2011/06/08 19:31:29, piman wrote:
>
>> nit: static_cast ? Also, for consistency, we use "const PP_Var*"
>>
> across the
>
>> board.
>>
> Done (here and in test_var_deprecated.cc)
>
>
>
>
http://codereview.chromium.org/6995083/diff/10001/ppapi/tests/test_var.cc#new...
> ppapi/tests/test_var.cc:48: const char kStr[kStrLen + 1] = "Hello";
> On 2011/06/08 19:31:29, piman wrote:
>
>> nit: you can declare kStr as a char[] and deduce kStrLen from
>> array_size(kStr)-1.
>>
> Done (here and in test_var_deprecated.cc)
>
>
>
>
http://codereview.chromium.org/6995083/diff/10001/ppapi/tests/test_var.cc#new...
> ppapi/tests/test_var.cc:106: return "Non-UTF8 string permitted.";
> On 2011/06/08 19:31:29, piman wrote:
>
>> error message is slightly confusing. Mind changing it to "Non-UTF8
>>
> strings
>
>> should not be permitted." ?
>>
> Since it's failure output, I think it should be phrased in terms of the
> unexpected behavior.  How does "Non-UTF8 string was permitted
> erroneously." sound?
>

Sounds fine.


>
> Done here and in test_var_deprecated.cc
>
>
> http://codereview.chromium.org/6995083/
>

Powered by Google App Engine
This is Rietveld 408576698