Standardize parameters passed when Tabs are created asynchronously.
commitb24a3b7041f8f269483afa6e9708562b32667fd3
authordfalcantara <dfalcantara@chromium.org>
Sat, 11 Jul 2015 00:38:15 +0000 (10 17:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 11 Jul 2015 00:38:49 +0000 (11 00:38 +0000)
tree9435e1751d5e13fa4849a3c7ecbdabd95c2e0ecf
parent5fd713ee7244a4949e120c9ababdb71fda3109f5
Standardize parameters passed when Tabs are created asynchronously.

* Pulls out PendingDocumentData from the DocumentTabModelSelector and makes
  it a standalone thing.  The new AsyncTabCreationParamsManager acts as the
  DocumentTabModelSelector did and stores a mapping of Tab IDs to pending
  data, which are now stored in AsyncTabCreationParams.

* Callsites are all changed to use the new AsyncTabCreationParams instead.

* AsyncTabCreationParams now stores a LoadUrlParams instead of random fields
  from the LoadUrlParams.

* Fields in the AsyncTabCreationParams are clearly marked exclusive, based
  on how they are constructed.

BUG=508333

Review URL: https://codereview.chromium.org/1235523003

Cr-Commit-Position: refs/heads/master@{#338411}
12 files changed:
chrome/android/java/src/org/chromium/chrome/browser/ChromeServiceTabLauncher.java
chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java
chrome/android/java/src/org/chromium/chrome/browser/document/PendingDocumentData.java [deleted file]
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/AsyncTabCreationParams.java [new file with mode: 0644]
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/AsyncTabCreationParamsManager.java [new file with mode: 0644]
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelSelector.java
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/TabDelegate.java
chrome/android/javatests/src/org/chromium/chrome/browser/ChromeTabbedActivityLollipopAndAboveTest.java
chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java
chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java