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

Unified Diff: net/quic/core/crypto/local_strike_register_client.h

Issue 2561913003: Create a QUIC wrapper around a mutex and a mutex lock. (Closed)
Patch Set: fix Created 4 years 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 | « net/quic/core/crypto/crypto_secret_boxer.cc ('k') | net/quic/core/crypto/local_strike_register_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/local_strike_register_client.h
diff --git a/net/quic/core/crypto/local_strike_register_client.h b/net/quic/core/crypto/local_strike_register_client.h
index 2af1fd905be46151c773f8fd7556d58874f4464c..7c00fce13e5c55c338fe4ae8ea12f5ca8441b7c8 100644
--- a/net/quic/core/crypto/local_strike_register_client.h
+++ b/net/quic/core/crypto/local_strike_register_client.h
@@ -9,11 +9,11 @@
#include "base/macros.h"
#include "base/strings/string_piece.h"
-#include "base/synchronization/lock.h"
#include "net/quic/core/crypto/strike_register.h"
#include "net/quic/core/crypto/strike_register_client.h"
#include "net/quic/core/quic_time.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_mutex.h"
namespace net {
@@ -34,8 +34,8 @@ class QUIC_EXPORT_PRIVATE LocalStrikeRegisterClient
ResultCallback* cb) override;
private:
- mutable base::Lock m_;
- StrikeRegister strike_register_;
+ mutable QuicMutex m_;
+ StrikeRegister strike_register_ GUARDED_BY(m_);
DISALLOW_COPY_AND_ASSIGN(LocalStrikeRegisterClient);
};
« no previous file with comments | « net/quic/core/crypto/crypto_secret_boxer.cc ('k') | net/quic/core/crypto/local_strike_register_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698