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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolved race condition Created 4 years, 6 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
OLDNEW
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 package org.chromium.chrome.browser.download; 5 package org.chromium.chrome.browser.download;
6 6
7 import android.content.ComponentName; 7 import android.content.ComponentName;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.ServiceConnection; 10 import android.content.ServiceConnection;
11 import android.os.IBinder; 11 import android.os.IBinder;
12 12
13 import org.chromium.base.Log; 13 import org.chromium.base.Log;
14 import org.chromium.base.ThreadUtils; 14 import org.chromium.base.ThreadUtils;
15 import org.chromium.base.VisibleForTesting; 15 import org.chromium.base.VisibleForTesting;
16 import org.chromium.content.browser.DownloadInfo;
17 16
18 import java.util.ArrayList; 17 import java.util.ArrayList;
19 import java.util.HashSet; 18 import java.util.HashSet;
20 import java.util.List; 19 import java.util.List;
21 import java.util.Set; 20 import java.util.Set;
22 21
23 import javax.annotation.Nullable; 22 import javax.annotation.Nullable;
24 23
25 /** 24 /**
26 * DownloadNotifier implementation that creates and updates download notificatio ns. 25 * DownloadNotifier implementation that creates and updates download notificatio ns.
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 mBoundService.resumeAllPendingDownloads(); 289 mBoundService.resumeAllPendingDownloads();
291 stopServiceIfNeeded(); 290 stopServiceIfNeeded();
292 break; 291 break;
293 default: 292 default:
294 assert false; 293 assert false;
295 } 294 }
296 } 295 }
297 } 296 }
298 } 297 }
299 } 298 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698