diff options
author | peter <peter@chromium.org> | 2015-02-11 14:23:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-11 22:24:01 +0000 |
commit | bbcccc162d55f19e30fced510a701d44e96e86f8 (patch) | |
tree | d1051f92b1170e483e56907115433db6147b3aca /chromecast/chromecast.gyp | |
parent | 3382fc9d60d79fc9d829fd626a4d591d2f2a23ff (diff) | |
download | chromium_src-bbcccc162d55f19e30fced510a701d44e96e86f8.zip chromium_src-bbcccc162d55f19e30fced510a701d44e96e86f8.tar.gz chromium_src-bbcccc162d55f19e30fced510a701d44e96e86f8.tar.bz2 |
First 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
Review URL: https://codereview.chromium.org/897673002
Cr-Commit-Position: refs/heads/master@{#315855}
Diffstat (limited to 'chromecast/chromecast.gyp')
0 files changed, 0 insertions, 0 deletions