| Index: chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_browser_proxy.js
|
| diff --git a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_browser_proxy.js b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_browser_proxy.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9c52c7962449b8aa0617bf11fa2bd6691290f7d0
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_browser_proxy.js
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2016 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.
|
| +
|
| +/**
|
| + * @fileoverview A helper object used from the "Clear browsing data" dialog
|
| + * to interact with the browser.
|
| + */
|
| +
|
| +cr.define('settings', function() {
|
| + /** @interface */
|
| + function ClearBrowsingDataBrowserProxy() {}
|
| +
|
| + ClearBrowsingDataBrowserProxy.prototype = {
|
| + /**
|
| + * @return {!Promise} A promise resolved when data clearing has completed.
|
| + */
|
| + clearBrowsingData: function() {},
|
| + };
|
| +
|
| + /**
|
| + * @constructor
|
| + * @implements {settings.ClearBrowsingDataBrowserProxy}
|
| + */
|
| + function ClearBrowsingDataBrowserProxyImpl() {}
|
| + cr.addSingletonGetter(ClearBrowsingDataBrowserProxyImpl);
|
| +
|
| + ClearBrowsingDataBrowserProxyImpl.prototype = {
|
| + /** @override */
|
| + clearBrowsingData: function() {
|
| + return cr.sendWithPromise('clearBrowsingData');
|
| + },
|
| + };
|
| +
|
| + return {
|
| + ClearBrowsingDataBrowserProxyImpl: ClearBrowsingDataBrowserProxyImpl,
|
| + };
|
| +});
|
|
|