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

Issue 9316123: Remove special handling for strings in var serialization. (Closed)

Created:
8 years, 10 months ago by brettw
Modified:
8 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Remove special handling for strings in var serialization. Previously we had to have a lot of weird string handling because strings needed a PP_Module to be constructed, and because they had different methods for being created in the host and the plugin processes. We've removed all of these limitations, so now we can just delete the whole mess. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120724

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -232 lines) Patch
M ppapi/proxy/host_var_serialization_rules.h View 1 chunk +2 lines, -10 lines 0 comments Download
M ppapi/proxy/host_var_serialization_rules.cc View 2 chunks +3 lines, -36 lines 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.h View 1 chunk +3 lines, -8 lines 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.cc View 4 chunks +3 lines, -36 lines 0 comments Download
M ppapi/proxy/serialized_var.h View 3 chunks +4 lines, -30 lines 0 comments Download
M ppapi/proxy/serialized_var.cc View 16 chunks +22 lines, -67 lines 2 comments Download
M ppapi/proxy/serialized_var_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/var_serialization_rules.h View 3 chunks +13 lines, -24 lines 0 comments Download
M ppapi/shared_impl/var.h View 2 chunks +7 lines, -2 lines 0 comments Download
M ppapi/shared_impl/var.cc View 4 chunks +10 lines, -16 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
brettw
I saw your string optimization go by, which is great, but remembered I keep meaning ...
8 years, 10 months ago (2012-02-06 04:16:38 UTC) #1
dmichael (off chromium)
Ugh, yeah, I realized it was ripe for simplifying as soon as I started on ...
8 years, 10 months ago (2012-02-06 17:07:28 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9316123/1
8 years, 10 months ago (2012-02-06 17:55:32 UTC) #3
commit-bot: I haz the power
Try job failure for 9316123-1 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 10 months ago (2012-02-06 20:01:42 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9316123/1
8 years, 10 months ago (2012-02-06 22:00:02 UTC) #5
commit-bot: I haz the power
Try job failure for 9316123-1 (retry) (previous was lost) on mac_rel for steps "browser_tests, ui_tests". ...
8 years, 10 months ago (2012-02-07 01:48:35 UTC) #6
brettw
> FWIW, you can double-check with ppapi_perftests that this doesn't hurt > performance. I don't ...
8 years, 10 months ago (2012-02-07 05:36:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9316123/1
8 years, 10 months ago (2012-02-07 05:38:36 UTC) #8
commit-bot: I haz the power
Can't apply patch for file ppapi/proxy/host_var_serialization_rules.cc. While running patch -p1 --forward --force; patching file ppapi/proxy/host_var_serialization_rules.cc ...
8 years, 10 months ago (2012-02-07 05:38:40 UTC) #9
dmichael (off chromium)
https://chromiumcodereview.appspot.com/9316123/diff/1/ppapi/proxy/serialized_var.cc File ppapi/proxy/serialized_var.cc (right): https://chromiumcodereview.appspot.com/9316123/diff/1/ppapi/proxy/serialized_var.cc#newcode176 ppapi/proxy/serialized_var.cc:176: var_ = StringVar::SwapValidatedUTF8StringIntoPPVar(&string_from_ipc); It just occurred to me that ...
8 years, 10 months ago (2012-02-07 16:35:30 UTC) #10
brettw
https://chromiumcodereview.appspot.com/9316123/diff/1/ppapi/proxy/serialized_var.cc File ppapi/proxy/serialized_var.cc (right): https://chromiumcodereview.appspot.com/9316123/diff/1/ppapi/proxy/serialized_var.cc#newcode176 ppapi/proxy/serialized_var.cc:176: var_ = StringVar::SwapValidatedUTF8StringIntoPPVar(&string_from_ipc); The validating we do is mostly ...
8 years, 10 months ago (2012-02-07 16:56:31 UTC) #11
dmichael (off chromium)
8 years, 10 months ago (2012-02-07 16:59:03 UTC) #12
lgtm

Powered by Google App Engine
This is Rietveld 408576698