@@ -85,34 +85,6 @@ class PlacesApi(path: String) : PlacesManager, AutoCloseable {
8585 override fun close () {
8686 this .writeConn.apiRef.clear()
8787 }
88-
89- override fun syncHistory (syncInfo : SyncAuthInfo ): SyncTelemetryPing {
90- val pingJSONString = this .api.historySync(
91- syncInfo.kid,
92- syncInfo.fxaAccessToken,
93- syncInfo.syncKey,
94- syncInfo.tokenserverURL,
95- )
96- return SyncTelemetryPing .fromJSONString(pingJSONString)
97- }
98-
99- override fun syncBookmarks (syncInfo : SyncAuthInfo ): SyncTelemetryPing {
100- val pingJSONString = this .api.bookmarksSync(
101- syncInfo.kid,
102- syncInfo.fxaAccessToken,
103- syncInfo.syncKey,
104- syncInfo.tokenserverURL,
105- )
106- return SyncTelemetryPing .fromJSONString(pingJSONString)
107- }
108-
109- override fun resetHistorySyncMetadata () {
110- this .api.resetHistory()
111- }
112-
113- override fun resetBookmarkSyncMetadata () {
114- return this .api.bookmarksReset()
115- }
11688}
11789
11890@Suppress(" TooGenericExceptionCaught" )
@@ -470,50 +442,6 @@ interface PlacesManager {
470442 * This should always return the same object.
471443 */
472444 fun getWriter (): WritableHistoryConnection
473-
474- /* *
475- * Syncs the places history store, returning a telemetry ping.
476- *
477- * Note that this function blocks until the sync is complete, which may
478- * take some time due to the network etc. Because only 1 thread can be
479- * using a PlacesAPI at a time, it is recommended, but not enforced, that
480- * you have all connections you intend using open before calling this.
481- */
482- fun syncHistory (syncInfo : SyncAuthInfo ): SyncTelemetryPing
483-
484- /* *
485- * Syncs the places bookmarks store, returning a telemetry ping.
486- *
487- * Note that this function blocks until the sync is complete, which may
488- * take some time due to the network etc. Because only 1 thread can be
489- * using a PlacesAPI at a time, it is recommended, but not enforced, that
490- * you have all connections you intend using open before calling this.
491- */
492- fun syncBookmarks (syncInfo : SyncAuthInfo ): SyncTelemetryPing
493-
494- /* *
495- * Resets all sync metadata for history, including change flags,
496- * sync statuses, and last sync time. The next sync after reset
497- * will behave the same way as a first sync when connecting a new
498- * device.
499- *
500- * This method only needs to be called when the user disconnects
501- * from Sync. There are other times when Places resets sync metadata,
502- * but those are handled internally in the Rust code.
503- */
504- fun resetHistorySyncMetadata ()
505-
506- /* *
507- * Resets all sync metadata for bookmarks, including change flags,
508- * sync statuses, and last sync time. The next sync after reset
509- * will behave the same way as a first sync when connecting a new
510- * device.
511- *
512- * This method only needs to be called when the user disconnects
513- * from Sync. There are other times when Places resets sync metadata,
514- * but those are handled internally in the Rust code.
515- */
516- fun resetBookmarkSyncMetadata ()
517445}
518446
519447interface InterruptibleConnection : AutoCloseable {
0 commit comments