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

Issue 148253005: DevTools: remove references to modules/indexeddb from core/inspector (Closed)

Created:
6 years, 10 months ago by Vladislav Kaznacheev
Modified:
6 years, 6 months ago
Reviewers:
vsevik, alecflett, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, jsbell, eustas+blink_chromium.org, alph+blink_chromium.org, alecflett, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, cmumford, devtools-reviews_chromium.org, dgrogan, aandrey+blink_chromium.org
Visibility:
Public.

Description

DevTools: remove references to modules/indexeddb from core/inspector BUG=340221 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166697

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Addressed comments #

Total comments: 3

Patch Set 4 : Addressed comments #

Patch Set 5 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -898 lines) Patch
M LayoutTests/http/tests/inspector/indexeddb/database-data.html View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorController.cpp View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download
D Source/core/inspector/InspectorIndexedDBAgent.h View 1 chunk +0 lines, -73 lines 0 comments Download
D Source/core/inspector/InspectorIndexedDBAgent.cpp View 1 chunk +0 lines, -774 lines 0 comments Download
M Source/devtools/front_end/IndexedDBModel.js View 1 2 1 chunk +3 lines, -3 lines 1 comment Download
M Source/devtools/protocol.json View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A + Source/modules/indexeddb/InspectorIndexedDBAgent.h View 1 2 2 chunks +5 lines, -9 lines 0 comments Download
A + Source/modules/indexeddb/InspectorIndexedDBAgent.cpp View 1 2 15 chunks +45 lines, -29 lines 1 comment Download
M Source/modules/modules.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Vladislav Kaznacheev
6 years, 10 months ago (2014-02-05 08:35:17 UTC) #1
pfeldman
https://codereview.chromium.org/148253005/diff/40001/Source/modules/indexeddb/IDBClient.cpp File Source/modules/indexeddb/IDBClient.cpp (right): https://codereview.chromium.org/148253005/diff/40001/Source/modules/indexeddb/IDBClient.cpp#newcode29 Source/modules/indexeddb/IDBClient.cpp:29: OwnPtr<InspectorIndexedDBAgent> inspectorAgent = InspectorIndexedDBAgent::create(inspectorController.injectedScriptManager(), inspectorController.pageAgent()); Inspector agents are private ...
6 years, 10 months ago (2014-02-05 12:32:07 UTC) #2
Vladislav Kaznacheev
PTAL https://codereview.chromium.org/148253005/diff/40001/Source/modules/indexeddb/IDBClient.cpp File Source/modules/indexeddb/IDBClient.cpp (right): https://codereview.chromium.org/148253005/diff/40001/Source/modules/indexeddb/IDBClient.cpp#newcode29 Source/modules/indexeddb/IDBClient.cpp:29: OwnPtr<InspectorIndexedDBAgent> inspectorAgent = InspectorIndexedDBAgent::create(inspectorController.injectedScriptManager(), inspectorController.pageAgent()); Removed InjectedScriptManager dependency ...
6 years, 10 months ago (2014-02-06 09:48:22 UTC) #3
pfeldman
lgtm https://chromiumcodereview.appspot.com/148253005/diff/110001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://chromiumcodereview.appspot.com/148253005/diff/110001/Source/devtools/protocol.json#newcode1421 Source/devtools/protocol.json:1421: { "name": "key", "type": "string", "description": "Key." }, ...
6 years, 10 months ago (2014-02-06 11:33:47 UTC) #4
Vladislav Kaznacheev
The CQ bit was checked by kaznacheev@chromium.org
6 years, 10 months ago (2014-02-06 17:41:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaznacheev@chromium.org/148253005/160001
6 years, 10 months ago (2014-02-06 17:41:14 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 17:41:31 UTC) #7
commit-bot: I haz the power
Failed to apply patch for Source/core/inspector/InspectorController.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-06 17:41:32 UTC) #8
alecflett
lgtm fwiw
6 years, 10 months ago (2014-02-06 23:28:58 UTC) #9
Vladislav Kaznacheev
The CQ bit was checked by kaznacheev@chromium.org
6 years, 10 months ago (2014-02-07 08:01:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaznacheev@chromium.org/148253005/240001
6 years, 10 months ago (2014-02-07 08:01:18 UTC) #11
commit-bot: I haz the power
Change committed as 166697
6 years, 10 months ago (2014-02-07 09:23:53 UTC) #12
vsevik
6 years, 6 months ago (2014-06-04 05:48:32 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/148253005/diff/240001/Source/devtools/front_e...
File Source/devtools/front_end/IndexedDBModel.js (right):

https://codereview.chromium.org/148253005/diff/240001/Source/devtools/front_e...
Source/devtools/front_end/IndexedDBModel.js:382: var key =
WebInspector.RemoteObject.fromLocalObject(JSON.parse(dataEntries[i].key));
Now that we use LocalObject instead of RemoteObject, the .release() call is not
needed anymore for this objects.

FYI This patch together with the refactoring that removed release method from
the LocalObject broke paging in DevTools IndexedDB support.

https://codereview.chromium.org/148253005/diff/240001/Source/modules/indexedd...
File Source/modules/indexeddb/InspectorIndexedDBAgent.cpp (right):

https://codereview.chromium.org/148253005/diff/240001/Source/modules/indexedd...
Source/modules/indexeddb/InspectorIndexedDBAgent.cpp:451:
.setKey(idbCursor->key(context).toJSONValue(scriptState)->toJSONString())
With this change we need to transfer all the (potentially large) data stored in
the IndexedDB to front-end even if it is not really needed there.

Powered by Google App Engine
This is Rietveld 408576698