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

Unified Diff: blimp/client/app/android/blimp_client_context_delegate_android.h

Issue 2542083004: Make //blimp/client/app a real embedder of //blimp/client/public (Closed)
Patch Set: Fix findbugs issue Created 4 years 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/app/android/blimp_client_context_delegate_android.h
diff --git a/blimp/client/app/android/blimp_client_context_delegate_android.h b/blimp/client/app/android/blimp_client_context_delegate_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..4667c5d487f336c843208360be97f2172f2142db
--- /dev/null
+++ b/blimp/client/app/android/blimp_client_context_delegate_android.h
@@ -0,0 +1,46 @@
+// 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_APP_ANDROID_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_
+#define BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_
+
+#include "blimp/client/public/blimp_client_context_delegate.h"
+#include "google_apis/gaia/identity_provider.h"
+
+namespace blimp {
+namespace client {
+
+class BlimpClientContext;
+class BlimpContents;
+
+class BlimpClientContextDelegateAndroid : public BlimpClientContextDelegate {
+ public:
+ explicit BlimpClientContextDelegateAndroid(
+ BlimpClientContext* blimp_client_context);
+ ~BlimpClientContextDelegateAndroid() override;
+
+ // BlimpClientContextDelegate implementation.
+ void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) override;
+ void OnAssignmentConnectionAttempted(AssignmentRequestResult result,
+ const Assignment& assignment) override;
+ std::unique_ptr<IdentityProvider> CreateIdentityProvider() override;
+ void OnAuthenticationError(const GoogleServiceAuthError& error) override;
+ void OnConnected() override;
+ void OnEngineDisconnected(int result) override;
+ void OnNetworkDisconnected(int result) override;
+
+ private:
+ void OnDisconnected(const base::string16& reason);
+ void ShowMessage(const base::string16& message);
+
+ // The BlimpClientContext this is the delegate for.
+ BlimpClientContext* blimp_client_context_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlimpClientContextDelegateAndroid);
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_
« no previous file with comments | « blimp/client/app/android/blimp_app_jni_registrar.cc ('k') | blimp/client/app/android/blimp_client_context_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698