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

Issue 4096008: Var serialization-related proxy stuff. This allows vars to be sent over IPC... (Closed)

Created:
10 years, 1 month ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
neb
CC:
chromium-reviews
Visibility:
Public.

Description

Var serialization-related proxy stuff. This allows vars to be sent over IPC and received with proper refcounting semantics. The basic design is that the SerializedVar is the thing actually handled by IPC. Then you use one of the many helper classes depending on whether you are sending or receiving and what the ownership semantics are. The helper classes, along with the VarSerialization interface makes the right thing happen for string conversion & refcounting. The VarSerialization class is implemented differently on the browser and plugin side and is where the differences in refcounting & strings are handled. This allows the rest of the code to be the same on both the plugin and browser side and allows vars to be sent back and forth. This patch references some files not in it like the dispatcher and various tracker classes. This is the cleanest cut I could make for a reasonably reviewable chunk. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65262

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1252 lines, -0 lines) Patch
A ppapi/proxy/host_var_serialization_rules.h View 1 chunk +51 lines, -0 lines 0 comments Download
A ppapi/proxy/host_var_serialization_rules.cc View 1 chunk +91 lines, -0 lines 0 comments Download
A ppapi/proxy/plugin_var_serialization_rules.h View 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A ppapi/proxy/plugin_var_serialization_rules.cc View 1 chunk +112 lines, -0 lines 0 comments Download
A ppapi/proxy/serialized_var.h View 1 2 3 4 5 6 1 chunk +404 lines, -0 lines 0 comments Download
A ppapi/proxy/serialized_var.cc View 1 2 3 4 1 chunk +465 lines, -0 lines 0 comments Download
A ppapi/proxy/var_serialization_rules.h View 3 4 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
brettw
10 years, 1 month ago (2010-10-28 23:00:27 UTC) #1
brettw
New snap up with VarSerialization renamed VarSerializationRules to be less confusing. I also renamed Browser* ...
10 years, 1 month ago (2010-11-03 02:26:23 UTC) #2
neb
This feels too complicated, I think we really must simplify it a bit. Let's start ...
10 years, 1 month ago (2010-11-03 04:41:44 UTC) #3
brettw
http://codereview.chromium.org/4096008/diff/29001/30006 File ppapi/proxy/serialized_var.h (right): http://codereview.chromium.org/4096008/diff/29001/30006#newcode66 ppapi/proxy/serialized_var.h:66: class SerializedVar { On 2010/11/03 04:41:44, neb wrote: > ...
10 years, 1 month ago (2010-11-03 05:44:24 UTC) #4
brettw
New snap up.
10 years, 1 month ago (2010-11-03 16:43:32 UTC) #5
brettw
New snap up with refptr.
10 years, 1 month ago (2010-11-04 20:55:09 UTC) #6
neb
10 years, 1 month ago (2010-11-05 21:13:50 UTC) #7
I still think that 1200 lines of code for this is a bit excessive. Let's talk
about it on Monday.

However, I think it is functionally correct, and a different implementation
won't change how this is used, so I'm perfectly fine with you checking it in and
then we can iterate on it later.

Powered by Google App Engine
This is Rietveld 408576698