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

Issue 2218533002: Backporting JSONValues from protocol::Values (Closed)

Created:
4 years, 4 months ago by iclelland
Modified:
4 years, 4 months ago
Reviewers:
pfeldman
CC:
chromium-reviews, blink-reviews-html_chromium.org, tzik, blink-reviews-platform-graphics_chromium.org, dshwang, eae+blinkwatch, leviw+renderwatch, apavlov+blink_chromium.org, kinuko+watch, rwlbuis, caseq+blink_chromium.org, krit, drott+blinkwatch_chromium.org, szager+layoutwatch_chromium.org, Justin Novosad, dglazkov+blink, Rik, blink-reviews-bindings_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, blink-reviews, ajuma+watch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, jbroman, lushnikov+blink_chromium.org, pdr+graphicswatchlist_chromium.org, nhiroki, haraken, Stephen Chennney, pdr+renderingwatchlist_chromium.org, loading-reviews+parser_chromium.org, blink-layers+watch_chromium.org, pfeldman+blink_chromium.org, f(malita), danakj+watch_chromium.org, kinuko+fileapi, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Backporting JSONValues from protocol::Values This commit back-ports the changes made in the inspector's JSON value class into Blink's JSONValue, and updates existing uses of JSONValue to use the new API. Significant changes: - JSONValue (and subclasses) are held in std::unique_ptrs, rather than being refcounted. - JSON objects distinguish between Integers and Doubles This commit does not remove the various JSONArray::push* methods, as they are used extensively as convenience methods, and are consistent with the JSONObject::set* methods. BUG=634921 Committed: https://crrev.com/cc67aa8cfc7dd5672a05d85db883946d55c7a05a Cr-Commit-Position: refs/heads/master@{#410066}

Patch Set 1 #

Patch Set 2 : Fix missed line #

Patch Set 3 : Clone LoggingCanvas log #

Total comments: 6

Patch Set 4 : Remove SerializedValue; type -> getType #

Patch Set 5 : Switch back to partition allocator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -433 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/JSONValuesForV8.cpp View 3 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/DevToolsHostFileSystem.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/nfc/NFC.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/JSONValues.h View 1 2 3 4 4 chunks +87 lines, -87 lines 0 comments Download
M third_party/WebKit/Source/platform/JSONValues.cpp View 1 2 3 19 chunks +154 lines, -105 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 8 chunks +63 lines, -63 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/LoggingCanvas.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/LoggingCanvas.cpp View 1 2 34 chunks +131 lines, -132 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PictureSnapshot.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (25 generated)
pfeldman
lgtm % comments https://codereview.chromium.org/2218533002/diff/40001/third_party/WebKit/Source/platform/JSONValues.h File third_party/WebKit/Source/platform/JSONValues.h (right): https://codereview.chromium.org/2218533002/diff/40001/third_party/WebKit/Source/platform/JSONValues.h#newcode80 third_party/WebKit/Source/platform/JSONValues.h:80: ValueType type() const { return m_type; ...
4 years, 4 months ago (2016-08-05 04:05:27 UTC) #13
iclelland
Thanks for the quick review! https://codereview.chromium.org/2218533002/diff/40001/third_party/WebKit/Source/platform/JSONValues.h File third_party/WebKit/Source/platform/JSONValues.h (right): https://codereview.chromium.org/2218533002/diff/40001/third_party/WebKit/Source/platform/JSONValues.h#newcode80 third_party/WebKit/Source/platform/JSONValues.h:80: ValueType type() const { ...
4 years, 4 months ago (2016-08-05 05:02:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2218533002/80001
4 years, 4 months ago (2016-08-05 15:39:41 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-05 15:43:46 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 15:45:58 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cc67aa8cfc7dd5672a05d85db883946d55c7a05a
Cr-Commit-Position: refs/heads/master@{#410066}

Powered by Google App Engine
This is Rietveld 408576698