OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.webshare; |
| 6 |
| 7 import org.chromium.content.browser.ServiceRegistry.ImplementationFactory; |
| 8 import org.chromium.content_public.browser.WebContents; |
| 9 import org.chromium.mojom.webshare.ShareService; |
| 10 |
| 11 /** |
| 12 * Factory that creates instances of ShareService. |
| 13 */ |
| 14 public class ShareServiceImplementationFactory implements ImplementationFactory<
ShareService> { |
| 15 private final WebContents mWebContents; |
| 16 |
| 17 public ShareServiceImplementationFactory(WebContents webContents) { |
| 18 mWebContents = webContents; |
| 19 } |
| 20 |
| 21 @Override |
| 22 public ShareService createImpl() { |
| 23 return new ShareServiceImpl(mWebContents); |
| 24 } |
| 25 } |
OLD | NEW |