forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Media Router] Support custom timeout for route requests.
Add base::TimeDelta parameter to CreateRoute/JoinRoute/ ConnectRouteByRouteId APIs. This allows us to specify different timeout amounts depending on the source used in the route creation. This timeout will be provided to MRPM to be enforced. Note that if timeout is not provided, the MRPM will still use a default timeout in the interest of not keeping the extension alive indefinitely. In addition, a result code is added to the route response. Currently we have a TIMED_OUT code for timed out requests. In the future we can add more codes to differentiate error conditions in order to surface to pages that use Presentation API. Refactored the data of a route response into RouteRequestResult class. Modified the desktop UI code to pass in timeout amounts to CreateRoute and ConnectRouteByRouteId depending on source / cast mode. Also modified / simplified route request timeout logic in UI. BUG=581818,567368 Review URL: https://codereview.chromium.org/1639053003 Cr-Commit-Position: refs/heads/master@{#373708}
- Loading branch information
imcheng
authored and
Commit bot
committed
Feb 5, 2016
1 parent
600b32e
commit 20f3f90
Showing
32 changed files
with
661 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.