Chromium Code Reviews| Index: ui/file_manager/externs/background/volume_manager_factory.js |
| diff --git a/ui/file_manager/externs/background/volume_manager_factory.js b/ui/file_manager/externs/background/volume_manager_factory.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cebb971fca892ed9fa6cd5f4a4f26b21f2a76845 |
| --- /dev/null |
| +++ b/ui/file_manager/externs/background/volume_manager_factory.js |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
|
fukino
2017/05/17 04:58:56
Do we need this file in addition to background_win
oka
2017/05/17 08:45:42
Good catch. Just renamed background_window_common.
|
| +var volumeManagerFactory = { |
| + /** |
| + * Returns the VolumeManager instance asynchronously. If it has not been |
| + * created or is under initialization, it will waits for the finish of the |
| + * initialization. |
| + * @param {function(VolumeManager)=} opt_callback Called with the |
| + * VolumeManager instance. TODO(hirono): Remove the callback and use |
| + * Promise instead. |
| + * @return {Promise} Promise to be fulfilled with the volume manager. |
| + */ |
| + getInstance: function(opt_callback) {}, |
| + |
| + /** |
| + * Returns instance of VolumeManager for debug purpose. |
| + * This method returns VolumeManager.instance which may not be initialized. |
| + * |
| + * @return {VolumeManager} Volume manager. |
| + */ |
| + getInstanceForDebug: function() {}, |
| + |
| + /** |
| + * Revokes the singleton instance for testing. |
| + */ |
| + revokeInstanceForTesting: function() {} |
| +}; |