OLD | NEW |
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 "components/service_tab_launcher/browser/android/service_tab_launcher.h
" | 5 #include "components/service_tab_launcher/browser/android/service_tab_launcher.h
" |
6 | 6 |
| 7 #include "base/android/context_utils.h" |
7 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
8 #include "base/callback.h" | 9 #include "base/callback.h" |
9 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
10 #include "content/public/browser/page_navigator.h" | 11 #include "content/public/browser/page_navigator.h" |
11 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
12 #include "jni/ServiceTabLauncher_jni.h" | 13 #include "jni/ServiceTabLauncher_jni.h" |
13 | 14 |
14 using base::android::AttachCurrentThread; | 15 using base::android::AttachCurrentThread; |
15 using base::android::ConvertUTF8ToJavaString; | 16 using base::android::ConvertUTF8ToJavaString; |
16 using base::android::GetApplicationContext; | 17 using base::android::GetApplicationContext; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 callback->Run(web_contents); | 96 callback->Run(web_contents); |
96 | 97 |
97 tab_launched_callbacks_.Remove(request_id); | 98 tab_launched_callbacks_.Remove(request_id); |
98 } | 99 } |
99 | 100 |
100 bool ServiceTabLauncher::RegisterServiceTabLauncher(JNIEnv* env) { | 101 bool ServiceTabLauncher::RegisterServiceTabLauncher(JNIEnv* env) { |
101 return RegisterNativesImpl(env); | 102 return RegisterNativesImpl(env); |
102 } | 103 } |
103 | 104 |
104 } // namespace service_tab_launcher | 105 } // namespace service_tab_launcher |
OLD | NEW |