|
DevTools: introduce ResourceMapping
This patch splits out ResourceMapping from NetworkProject.
ResourceMapping creates UISourceCodes for resources which are not
handled by CSS Mappings and JS Mappings, such as images, fonts and html
documents.
ResourceMapping is structured like this:
- class ResourceMapping provides uiLocation to rawLocation mapping
for both CSSWorkspaceBinding and DebuggerWorkspaceBinding. ResourceMapping observes
resourceTreeModels and creates ModelInfo for each.
- class ResourceMaping.ModelInfo is created per resourceTreeModel to
manage model-associated UISourceCodes
- class ResourceMapping.Binding binds UISourceCode to multiple
identical resources
IMPORTANT: The new ResourceMapping also merges UISourceCodes across
frames.
NOTE: Because there are inline scripts and inline styles, HTML UISourceCodes are
needed by both CSSWorkspaceBinding and DebuggerWorkspaceBinding to
implement rawLocationToUILocation / uiLocationToRawLocation methods. Both
CSSWorkspaceBinding and DebuggerWorkspaceBinding refer to ResourceMapping
for this reason.
R=dgozman
BUG= 670180
Review-Url: https://codereview.chromium.org/2893073002
Cr-Commit-Position: refs/heads/master@{#478891}
Committed: https://chromium.googlesource.com/chromium/src/+/19a7ba263cc0eff46ac4752bbd04e12bb4f3dc31
Total comments: 12
Total comments: 8
Total comments: 18
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+349 lines, -127 lines) |
Patch |
|
M |
third_party/WebKit/LayoutTests/http/tests/inspector/bindings/bindings-multiple-frames-expected.txt
|
View
|
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/inspector/bindings/contentscripts-bindings-multiple-frames-expected.txt
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/inspector/bindings/sourcemap-bindings-multiple-frames-expected.txt
|
View
|
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-bindings-expected.txt
|
View
|
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-tree-frame-navigate.html
|
View
|
1
|
1 chunk |
+14 lines, -16 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resources/resource-tree-frame-navigate-iframe-before.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/pause-in-removed-frame.html
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/breakpoint-manager.html
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/breakpoint-manager.js
|
View
|
1
2
3
4
5
|
4 chunks |
+18 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-panel.html
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-sorting.html
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/inspector/sources/debugger/navigator-view.html
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js
|
View
|
1
2
|
3 chunks |
+4 lines, -80 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/devtools/front_end/bindings/ResourceMapping.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+285 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/bindings/module.json
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/devtools/front_end/main/Main.js
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 35 (24 generated)
|