|
Decouple MIDIAccess initialization from MIDIAccess class.
Introduce a new class MIDIAccessInitializer which initializes MIDIAccess.
Previously the initialization code were on MIDIAccess itself, but this CL
decouples it.
This CL changes the various initialization-related resource ownerships.
In this CL MIDIAccessInitializer owns all initialization related resources
and when the initialization is done (no matter whether successfull or not)
it releases such resources.
Unfortunately MIDIAccess owns MIDIAccessInitializer in this CL because
there is no other natural owner of MIDIAccessInitializer.
Hopefully MIDIAccess will stop owning MIDIAccessInitializer when [1] lands.
1. https://codereview.chromium.org/311733004/
BUG= 361041
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175952
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+324 lines, -208 lines) |
Patch |
 |
M |
Source/modules/modules.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIAccess.h
|
View
|
1
2
3
4
|
4 chunks |
+14 lines, -21 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIAccess.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+36 lines, -119 lines |
0 comments
|
Download
|
 |
A |
Source/modules/webmidi/MIDIAccessInitializer.h
|
View
|
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/modules/webmidi/MIDIAccessInitializer.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+143 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIAccessor.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIClient.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIClientMock.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIClientMock.cpp
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIController.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIController.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/web/MIDIClientProxy.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/web/MIDIClientProxy.cpp
|
View
|
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebMIDIClientMock.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebMIDIPermissionRequest.cpp
|
View
|
1
2
|
1 chunk |
+6 lines, -19 lines |
0 comments
|
Download
|
 |
M |
public/web/WebMIDIClient.h
|
View
|
1
2
3
4
5
|
1 chunk |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
M |
public/web/WebMIDIPermissionRequest.h
|
View
|
1
2
3
4
|
1 chunk |
+11 lines, -15 lines |
0 comments
|
Download
|
Total messages: 22 (0 generated)
|