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

Unified Diff: remoting/host/security_key/remote_security_key_message_reader_impl.h

Issue 1900733002: Fixing a Dr. Memory hang in the remoting_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback Created 4 years, 8 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 | remoting/host/security_key/remote_security_key_message_reader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/security_key/remote_security_key_message_reader_impl.h
diff --git a/remoting/host/security_key/remote_security_key_message_reader_impl.h b/remoting/host/security_key/remote_security_key_message_reader_impl.h
index 873d478093a2cdad64788c5c5bd2c7cf77ad7c0f..051fc3338e6e3b6b7acc4b898685275f83c80588 100644
--- a/remoting/host/security_key/remote_security_key_message_reader_impl.h
+++ b/remoting/host/security_key/remote_security_key_message_reader_impl.h
@@ -38,6 +38,10 @@ class RemoteSecurityKeyMessageReaderImpl
// |message_callback_| on the originating thread. Run on |read_task_runner_|.
void ReadMessage();
+ // Reads the nubmer of bytes indicated by |bytes_to_read| into |buffer| from
+ // |read_stream_|. Returns true if all bytes were retrieved successfully.
+ bool ReadFromStream(char* buffer, size_t bytes_to_read);
+
// Callback run on |read_task_runner_| when an error occurs or EOF is reached.
void NotifyError();
« no previous file with comments | « no previous file | remoting/host/security_key/remote_security_key_message_reader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698