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

Unified Diff: blimp/net/blimp_connection.h

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Route EndConnection to OnConnectionError notifications Created 4 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
Index: blimp/net/blimp_connection.h
diff --git a/blimp/net/blimp_connection.h b/blimp/net/blimp_connection.h
index a662c4e10ef5d488ef5352ae3b2d1c555f66c030..52f15ffeb98183b8b1bfeec7e51026f25e0b7650 100644
--- a/blimp/net/blimp_connection.h
+++ b/blimp/net/blimp_connection.h
@@ -43,6 +43,9 @@ class BLIMP_NET_EXPORT BlimpConnection : public ConnectionErrorObserver {
virtual BlimpMessageProcessor* GetOutgoingMessageProcessor();
protected:
+ class EndConnectionHandler;
+ friend class EndConnectionHandler;
+
BlimpConnection();
// ConnectionErrorObserver implementation.
@@ -54,6 +57,7 @@ class BLIMP_NET_EXPORT BlimpConnection : public ConnectionErrorObserver {
std::unique_ptr<PacketWriter> writer_;
std::unique_ptr<BlimpMessageProcessor> outgoing_msg_processor_;
base::ObserverList<ConnectionErrorObserver> error_observers_;
+ std::unique_ptr<EndConnectionHandler> end_connection_handler_;
DISALLOW_COPY_AND_ASSIGN(BlimpConnection);
};

Powered by Google App Engine
This is Rietveld 408576698