This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4276: Add blog posting explaining browser-state plans. [ci skip] r=csadilek,Amejia481 a=pocmo I wanted to write this blog posting for quite a while. There's much more to say but this can be follow-up postings. :) 4281: Move intent related code from browser-session to feature-intent. r=csadilek a=pocmo In preparation for #4279 and #4257. :) 4294: Issue #4284: Add DownloadState to browser-state. r=csadilek a=pocmo First steps for #4284. State is not synchronized between `browser-state` and `browser-session` yet. I need to figure out how to deal with the `Consumable<Download>`in `Session`. We already did that when we prototyped this earlier this year. I think that's the reason we introduced `Consumable.onConsume`. Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
- Loading branch information
Showing
24 changed files
with
177 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...owser/state/src/main/java/mozilla/components/browser/state/state/content/DownloadState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package mozilla.components.browser.state.state.content | ||
|
||
import android.os.Environment | ||
|
||
/** | ||
* Value type that represents a download request. | ||
* | ||
* @property url The full url to the content that should be downloaded. | ||
* @property fileName A canonical filename for this download. | ||
* @property contentType Content type (MIME type) to indicate the media type of the download. | ||
* @property contentLength The file size reported by the server. | ||
* @property userAgent The user agent to be used for the download. | ||
* @property destinationDirectory The matching destination directory for this type of download. | ||
* @property referrerUrl The site that linked to this download. | ||
*/ | ||
data class DownloadState( | ||
val url: String, | ||
val fileName: String? = null, | ||
val contentType: String? = null, | ||
val contentLength: Long? = null, | ||
val userAgent: String? = null, | ||
val destinationDirectory: String = Environment.DIRECTORY_DOWNLOADS, | ||
val referrerUrl: String? = null | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 0 additions & 104 deletions
104
components/feature/intent/src/main/java/mozilla/components/feature/intent/IntentProcessor.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.