Returns the client ID used by ChronologyProtector.
Bug: T212550
Change-Id: Ia7d24d6591d6a8696103c560ea4b2c9718fd0ec2
*/
public function appendShutdownCPIndexAsQuery( $url, $index );
+ /**
+ * Get the client ID of the ChronologyProtector instance
+ *
+ * @return string Client ID
+ * @since 1.34
+ */
+ public function getChronologyProtectorClientId();
+
/**
* @param array $info Map of fields, including:
* - IPAddress : IP address
return strpos( $url, '?' ) === false ? "$url?cpPosIndex=$index" : "$url&cpPosIndex=$index";
}
+ public function getChronologyProtectorClientId() {
+ return $this->getChronologyProtector()->getClientId();
+ }
+
/**
* @param int $index Write index
* @param int $time UNIX timestamp; can be used to detect stale cookies (T190082)