| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 package org.chromium.content.browser; | 5 package org.chromium.content_public.browser; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 | 8 |
| 9 import org.chromium.base.CalledByNative; | 9 import org.chromium.base.CalledByNative; |
| 10 import org.chromium.base.JNINamespace; | 10 import org.chromium.base.JNINamespace; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Java counterpart of android DownloadController. | 13 * Java counterpart of android DownloadController. |
| 14 * | 14 * |
| 15 * Its a singleton class instantiated by the C++ DownloadController. | 15 * Its a singleton class instantiated by the C++ DownloadController. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 int downloadId) { | 158 int downloadId) { |
| 159 ContentViewDownloadDelegate downloadDelegate = downloadDelegateFromView(
view); | 159 ContentViewDownloadDelegate downloadDelegate = downloadDelegateFromView(
view); |
| 160 if (downloadDelegate != null) { | 160 if (downloadDelegate != null) { |
| 161 downloadDelegate.onDangerousDownload(filename, downloadId); | 161 downloadDelegate.onDangerousDownload(filename, downloadId); |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 // native methods | 165 // native methods |
| 166 private native void nativeInit(); | 166 private native void nativeInit(); |
| 167 } | 167 } |
| OLD | NEW |