OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/android/shortcut_helper.h" | 5 #include "chrome/browser/android/shortcut_helper.h" |
6 | 6 |
7 #include <jni.h> | 7 #include <jni.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/android/jni_array.h" | 11 #include "base/android/jni_array.h" |
12 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/threading/sequenced_worker_pool.h" | |
19 #include "chrome/browser/android/webapk/chrome_webapk_host.h" | 18 #include "chrome/browser/android/webapk/chrome_webapk_host.h" |
20 #include "chrome/browser/android/webapk/webapk_install_service.h" | 19 #include "chrome/browser/android/webapk/webapk_install_service.h" |
21 #include "chrome/browser/manifest/manifest_icon_downloader.h" | 20 #include "chrome/browser/manifest/manifest_icon_downloader.h" |
22 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
23 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
24 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
25 #include "jni/ShortcutHelper_jni.h" | 24 #include "jni/ShortcutHelper_jni.h" |
26 #include "ui/gfx/android/java_bitmap.h" | 25 #include "ui/gfx/android/java_bitmap.h" |
27 #include "ui/gfx/color_analysis.h" | 26 #include "ui/gfx/color_analysis.h" |
28 #include "url/gurl.h" | 27 #include "url/gurl.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 347 |
349 ShortcutHelper::WebApkInfoCallback* webapk_list_callback = | 348 ShortcutHelper::WebApkInfoCallback* webapk_list_callback = |
350 reinterpret_cast<ShortcutHelper::WebApkInfoCallback*>(jcallback_pointer); | 349 reinterpret_cast<ShortcutHelper::WebApkInfoCallback*>(jcallback_pointer); |
351 webapk_list_callback->Run(webapk_list); | 350 webapk_list_callback->Run(webapk_list); |
352 delete webapk_list_callback; | 351 delete webapk_list_callback; |
353 } | 352 } |
354 | 353 |
355 bool ShortcutHelper::RegisterShortcutHelper(JNIEnv* env) { | 354 bool ShortcutHelper::RegisterShortcutHelper(JNIEnv* env) { |
356 return RegisterNativesImpl(env); | 355 return RegisterNativesImpl(env); |
357 } | 356 } |
OLD | NEW |