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

Unified Diff: blimp/client/core/session/network_event_observer.h

Issue 2187893002: Move more client network code to //blimp/client/core/session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more explanatory comments Created 4 years, 5 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/client/core/session/network_event_observer.h
diff --git a/blimp/client/core/session/network_event_observer.h b/blimp/client/core/session/network_event_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..e443455877e337d3e735b26e8cd50c9385d39b84
--- /dev/null
+++ b/blimp/client/core/session/network_event_observer.h
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BLIMP_CLIENT_CORE_SESSION_NETWORK_EVENT_OBSERVER_H_
+#define BLIMP_CLIENT_CORE_SESSION_NETWORK_EVENT_OBSERVER_H_
+
+namespace blimp {
+namespace client {
+
+// A NetworkEventObserver is informed whenever changes happen to the connection
+// to the Blimp engine.
+class NetworkEventObserver {
+ public:
+ NetworkEventObserver() {}
+ virtual ~NetworkEventObserver() {}
+
+ virtual void OnConnected() = 0;
+ virtual void OnDisconnected(int result) = 0;
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_CORE_SESSION_NETWORK_EVENT_OBSERVER_H_
« no previous file with comments | « blimp/client/core/session/cross_thread_network_event_observer.cc ('k') | blimp/client/session/blimp_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698