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

Side by Side Diff: blimp/client/app/android/blimp_client_session_android.h

Issue 1842403003: Added Version Info page to toolbar menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@toolbar_menu
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_SESSION_ANDROID_H_ 5 #ifndef BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_SESSION_ANDROID_H_
6 #define BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_SESSION_ANDROID_H_ 6 #define BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_SESSION_ANDROID_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "blimp/client/session/blimp_client_session.h" 10 #include "blimp/client/session/blimp_client_session.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Methods called from Java via JNI. 25 // Methods called from Java via JNI.
26 // |jclient_auth_token| is an OAuth2 access token created by GoogleAuthUtil. 26 // |jclient_auth_token| is an OAuth2 access token created by GoogleAuthUtil.
27 // See BlimpClientSession::Connect() for more information. 27 // See BlimpClientSession::Connect() for more information.
28 void Connect(JNIEnv* env, 28 void Connect(JNIEnv* env,
29 const base::android::JavaParamRef<jobject>& jobj, 29 const base::android::JavaParamRef<jobject>& jobj,
30 const base::android::JavaParamRef<jstring>& jclient_auth_token); 30 const base::android::JavaParamRef<jstring>& jclient_auth_token);
31 31
32 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& jobj); 32 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& jobj);
33 33
34 base::android::ScopedJavaLocalRef<jstring> GetEngineIPAddress(
Kevin M 2016/03/31 19:41:48 Do we need to break these out into separate fields
shaktisahu 2016/04/06 06:50:25 Acknowledged.
35 JNIEnv* env,
36 const base::android::JavaParamRef<jobject>& jobj) const;
37 base::android::ScopedJavaLocalRef<jstring> GetEngineVersion(
38 JNIEnv* env,
39 const base::android::JavaParamRef<jobject>& jobj) const;
40
34 private: 41 private:
35 ~BlimpClientSessionAndroid() override; 42 ~BlimpClientSessionAndroid() override;
36 43
37 // BlimpClientSession implementation. 44 // BlimpClientSession implementation.
38 void OnAssignmentConnectionAttempted( 45 void OnAssignmentConnectionAttempted(
39 AssignmentSource::Result result) override; 46 AssignmentSource::Result result) override;
40 47
41 // NetworkEventObserver implementation. 48 // NetworkEventObserver implementation.
42 void OnConnected() override; 49 void OnConnected() override;
43 void OnDisconnected(int error_code) override; 50 void OnDisconnected(int error_code) override;
44 51
45 // Reference to the Java object which owns this class. 52 // Reference to the Java object which owns this class.
46 base::android::ScopedJavaGlobalRef<jobject> java_obj_; 53 base::android::ScopedJavaGlobalRef<jobject> java_obj_;
47 54
48 DISALLOW_COPY_AND_ASSIGN(BlimpClientSessionAndroid); 55 DISALLOW_COPY_AND_ASSIGN(BlimpClientSessionAndroid);
49 }; 56 };
50 57
51 } // namespace client 58 } // namespace client
52 } // namespace blimp 59 } // namespace blimp
53 60
54 #endif // BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_SESSION_ANDROID_H_ 61 #endif // BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_SESSION_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698