OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/banners/app_banner_manager.h" | 5 #include "chrome/browser/android/banners/app_banner_manager.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "chrome/browser/android/banners/app_banner_metrics_ids.h" | 11 #include "chrome/browser/android/banners/app_banner_metrics_ids.h" |
12 #include "chrome/browser/android/banners/app_banner_settings_helper.h" | 12 #include "chrome/browser/android/banners/app_banner_settings_helper.h" |
13 #include "chrome/browser/android/banners/app_banner_utilities.h" | 13 #include "chrome/browser/android/banners/app_banner_utilities.h" |
14 #include "chrome/browser/bitmap_fetcher.h" | 14 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "content/public/browser/android/content_view_core.h" | 17 #include "content/public/browser/android/content_view_core.h" |
18 #include "content/public/browser/navigation_details.h" | 18 #include "content/public/browser/navigation_details.h" |
19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
20 #include "content/public/common/frame_navigate_params.h" | 20 #include "content/public/common/frame_navigate_params.h" |
21 #include "jni/AppBannerManager_jni.h" | 21 #include "jni/AppBannerManager_jni.h" |
22 #include "net/base/load_flags.h" | 22 #include "net/base/load_flags.h" |
23 #include "ui/gfx/android/java_bitmap.h" | 23 #include "ui/gfx/android/java_bitmap.h" |
24 | 24 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 160 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
161 switches::kEnableAppInstallAlerts); | 161 switches::kEnableAppInstallAlerts); |
162 } | 162 } |
163 | 163 |
164 // Register native methods | 164 // Register native methods |
165 bool RegisterAppBannerManager(JNIEnv* env) { | 165 bool RegisterAppBannerManager(JNIEnv* env) { |
166 return RegisterNativesImpl(env); | 166 return RegisterNativesImpl(env); |
167 } | 167 } |
168 | 168 |
169 } // namespace banners | 169 } // namespace banners |
OLD | NEW |