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

Unified Diff: remoting/protocol/ssl_hmac_channel_authenticator.cc

Issue 2911893003: Deprecate NonThreadSafe in remoting in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 | « remoting/protocol/ssl_hmac_channel_authenticator.h ('k') | remoting/protocol/stream_channel_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/ssl_hmac_channel_authenticator.cc
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.cc b/remoting/protocol/ssl_hmac_channel_authenticator.cc
index 177699a45bf6f3bb4ef70c3f11650efd38d78792..5cad1119d210d917c92ecd7ee32fe6d68eb7cd96 100644
--- a/remoting/protocol/ssl_hmac_channel_authenticator.cc
+++ b/remoting/protocol/ssl_hmac_channel_authenticator.cc
@@ -223,12 +223,13 @@ SslHmacChannelAuthenticator::SslHmacChannelAuthenticator(
}
SslHmacChannelAuthenticator::~SslHmacChannelAuthenticator() {
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
}
void SslHmacChannelAuthenticator::SecureAndAuthenticate(
std::unique_ptr<P2PStreamSocket> socket,
const DoneCallback& done_callback) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
done_callback_ = done_callback;
@@ -377,7 +378,7 @@ void SslHmacChannelAuthenticator::WriteAuthenticationBytes(
}
void SslHmacChannelAuthenticator::OnAuthBytesWritten(int result) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (HandleAuthBytesWritten(result, nullptr))
WriteAuthenticationBytes(nullptr);
@@ -417,7 +418,7 @@ void SslHmacChannelAuthenticator::ReadAuthenticationBytes() {
}
void SslHmacChannelAuthenticator::OnAuthBytesRead(int result) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (HandleAuthBytesRead(result))
ReadAuthenticationBytes();
« no previous file with comments | « remoting/protocol/ssl_hmac_channel_authenticator.h ('k') | remoting/protocol/stream_channel_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698