OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/shell/android/shell_jni_registrar.h" | 5 #include "content/shell/android/shell_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
9 #include "content/shell/android/shell_manager.h" | 9 #include "content/shell/android/shell_manager.h" |
10 #include "content/shell/shell.h" | 10 #include "content/shell/browser/shell.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 static base::android::RegistrationMethod kShellRegistrationMethods[] = { | 14 static base::android::RegistrationMethod kShellRegistrationMethods[] = { |
15 { "Shell", content::Shell::Register }, | 15 { "Shell", content::Shell::Register }, |
16 { "ShellManager", content::RegisterShellManager }, | 16 { "ShellManager", content::RegisterShellManager }, |
17 }; | 17 }; |
18 | 18 |
19 } // namespace | 19 } // namespace |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 namespace android { | 22 namespace android { |
23 | 23 |
24 bool RegisterShellJni(JNIEnv* env) { | 24 bool RegisterShellJni(JNIEnv* env) { |
25 return RegisterNativeMethods(env, kShellRegistrationMethods, | 25 return RegisterNativeMethods(env, kShellRegistrationMethods, |
26 arraysize(kShellRegistrationMethods)); | 26 arraysize(kShellRegistrationMethods)); |
27 } | 27 } |
28 | 28 |
29 } // namespace android | 29 } // namespace android |
30 } // namespace content | 30 } // namespace content |
OLD | NEW |