| Index: chrome/browser/resources/settings/downloads_page/downloads_browser_proxy.js
|
| diff --git a/chrome/browser/resources/settings/downloads_page/downloads_browser_proxy.js b/chrome/browser/resources/settings/downloads_page/downloads_browser_proxy.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2f510a1d012f9189d4baf484246263934d97b612
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/settings/downloads_page/downloads_browser_proxy.js
|
| @@ -0,0 +1,46 @@
|
| +// 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.
|
| +
|
| +cr.define('settings', function() {
|
| + /** @interface */
|
| + function DownloadsBrowserProxy() {}
|
| +
|
| + DownloadsBrowserProxy.prototype = {
|
| + initializeDownloads: assertNotReached,
|
| +
|
| + selectDownloadLocation: assertNotReached,
|
| +
|
| + resetAutoOpenFileTypes: assertNotReached,
|
| + };
|
| +
|
| + /**
|
| + * @implements {settings.DownloadsBrowserProxy}
|
| + * @constructor
|
| + */
|
| + function DownloadsBrowserProxyImpl() {}
|
| +
|
| + cr.addSingletonGetter(DownloadsBrowserProxyImpl);
|
| +
|
| + DownloadsBrowserProxyImpl.prototype = {
|
| + /** @override */
|
| + initializeDownloads: function() {
|
| + chrome.send('initializeDownloads');
|
| + },
|
| +
|
| + /** @override */
|
| + selectDownloadLocation: function() {
|
| + chrome.send('selectDownloadLocation');
|
| + },
|
| +
|
| + /** @override */
|
| + resetAutoOpenFileTypes: function() {
|
| + chrome.send('resetAutoOpenFileTypes');
|
| + },
|
| + };
|
| +
|
| + return {
|
| + DownloadsBrowserProxy: DownloadsBrowserProxy,
|
| + DownloadsBrowserProxyImpl: DownloadsBrowserProxyImpl,
|
| + };
|
| +});
|
|
|