Commit 5e429ec7 authored by Michael Droettboom's avatar Michael Droettboom
Browse files

1512933: Internalize some classes

parent ea908df9
......@@ -28,7 +28,7 @@ import mozilla.components.support.base.log.logger.Logger
import java.io.File
@Suppress("TooManyFunctions")
open class GleanInternalAPI {
open class GleanInternalAPI internal constructor () {
private val logger = Logger("glean/Glean")
// Include our singletons of StorageEngineManager and PingMaker
......
......@@ -21,7 +21,7 @@ import org.json.JSONObject
* A simple ping Uploader, which implements a "send once" policy, never
* storing or attempting to send the ping again.
*/
class HttpPingUploader(configuration: Configuration) : PingUploader {
internal class HttpPingUploader(configuration: Configuration) : PingUploader {
private val config = configuration
private val logger = Logger("glean/HttpPingUploader")
......
......@@ -12,7 +12,7 @@ import java.util.TimeZone
/**
* The interface defining how to send pings.
*/
interface PingUploader {
internal interface PingUploader {
fun upload(path: String, data: String): Boolean
fun createDateHeaderValue(): String {
......
......@@ -36,7 +36,7 @@ internal typealias ScalarRecordingCombiner<T> = (currentValue: T?, newValue: T)
* A base class for 'scalar' like metrics. This allows sharing the common
* store managing and lifetime behaviours.
*/
abstract class GenericScalarStorageEngine<ScalarType> : StorageEngine {
internal abstract class GenericScalarStorageEngine<ScalarType> : StorageEngine {
override lateinit var applicationContext: Context
// Let derived class define a logger so that they can provide a proper name,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment