Index: net/ssl/channel_id_service.h |
diff --git a/net/ssl/channel_id_service.h b/net/ssl/channel_id_service.h |
index eb4a92ae6f5ed83dfedb7308c7544c816bff9a9d..ef577974ccbf616d6ddd52b7f3791f73ee624fac 100644 |
--- a/net/ssl/channel_id_service.h |
+++ b/net/ssl/channel_id_service.h |
@@ -129,6 +129,10 @@ class NET_EXPORT ChannelIDService |
// Returns the backing ChannelIDStore. |
ChannelIDStore* GetChannelIDStore(); |
+ // Returns an ID that is unique across all instances of ChannelIDService in |
+ // this process. TODO(nharper): remove this once crbug.com/548423 is resolved. |
+ int GetUniqueID() const { return id_; } |
+ |
// Public only for unit testing. |
int channel_id_count(); |
uint64_t requests() const { return requests_; } |
@@ -171,6 +175,7 @@ class NET_EXPORT ChannelIDService |
scoped_ptr<ChannelIDStore> channel_id_store_; |
scoped_refptr<base::TaskRunner> task_runner_; |
+ const int id_; |
// inflight_ maps from a server to an active generation which is taking |
// place. |