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

Unified Diff: remoting/protocol/message_reader.h

Issue 10066042: Refcounted types should not have public destructors, remoting/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Few fixes Created 8 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 | « remoting/protocol/buffered_socket_writer.cc ('k') | remoting/protocol/message_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/message_reader.h
diff --git a/remoting/protocol/message_reader.h b/remoting/protocol/message_reader.h
index a7c1c005b0995d745d151818a90a628bef51b843..a2cfca3761ae72969f010aa84edde3ad55e85915 100644
--- a/remoting/protocol/message_reader.h
+++ b/remoting/protocol/message_reader.h
@@ -41,13 +41,15 @@ class MessageReader : public base::RefCountedThreadSafe<MessageReader> {
MessageReceivedCallback;
MessageReader();
- virtual ~MessageReader();
// Initialize the MessageReader with a socket. If a message is received
// |callback| is called.
void Init(net::Socket* socket, const MessageReceivedCallback& callback);
private:
+ friend class base::RefCountedThreadSafe<MessageReader>;
+ virtual ~MessageReader();
+
void DoRead();
void OnRead(int result);
void HandleReadResult(int result);
« no previous file with comments | « remoting/protocol/buffered_socket_writer.cc ('k') | remoting/protocol/message_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698