Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRefactor resource thread code #11189
Conversation
highfive
commented
May 15, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
May 15, 2016
|
Discussed on IRC with @Manishearth here, thinking that this will improve the maintainability of code. |
|
If we're going to rename |
|
@wafflespeanut By |
37ed2c2
to
e60ba64
highfive
commented
May 15, 2016
|
New code was committed to pull request. |
|
|
e60ba64
to
5922262
|
Could you add a summary of your changes in your commit message? |
|
@nox ok |
5922262
to
8b07e68
highfive
commented
May 16, 2016
|
New code was committed to pull request. |
|
This adds an intermediate step to request things to the storage thread. AFAICT @Manishearth was suggesting to put all three channels in the same structure and implement a |
|
@nox, thanks for feedback, I remember @Manishearth suggested that but I am not sure whether this design will be changed later on so I put it off. Using |
8b07e68
to
ba12177
highfive
commented
May 17, 2016
|
New code was committed to pull request. |
|
This fails at building unit tests:
|
ba12177
to
a3efc65
highfive
commented
May 17, 2016
|
New code was committed to pull request. |
|
@bors-servo r+ p=1 |
|
|
|
@bors-servo retry |
Refactor resource thread code - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it is refactoring <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11189) <!-- Reviewable:end -->
|
|
|
|
|
|
Changes include: - Introduce an IpcSend trait to abstract over a collection of IpcSenders - Implement ResourceThreads collection to abstract the resource-related sub threads across the component - Rename original ResourceThread and ControlMsg into an unifed CoreResource__ to accommodate above changes and avoid confusions
d43203d
to
a51db4c
|
@bors r=nox |
|
@bors-servo r=nox |
|
|
Refactor resource thread code - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it is refactoring <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11189) <!-- Reviewable:end -->
|
|
Implement file related functionalities in htmlinputelement and related - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] These changes is related to #11131 - [x] These changes do not require tests because it is a partial implementation 1. Improve the `filemanager_thread` by adding type string and create `SelectedFile` 2. Fill several gaps in `htmlinputelement` implementation related to file type 3. Improve the `File` interface to accommodate the above changes 4. Integrate changes introduced by PR #11189 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11225) <!-- Reviewable:end -->
izgzhen commentedMay 15, 2016
•
edited
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsRelated to #11131
This change is