@@ -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" )
@@ -530,50 +502,6 @@ interface PlacesManager {
530502 * This should always return the same object.
531503 */
532504 fun getWriter (): WritableHistoryConnection
533-
534- /* *
535- * Syncs the places history store, returning a telemetry ping.
536- *
537- * Note that this function blocks until the sync is complete, which may
538- * take some time due to the network etc. Because only 1 thread can be
539- * using a PlacesAPI at a time, it is recommended, but not enforced, that
540- * you have all connections you intend using open before calling this.
541- */
542- fun syncHistory (syncInfo : SyncAuthInfo ): SyncTelemetryPing
543-
544- /* *
545- * Syncs the places bookmarks store, returning a telemetry ping.
546- *
547- * Note that this function blocks until the sync is complete, which may
548- * take some time due to the network etc. Because only 1 thread can be
549- * using a PlacesAPI at a time, it is recommended, but not enforced, that
550- * you have all connections you intend using open before calling this.
551- */
552- fun syncBookmarks (syncInfo : SyncAuthInfo ): SyncTelemetryPing
553-
554- /* *
555- * Resets all sync metadata for history, including change flags,
556- * sync statuses, and last sync time. The next sync after reset
557- * will behave the same way as a first sync when connecting a new
558- * device.
559- *
560- * This method only needs to be called when the user disconnects
561- * from Sync. There are other times when Places resets sync metadata,
562- * but those are handled internally in the Rust code.
563- */
564- fun resetHistorySyncMetadata ()
565-
566- /* *
567- * Resets all sync metadata for bookmarks, including change flags,
568- * sync statuses, and last sync time. The next sync after reset
569- * will behave the same way as a first sync when connecting a new
570- * device.
571- *
572- * This method only needs to be called when the user disconnects
573- * from Sync. There are other times when Places resets sync metadata,
574- * but those are handled internally in the Rust code.
575- */
576- fun resetBookmarkSyncMetadata ()
577505}
578506
579507interface InterruptibleConnection : AutoCloseable {
0 commit comments