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

Unified Diff: blimp/client/core/settings/blimp_settings_delegate.h

Issue 2322843002: Propagate connection info to Blimp android UI. (Closed)
Patch Set: git cl format.... Created 4 years, 3 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/settings/blimp_settings_delegate.h
diff --git a/blimp/client/core/settings/blimp_settings_delegate.h b/blimp/client/core/settings/blimp_settings_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..37968970643db195f62d323181b539b3435e5950
--- /dev/null
+++ b/blimp/client/core/settings/blimp_settings_delegate.h
@@ -0,0 +1,31 @@
+// 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_SETTINGS_BLIMP_SETTINGS_DELEGATE_H_
+#define BLIMP_CLIENT_CORE_SETTINGS_BLIMP_SETTINGS_DELEGATE_H_
+
+#include "base/macros.h"
+
+namespace blimp {
+namespace client {
+
+class ConnectionStatus;
+class IdentitySource;
+
+// BlimpSettingsDelegate is an interface that provides functionalities needed
+// by core/settings.
+class BlimpSettingsDelegate {
+ public:
+ // Get IdentitySource that provides sign in state change.
+ virtual IdentitySource* GetIdentitySource() = 0;
+
+ // Get the connection status that provides engine IP and broadcasts network
+ // events.
+ virtual ConnectionStatus* GetConnectionStatus() = 0;
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_CORE_SETTINGS_BLIMP_SETTINGS_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698