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

Side by Side Diff: ui/file_manager/file_manager/background/js/media_import_handler.js

Issue 2883263002: Stop foreground depending on background in gyp v2 (Closed)
Patch Set: Format. 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
OLDNEW
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 // Namespace 5 // Namespace
6 var importer = importer || {}; 6 var importer = importer || {};
7 7
8 /** 8 /**
9 * Interface providing access to information about active import processes.
10 *
11 * @interface
12 */
13 importer.ImportRunner = function() {};
14
15 /**
16 * Imports all media identified by scanResult.
17 *
18 * @param {!importer.ScanResult} scanResult
19 * @param {!importer.Destination} destination
20 * @param {!Promise<!DirectoryEntry>} directoryPromise
21 *
22 * @return {!importer.MediaImportHandler.ImportTask} The resulting import task.
23 */
24 importer.ImportRunner.prototype.importFromScanResult;
25
26 /**
27 * Handler for importing media from removable devices into the user's Drive. 9 * Handler for importing media from removable devices into the user's Drive.
28 * 10 *
29 * @constructor 11 * @constructor
30 * @implements {importer.ImportRunner} 12 * @implements {importer.ImportRunner}
31 * @struct 13 * @struct
32 * 14 *
33 * @param {!ProgressCenter} progressCenter 15 * @param {!ProgressCenter} progressCenter
34 * @param {!importer.HistoryLoader} historyLoader 16 * @param {!importer.HistoryLoader} historyLoader
35 * @param {!importer.DispositionChecker.CheckerFunction} dispositionChecker 17 * @param {!importer.DispositionChecker.CheckerFunction} dispositionChecker
36 * @param {!analytics.Tracker} tracker 18 * @param {!analytics.Tracker} tracker
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 metrics.ImportEvents.FILES_DEDUPLICATED 586 metrics.ImportEvents.FILES_DEDUPLICATED
605 .label(disposition) 587 .label(disposition)
606 .value(count)); 588 .value(count));
607 }.bind(this)); 589 }.bind(this));
608 590
609 this.tracker_.send( 591 this.tracker_.send(
610 metrics.ImportEvents.FILES_DEDUPLICATED 592 metrics.ImportEvents.FILES_DEDUPLICATED
611 .label('all-duplicates') 593 .label('all-duplicates')
612 .value(totalDeduped)); 594 .value(totalDeduped));
613 }; 595 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698