Chromium Code Reviews| Index: chrome/browser/resources/settings/privacy_page/privacy_page_browser_proxy.js |
| diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page_browser_proxy.js b/chrome/browser/resources/settings/privacy_page/privacy_page_browser_proxy.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..98d9e50743613961efe432dc884855fad35f39f6 |
| --- /dev/null |
| +++ b/chrome/browser/resources/settings/privacy_page/privacy_page_browser_proxy.js |
| @@ -0,0 +1,34 @@ |
| +// 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 Handles interprocess communcation for the privacy page. */ |
| + |
| +cr.define('settings', function() { |
| + /** @interface */ |
| + function PrivacyPageBrowserProxy() {} |
| + |
| + PrivacyPageBrowserProxy.prototype = { |
| + /** Invokes the native certificate manager (used by win and mac). */ |
| + showManageSSLCertificates: function() {}, |
|
Dan Beam
2016/03/31 00:20:57
arguable nit: SSL -> Ssl
|
| + }; |
| + |
| + /** |
| + * @constructor |
| + * @implements {settings.PrivacyPageBrowserProxy} |
| + */ |
| + function PrivacyPageBrowserProxyImpl() {} |
| + cr.addSingletonGetter(PrivacyPageBrowserProxyImpl); |
| + |
| + PrivacyPageBrowserProxyImpl.prototype = { |
| + /** @override */ |
| + showManageSSLCertificates: function() { |
| + chrome.send('showManageSSLCertificates'); |
| + }, |
| + }; |
| + |
| + return { |
| + PrivacyPageBrowserProxy: PrivacyPageBrowserProxy, |
| + PrivacyPageBrowserProxyImpl: PrivacyPageBrowserProxyImpl, |
| + }; |
| +}); |