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

Issue 12387073: Add PPB_VarDictionary_Dev support - part 1. (Closed)

Created:
7 years, 9 months ago by yzshen1
Modified:
7 years, 9 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add PPB_VarDictionary_Dev support - part 1. It includes: - C/C++ interface implementation. - Conversions between PP_Var and base::Value. It dones't include: - Serialization code for IPC. BUG=None TEST=a new unittest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188805

Patch Set 1 : Use correct base branch. #

Total comments: 30

Patch Set 2 : changes in response to David's suggestions #

Total comments: 6

Patch Set 3 : sync #

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : . #

Patch Set 6 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1322 lines, -6 lines) Patch
A ppapi/api/dev/ppb_var_dictionary_dev.idl View 1 1 chunk +89 lines, -0 lines 0 comments Download
A ppapi/c/dev/ppb_var_dictionary_dev.h View 1 1 chunk +106 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/var_dictionary_dev.h View 1 1 chunk +87 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/var_dictionary_dev.cc View 1 chunk +97 lines, -0 lines 0 comments Download
M ppapi/cpp/var.h View 1 2 1 chunk +11 lines, -1 line 0 comments Download
M ppapi/cpp/var.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 6 chunks +58 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/serialized_var.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A ppapi/shared_impl/dictionary_var.h View 1 1 chunk +63 lines, -0 lines 0 comments Download
A ppapi/shared_impl/dictionary_var.cc View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
M ppapi/shared_impl/scoped_pp_var.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ppapi/shared_impl/var.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/shared_impl/var.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M ppapi/shared_impl/var_tracker.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A ppapi/shared_impl/var_value_conversions.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A ppapi/shared_impl/var_value_conversions.cc View 1 2 3 1 chunk +298 lines, -0 lines 0 comments Download
A ppapi/shared_impl/var_value_conversions_unittest.cc View 1 2 3 1 chunk +241 lines, -0 lines 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/all_cpp_includes.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_var_dictionary_thunk.cc View 1 chunk +86 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
yzshen1
Hi, David. Would you please take a look? Thanks!
7 years, 9 months ago (2013-03-03 23:33:49 UTC) #1
dmichael (off chromium)
https://codereview.chromium.org/12387073/diff/2001/ppapi/shared_impl/dictionary_var.cc File ppapi/shared_impl/dictionary_var.cc (right): https://codereview.chromium.org/12387073/diff/2001/ppapi/shared_impl/dictionary_var.cc#newcode47 ppapi/shared_impl/dictionary_var.cc:47: PpapiGlobals::Get()->GetVarTracker()->AddRefVar(iter->second.get()); If the plugin mis-manages its ref-count and decrements ...
7 years, 9 months ago (2013-03-05 22:01:03 UTC) #2
yzshen1
Thanks David! Please take another look. https://codereview.chromium.org/12387073/diff/2001/ppapi/shared_impl/dictionary_var.cc File ppapi/shared_impl/dictionary_var.cc (right): https://codereview.chromium.org/12387073/diff/2001/ppapi/shared_impl/dictionary_var.cc#newcode47 ppapi/shared_impl/dictionary_var.cc:47: PpapiGlobals::Get()->GetVarTracker()->AddRefVar(iter->second.get()); On 2013/03/05 ...
7 years, 9 months ago (2013-03-14 05:38:21 UTC) #3
dmichael (off chromium)
I think we already talked about the biggest stuff offline, but I thought I should ...
7 years, 9 months ago (2013-03-15 17:35:48 UTC) #4
yzshen1
Thanks David! The conversion code looks a lot simpler. Please take another look! https://codereview.chromium.org/12387073/diff/2001/ppapi/shared_impl/dictionary_var.cc File ...
7 years, 9 months ago (2013-03-15 22:56:49 UTC) #5
dmichael (off chromium)
Thanks, it looks pretty clear now. lgtm https://codereview.chromium.org/12387073/diff/47001/ppapi/shared_impl/var_value_conversions.cc File ppapi/shared_impl/var_value_conversions.cc (right): https://codereview.chromium.org/12387073/diff/47001/ppapi/shared_impl/var_value_conversions.cc#newcode110 ppapi/shared_impl/var_value_conversions.cc:110: value->reset(new base::DictionaryValue()); ...
7 years, 9 months ago (2013-03-18 16:21:05 UTC) #6
yzshen1
7 years, 9 months ago (2013-03-18 17:24:09 UTC) #7
Thanks!

https://codereview.chromium.org/12387073/diff/47001/ppapi/shared_impl/var_val...
File ppapi/shared_impl/var_value_conversions.cc (right):

https://codereview.chromium.org/12387073/diff/47001/ppapi/shared_impl/var_val...
ppapi/shared_impl/var_value_conversions.cc:110: value->reset(new
base::DictionaryValue());
On 2013/03/18 16:21:05, dmichael wrote:
> I think it's worth noting somewhere (probably the .h file) that if a node is
> repeated in the Var that you're actually deep copying it.

Done.

Powered by Google App Engine
This is Rietveld 408576698