Skip to content

Commit

Permalink
fbandroid/libraries/fresco/imagepipeline/src/main/java/com/facebook/i…
Browse files Browse the repository at this point in the history
…magepipeline/producers/BaseNetworkFetcher.java

Reviewed By: oprisnik

Differential Revision: D39767602

fbshipit-source-id: fbc0a5e016c47bbd3f45675c2449341e740beae5
  • Loading branch information
defHLT authored and facebook-github-bot committed Sep 27, 2022
1 parent d77435c commit e9224ea
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 40 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.imagepipeline.producers

/**
* Base class for [NetworkFetcher].
*
* Intermediate results are propagated.
*
* {#code getExtraMap} returns null.
*/
abstract class BaseNetworkFetcher<FETCH_STATE : FetchState?> : NetworkFetcher<FETCH_STATE> {

override fun shouldPropagate(fetchState: FETCH_STATE): Boolean = true

override fun onFetchCompletion(fetchState: FETCH_STATE, byteSize: Int) {
// no-op
}

override fun getExtraMap(fetchState: FETCH_STATE, byteSize: Int): Map<String, String>? = null
}

0 comments on commit e9224ea

Please sign in to comment.