Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
5e429ec7
Commit
5e429ec7
authored
Feb 08, 2019
by
Michael Droettboom
Browse files
1512933: Internalize some classes
parent
ea908df9
Changes
4
Hide whitespace changes
Inline
Side-by-side
components/service/glean/src/main/java/mozilla/components/service/glean/Glean.kt
View file @
5e429ec7
...
...
@@ -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
...
...
components/service/glean/src/main/java/mozilla/components/service/glean/net/HttpPingUploader.kt
View file @
5e429ec7
...
...
@@ -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"
)
...
...
components/service/glean/src/main/java/mozilla/components/service/glean/net/PingUploader.kt
View file @
5e429ec7
...
...
@@ -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
{
...
...
components/service/glean/src/main/java/mozilla/components/service/glean/storages/GenericScalarStorageEngine.kt
View file @
5e429ec7
...
...
@@ -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,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment