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

Side by Side Diff: blimp/client/core/android/dummy_blimp_client_context_android.h

Issue 2194403003: blimp: Remove unneeded RegisterNatives() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg3
Patch Set: blimp: Remove unneeded RegisterNatives() call Created 4 years, 4 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
« no previous file with comments | « no previous file | blimp/client/core/android/dummy_blimp_client_context_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CORE_ANDROID_DUMMY_BLIMP_CLIENT_CONTEXT_ANDROID_H_ 5 #ifndef BLIMP_CLIENT_CORE_ANDROID_DUMMY_BLIMP_CLIENT_CONTEXT_ANDROID_H_
6 #define BLIMP_CLIENT_CORE_ANDROID_DUMMY_BLIMP_CLIENT_CONTEXT_ANDROID_H_ 6 #define BLIMP_CLIENT_CORE_ANDROID_DUMMY_BLIMP_CLIENT_CONTEXT_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 "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
11 #include "blimp/client/core/dummy_blimp_client_context.h" 11 #include "blimp/client/core/dummy_blimp_client_context.h"
12 12
13 namespace blimp { 13 namespace blimp {
14 namespace client { 14 namespace client {
15 15
16 // JNI bridge between DummyBlimpClientContext in Java and C++. 16 // JNI bridge between DummyBlimpClientContext in Java and C++.
17 class DummyBlimpClientContextAndroid : public base::SupportsUserData::Data { 17 class DummyBlimpClientContextAndroid : public base::SupportsUserData::Data {
18 public: 18 public:
19 static bool RegisterJni(JNIEnv* env);
20 static DummyBlimpClientContextAndroid* FromJavaObject(JNIEnv* env, 19 static DummyBlimpClientContextAndroid* FromJavaObject(JNIEnv* env,
21 jobject jobj); 20 jobject jobj);
22 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); 21 base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
23 22
24 DummyBlimpClientContextAndroid(); 23 DummyBlimpClientContextAndroid();
25 ~DummyBlimpClientContextAndroid() override; 24 ~DummyBlimpClientContextAndroid() override;
26 25
27 private: 26 private:
28 base::android::ScopedJavaGlobalRef<jobject> java_obj_; 27 base::android::ScopedJavaGlobalRef<jobject> java_obj_;
29 28
30 DISALLOW_COPY_AND_ASSIGN(DummyBlimpClientContextAndroid); 29 DISALLOW_COPY_AND_ASSIGN(DummyBlimpClientContextAndroid);
31 }; 30 };
32 31
33 } // namespace client 32 } // namespace client
34 } // namespace blimp 33 } // namespace blimp
35 34
36 #endif // BLIMP_CLIENT_CORE_ANDROID_DUMMY_BLIMP_CLIENT_CONTEXT_ANDROID_H_ 35 #endif // BLIMP_CLIENT_CORE_ANDROID_DUMMY_BLIMP_CLIENT_CONTEXT_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/core/android/dummy_blimp_client_context_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698