Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: net/ssl/channel_id_service.h

Issue 1770983002: Add atomic sequence number to ChannelIDService and check that in URLRequestHttpJob logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/ssl/channel_id_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | net/ssl/channel_id_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698