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

Side by Side Diff: chrome/browser/android/chrome_jni_registrar.cc

Issue 2886403005: Remove chrome_download_delegate.cc (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/download/chrome_download_delegate.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 (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 "chrome/browser/android/chrome_jni_registrar.h" 5 #include "chrome/browser/android/chrome_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 "base/macros.h" 9 #include "base/macros.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 26 matching lines...) Expand all
37 #include "chrome/browser/android/contextualsearch/contextual_search_manager.h" 37 #include "chrome/browser/android/contextualsearch/contextual_search_manager.h"
38 #include "chrome/browser/android/contextualsearch/contextual_search_tab_helper.h " 38 #include "chrome/browser/android/contextualsearch/contextual_search_tab_helper.h "
39 #include "chrome/browser/android/contextualsearch/ctr_suppression.h" 39 #include "chrome/browser/android/contextualsearch/ctr_suppression.h"
40 #include "chrome/browser/android/cookies/cookies_fetcher.h" 40 #include "chrome/browser/android/cookies/cookies_fetcher.h"
41 #include "chrome/browser/android/customtabs/origin_verifier.h" 41 #include "chrome/browser/android/customtabs/origin_verifier.h"
42 #include "chrome/browser/android/data_usage/data_use_tab_ui_manager_android.h" 42 #include "chrome/browser/android/data_usage/data_use_tab_ui_manager_android.h"
43 #include "chrome/browser/android/data_usage/external_data_use_observer_bridge.h" 43 #include "chrome/browser/android/data_usage/external_data_use_observer_bridge.h"
44 #include "chrome/browser/android/devtools_server.h" 44 #include "chrome/browser/android/devtools_server.h"
45 #include "chrome/browser/android/document/document_web_contents_delegate.h" 45 #include "chrome/browser/android/document/document_web_contents_delegate.h"
46 #include "chrome/browser/android/dom_distiller/distiller_ui_handle_android.h" 46 #include "chrome/browser/android/dom_distiller/distiller_ui_handle_android.h"
47 #include "chrome/browser/android/download/chrome_download_delegate.h"
48 #include "chrome/browser/android/download/download_controller.h" 47 #include "chrome/browser/android/download/download_controller.h"
49 #include "chrome/browser/android/download/download_manager_service.h" 48 #include "chrome/browser/android/download/download_manager_service.h"
50 #include "chrome/browser/android/download/items/offline_content_aggregator_facto ry_android.h" 49 #include "chrome/browser/android/download/items/offline_content_aggregator_facto ry_android.h"
51 #include "chrome/browser/android/download/ui/thumbnail_provider.h" 50 #include "chrome/browser/android/download/ui/thumbnail_provider.h"
52 #include "chrome/browser/android/favicon_helper.h" 51 #include "chrome/browser/android/favicon_helper.h"
53 #include "chrome/browser/android/feature_engagement_tracker/feature_engagement_t racker_factory_android.h" 52 #include "chrome/browser/android/feature_engagement_tracker/feature_engagement_t racker_factory_android.h"
54 #include "chrome/browser/android/feature_utilities.h" 53 #include "chrome/browser/android/feature_utilities.h"
55 #include "chrome/browser/android/feedback/connectivity_checker.h" 54 #include "chrome/browser/android/feedback/connectivity_checker.h"
56 #include "chrome/browser/android/feedback/screenshot_task.h" 55 #include "chrome/browser/android/feedback/screenshot_task.h"
57 #include "chrome/browser/android/find_in_page/find_in_page_bridge.h" 56 #include "chrome/browser/android/find_in_page/find_in_page_bridge.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 #endif 215 #endif
217 216
218 namespace android { 217 namespace android {
219 218
220 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 219 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
221 // Register JNI for components we depend on. 220 // Register JNI for components we depend on.
222 {"AppMenuDragHelper", RegisterAppMenuDragHelper}, 221 {"AppMenuDragHelper", RegisterAppMenuDragHelper},
223 {"DomDistillerContent", 222 {"DomDistillerContent",
224 dom_distiller::content::android::RegisterDomDistiller}, 223 dom_distiller::content::android::RegisterDomDistiller},
225 {"DomDistillerCore", dom_distiller::core::android::RegisterDomDistiller}, 224 {"DomDistillerCore", dom_distiller::core::android::RegisterDomDistiller},
226 {"ChromeDownloadDelegate", RegisterChromeDownloadDelegate},
227 {"GCMDriver", gcm::android::RegisterGCMDriverJni}, 225 {"GCMDriver", gcm::android::RegisterGCMDriverJni},
228 {"InstanceID", instance_id::android::RegisterInstanceIDJni}, 226 {"InstanceID", instance_id::android::RegisterInstanceIDJni},
229 {"Invalidation", invalidation::android::RegisterInvalidationJni}, 227 {"Invalidation", invalidation::android::RegisterInvalidationJni},
230 {"OfflineContentAggregatorBridge", 228 {"OfflineContentAggregatorBridge",
231 offline_items_collection::android::OfflineContentAggregatorBridge:: 229 offline_items_collection::android::OfflineContentAggregatorBridge::
232 Register}, 230 Register},
233 {"OfflineContentAggregator", RegisterOfflineContentAggregatorFactoryJni}, 231 {"OfflineContentAggregator", RegisterOfflineContentAggregatorFactoryJni},
234 {"Payments", payments::android::RegisterPayments}, 232 {"Payments", payments::android::RegisterPayments},
235 {"Policy", policy::android::RegisterPolicy}, 233 {"Policy", policy::android::RegisterPolicy},
236 {"SafeJson", safe_json::android::RegisterSafeJsonJni}, 234 {"SafeJson", safe_json::android::RegisterSafeJsonJni},
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 #endif 463 #endif
466 }; 464 };
467 465
468 bool RegisterBrowserJNI(JNIEnv* env) { 466 bool RegisterBrowserJNI(JNIEnv* env) {
469 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 467 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
470 return RegisterNativeMethods(env, kChromeRegisteredMethods, 468 return RegisterNativeMethods(env, kChromeRegisteredMethods,
471 arraysize(kChromeRegisteredMethods)); 469 arraysize(kChromeRegisteredMethods));
472 } 470 }
473 471
474 } // namespace android 472 } // namespace android
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/download/chrome_download_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698