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

Unified Diff: net/quic/core/crypto/crypto_secret_boxer.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/net.gypi ('k') | net/quic/core/crypto/crypto_secret_boxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/crypto_secret_boxer.h
diff --git a/net/quic/core/crypto/crypto_secret_boxer.h b/net/quic/core/crypto/crypto_secret_boxer.h
index 07ab150c8f962a0be93448c35690acb487eb2358..14737e0ad8771cf9ab59134d0575abbafffa7b70 100644
--- a/net/quic/core/crypto/crypto_secret_boxer.h
+++ b/net/quic/core/crypto/crypto_secret_boxer.h
@@ -12,8 +12,8 @@
#include "base/macros.h"
#include "base/strings/string_piece.h"
-#include "base/synchronization/lock.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_mutex.h"
namespace net {
@@ -51,9 +51,8 @@ class QUIC_EXPORT_PRIVATE CryptoSecretBoxer {
base::StringPiece* out) const;
private:
- mutable base::Lock lock_;
- // GUARDED_BY(lock_).mutable Mutex lock_;
- std::vector<std::string> keys_;
+ mutable QuicMutex lock_;
+ std::vector<std::string> keys_ GUARDED_BY(lock_);
DISALLOW_COPY_AND_ASSIGN(CryptoSecretBoxer);
};
« no previous file with comments | « net/net.gypi ('k') | net/quic/core/crypto/crypto_secret_boxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698