DescriptionFirst step in enabling creating tabs without an Activity on Android.
This patch modifies the ContentBrowserClient::OpenURL method to pass a
callback, to be invoked when the content::WebContents* is available,
rather than returning it immediately as this will be an asynchronous
process on Android.
For actually opening a new tab, we create a ServiceTabCreator class which
has the ability to create tabs from Services. This method will fire
an intent to start the activity asynchronously.
The follow-up patch will make the activity communicate back a reference
to the created TabAndroid / WebContents, which allows the Service to
get it, and finalize the callback as expected.
BUG=454809
Committed: https://crrev.com/bbcccc162d55f19e30fced510a701d44e96e86f8
Cr-Commit-Position: refs/heads/master@{#315855}
Patch Set 1 #Patch Set 2 : Remove some debugging left-overs #Patch Set 3 : s/NavigationUtils/ServiceTabCreator/g #
Total comments: 16
Patch Set 4 : comments #Patch Set 5 : Some textual renames I missed #Patch Set 6 : rebase on tot #Patch Set 7 : #
Total comments: 30
Patch Set 8 : comments #Patch Set 9 : #
Total comments: 6
Patch Set 10 : #Patch Set 11 : #
Total comments: 6
Patch Set 12 : rebase #Messages
Total messages: 23 (6 generated)
|