OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.content.Intent; | 9 import android.content.Intent; |
10 import android.content.SharedPreferences; | 10 import android.content.SharedPreferences; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 import org.chromium.chrome.browser.sync.GmsCoreSyncListener; | 82 import org.chromium.chrome.browser.sync.GmsCoreSyncListener; |
83 import org.chromium.chrome.browser.sync.SyncController; | 83 import org.chromium.chrome.browser.sync.SyncController; |
84 import org.chromium.chrome.browser.tab.AuthenticatorNavigationInterceptor; | 84 import org.chromium.chrome.browser.tab.AuthenticatorNavigationInterceptor; |
85 import org.chromium.chrome.browser.tab.Tab; | 85 import org.chromium.chrome.browser.tab.Tab; |
86 import org.chromium.chrome.browser.tabmodel.TabModelSelector; | 86 import org.chromium.chrome.browser.tabmodel.TabModelSelector; |
87 import org.chromium.chrome.browser.tabmodel.document.ActivityDelegateImpl; | 87 import org.chromium.chrome.browser.tabmodel.document.ActivityDelegateImpl; |
88 import org.chromium.chrome.browser.tabmodel.document.DocumentTabModelSelector; | 88 import org.chromium.chrome.browser.tabmodel.document.DocumentTabModelSelector; |
89 import org.chromium.chrome.browser.tabmodel.document.StorageDelegate; | 89 import org.chromium.chrome.browser.tabmodel.document.StorageDelegate; |
90 import org.chromium.chrome.browser.tabmodel.document.TabDelegate; | 90 import org.chromium.chrome.browser.tabmodel.document.TabDelegate; |
91 import org.chromium.chrome.browser.util.FeatureUtilities; | 91 import org.chromium.chrome.browser.util.FeatureUtilities; |
| 92 import org.chromium.chrome.browser.webapps.WebApkBuilder; |
92 import org.chromium.content.app.ContentApplication; | 93 import org.chromium.content.app.ContentApplication; |
93 import org.chromium.content.browser.ChildProcessCreationParams; | 94 import org.chromium.content.browser.ChildProcessCreationParams; |
94 import org.chromium.content.browser.ChildProcessLauncher; | 95 import org.chromium.content.browser.ChildProcessLauncher; |
95 import org.chromium.content.browser.ContentViewStatics; | 96 import org.chromium.content.browser.ContentViewStatics; |
96 import org.chromium.content.browser.DownloadController; | 97 import org.chromium.content.browser.DownloadController; |
97 import org.chromium.content.common.ContentSwitches; | 98 import org.chromium.content.common.ContentSwitches; |
98 import org.chromium.policy.AppRestrictionsProvider; | 99 import org.chromium.policy.AppRestrictionsProvider; |
99 import org.chromium.policy.CombinedPolicyProvider; | 100 import org.chromium.policy.CombinedPolicyProvider; |
100 import org.chromium.policy.CombinedPolicyProvider.PolicyChangeListener; | 101 import org.chromium.policy.CombinedPolicyProvider.PolicyChangeListener; |
101 import org.chromium.printing.PrintingController; | 102 import org.chromium.printing.PrintingController; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 } | 355 } |
355 | 356 |
356 /** | 357 /** |
357 * Returns a new instance of VariationsSession. | 358 * Returns a new instance of VariationsSession. |
358 */ | 359 */ |
359 public VariationsSession createVariationsSession() { | 360 public VariationsSession createVariationsSession() { |
360 return new VariationsSession(); | 361 return new VariationsSession(); |
361 } | 362 } |
362 | 363 |
363 /** | 364 /** |
| 365 * Returns factory for building WebAPKs. |
| 366 */ |
| 367 public WebApkBuilder createWebApkBuilder() { |
| 368 return null; |
| 369 } |
| 370 |
| 371 /** |
364 * Return a {@link AuthenticatorNavigationInterceptor} for the given {@link
Tab}. | 372 * Return a {@link AuthenticatorNavigationInterceptor} for the given {@link
Tab}. |
365 * This can be null if there are no applicable interceptor to be built. | 373 * This can be null if there are no applicable interceptor to be built. |
366 */ | 374 */ |
367 @SuppressWarnings("unused") | 375 @SuppressWarnings("unused") |
368 public AuthenticatorNavigationInterceptor createAuthenticatorNavigationInter
ceptor(Tab tab) { | 376 public AuthenticatorNavigationInterceptor createAuthenticatorNavigationInter
ceptor(Tab tab) { |
369 return null; | 377 return null; |
370 } | 378 } |
371 | 379 |
372 /** | 380 /** |
373 * Starts the application activity tracker. | 381 * Starts the application activity tracker. |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 * Caches flags that are needed by Activities that launch before the native
library is loaded | 857 * Caches flags that are needed by Activities that launch before the native
library is loaded |
850 * and stores them in SharedPreferences. Because this function is called dur
ing launch after the | 858 * and stores them in SharedPreferences. Because this function is called dur
ing launch after the |
851 * library has loaded, they won't affect the next launch until Chrome is res
tarted. | 859 * library has loaded, they won't affect the next launch until Chrome is res
tarted. |
852 */ | 860 */ |
853 private void cacheNativeFlags() { | 861 private void cacheNativeFlags() { |
854 if (sIsFinishedCachingNativeFlags) return; | 862 if (sIsFinishedCachingNativeFlags) return; |
855 FeatureUtilities.cacheNativeFlags(this); | 863 FeatureUtilities.cacheNativeFlags(this); |
856 sIsFinishedCachingNativeFlags = true; | 864 sIsFinishedCachingNativeFlags = true; |
857 } | 865 } |
858 } | 866 } |
OLD | NEW |