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

Side by Side Diff: blimp/client/app/android/blimp_library_loader.cc

Issue 1636163002: Restructure contents of blimp/client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « blimp/client/app/android/blimp_library_loader.h ('k') | blimp/client/app/android/blimp_view.h » ('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 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 #include "blimp/client/android/blimp_library_loader.h" 5 #include "blimp/client/app/android/blimp_library_loader.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/android/base_jni_onload.h" 9 #include "base/android/base_jni_onload.h"
10 #include "base/android/base_jni_registrar.h" 10 #include "base/android/base_jni_registrar.h"
11 #include "base/android/jni_android.h" 11 #include "base/android/jni_android.h"
12 #include "base/android/library_loader/library_loader_hooks.h" 12 #include "base/android/library_loader/library_loader_hooks.h"
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "blimp/client/android/blimp_jni_registrar.h" 15 #include "blimp/client/app/android/blimp_jni_registrar.h"
16 #include "blimp/client/blimp_startup.h" 16 #include "blimp/client/app/blimp_startup.h"
17 #include "jni/BlimpLibraryLoader_jni.h" 17 #include "jni/BlimpLibraryLoader_jni.h"
18 #include "ui/gl/gl_surface.h" 18 #include "ui/gl/gl_surface.h"
19 19
20 namespace { 20 namespace {
21 21
22 bool OnLibrariesLoaded(JNIEnv* env, jclass clazz) { 22 bool OnLibrariesLoaded(JNIEnv* env, jclass clazz) {
23 blimp::client::InitializeLogging(); 23 blimp::client::InitializeLogging();
24 return true; 24 return true;
25 } 25 }
26 26
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Although we only need to register JNI for base/ and blimp/, this follows 70 // Although we only need to register JNI for base/ and blimp/, this follows
71 // the general Chrome for Android pattern, to be future-proof against future 71 // the general Chrome for Android pattern, to be future-proof against future
72 // changes to JNI. 72 // changes to JNI.
73 if (!base::android::OnJNIOnLoadRegisterJNI(vm, register_callbacks) || 73 if (!base::android::OnJNIOnLoadRegisterJNI(vm, register_callbacks) ||
74 !base::android::OnJNIOnLoadInit(init_callbacks)) { 74 !base::android::OnJNIOnLoadInit(init_callbacks)) {
75 return -1; 75 return -1;
76 } 76 }
77 77
78 return JNI_VERSION_1_4; 78 return JNI_VERSION_1_4;
79 } 79 }
OLDNEW
« no previous file with comments | « blimp/client/app/android/blimp_library_loader.h ('k') | blimp/client/app/android/blimp_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698