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

Side by Side Diff: content/browser/mojo/service_registry_android.h

Issue 641703002: Rewrite the Android implementation of BatteryMonitor directly in Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@battery-status-api-to-mojo
Patch Set: Address Torne's comment. Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_MOJO_SERVICE_REGISTRY_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_MOJO_SERVICE_REGISTRY_ANDROID_H_
6 #define CONTENT_BROWSER_MOJO_SERVICE_REGISTRY_ANDROID_H_ 6 #define CONTENT_BROWSER_MOJO_SERVICE_REGISTRY_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 19 matching lines...) Expand all
30 jobject j_service_registry, 30 jobject j_service_registry,
31 jobject j_manager, 31 jobject j_manager,
32 jobject j_factory, 32 jobject j_factory,
33 jstring j_name); 33 jstring j_name);
34 void RemoveService(JNIEnv* env, jobject j_service_registry, jstring j_name); 34 void RemoveService(JNIEnv* env, jobject j_service_registry, jstring j_name);
35 void ConnectToRemoteService(JNIEnv* env, 35 void ConnectToRemoteService(JNIEnv* env,
36 jobject j_service_registry, 36 jobject j_service_registry,
37 jstring j_name, 37 jstring j_name,
38 jint handle); 38 jint handle);
39 39
40 const base::android::ScopedJavaGlobalRef<jobject>& GetObjForTesting() { 40 const base::android::ScopedJavaGlobalRef<jobject>& GetObj() { return obj_; }
41 return obj_;
42 }
43 41
44 private: 42 private:
45 ServiceRegistryImpl* service_registry_; 43 ServiceRegistryImpl* service_registry_;
46 base::android::ScopedJavaGlobalRef<jobject> obj_; 44 base::android::ScopedJavaGlobalRef<jobject> obj_;
47 45
48 DISALLOW_COPY_AND_ASSIGN(ServiceRegistryAndroid); 46 DISALLOW_COPY_AND_ASSIGN(ServiceRegistryAndroid);
49 }; 47 };
50 48
51 } // namespace content 49 } // namespace content
52 50
53 #endif // CONTENT_BROWSER_MOJO_SERVICE_REGISTRY_ANDROID_H_ 51 #endif // CONTENT_BROWSER_MOJO_SERVICE_REGISTRY_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/mojo/service_registrar_android.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698