| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.shell; | 5 package org.chromium.chrome.shell; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.content.Intent; | 8 import android.content.Intent; |
| 9 import android.net.Uri; | 9 import android.net.Uri; |
| 10 import android.provider.Browser; | 10 import android.provider.Browser; |
| 11 | 11 |
| 12 import org.chromium.chrome.browser.ServiceTabLauncher; | 12 import org.chromium.components.service_tab_launcher.ServiceTabLauncher; |
| 13 import org.chromium.ui.WindowOpenDisposition; | 13 import org.chromium.ui.WindowOpenDisposition; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Service Tab Launcher implementation for ChromeShell. Provides the ability for
Chromium to | 16 * Service Tab Launcher implementation for ChromeShell. Provides the ability for
Chromium to |
| 17 * launch tabs from background services, e.g. a Service Worker. | 17 * launch tabs from background services, e.g. a Service Worker. |
| 18 * | 18 * |
| 19 * This class is used as the Chrome Shell implementation of the ServiceTabLaunch
er, and is | 19 * This class is used as the Chrome Shell implementation of the ServiceTabLaunch
er, and is |
| 20 * referred to per a meta-data section in the manifest file. | 20 * referred to per a meta-data section in the manifest file. |
| 21 */ | 21 */ |
| 22 public class ChromeShellServiceTabLauncher extends ServiceTabLauncher { | 22 public class ChromeShellServiceTabLauncher extends ServiceTabLauncher { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 | 45 |
| 46 intent.putExtra(ServiceTabLauncher.LAUNCH_REQUEST_ID_EXTRA, requestId); | 46 intent.putExtra(ServiceTabLauncher.LAUNCH_REQUEST_ID_EXTRA, requestId); |
| 47 | 47 |
| 48 // TODO(peter): Support |incognito| when ChromeShell supports that. | 48 // TODO(peter): Support |incognito| when ChromeShell supports that. |
| 49 // TODO(peter): Support the referrer information, extra headers and post
data if | 49 // TODO(peter): Support the referrer information, extra headers and post
data if |
| 50 // ChromeShell gets support for those properties from intent extras. | 50 // ChromeShell gets support for those properties from intent extras. |
| 51 | 51 |
| 52 context.startActivity(intent); | 52 context.startActivity(intent); |
| 53 } | 53 } |
| 54 } | 54 } |
| OLD | NEW |