Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Issue 18420011: Support cancellation of request for opening device. (Closed)

Created:
7 years, 5 months ago by wjia(left Chromium)
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org, yzshen1
Visibility:
Public.

Description

Support cancellation of request for opening device. Since Pepper starts to use media stream UI to get device access permission, it needs a way to cancel OpenDevice request, e.g., when page is reloaded. This patch also fixes a long standing bug in CancelGenerateStream which mixed up request_id with ipc_request_id. BUG=252904 R=tommi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210043

Patch Set 1 #

Total comments: 2

Patch Set 2 : add IsThisRequest method and some comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -11 lines) Patch
M content/renderer/media/media_stream_dispatcher.h View 1 3 chunks +14 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_dispatcher.cc View 1 6 chunks +29 lines, -6 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/mock_media_stream_dispatcher.h View 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/media/mock_media_stream_dispatcher.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
wjia(left Chromium)
We might combine CancelGenerateStream and CancelOpenDevice into one function CancelRequest. But since it's likely this ...
7 years, 5 months ago (2013-07-03 00:24:15 UTC) #1
tommi (sloooow) - chröme
I've just got one question below. If the answer to it is that what uniquely ...
7 years, 5 months ago (2013-07-03 08:05:12 UTC) #2
wjia(left Chromium)
PTAL. https://codereview.chromium.org/18420011/diff/1/content/renderer/media/media_stream_dispatcher.cc File content/renderer/media/media_stream_dispatcher.cc (right): https://codereview.chromium.org/18420011/diff/1/content/renderer/media/media_stream_dispatcher.cc#newcode98 content/renderer/media/media_stream_dispatcher.cc:98: it->handler.get() == event_handler.get()) { On 2013/07/03 08:05:12, tommi ...
7 years, 5 months ago (2013-07-03 17:41:35 UTC) #3
tommi (sloooow) - chröme
Thanks for the info. What do you say about adding a method to do the ...
7 years, 5 months ago (2013-07-03 17:51:20 UTC) #4
tommi (sloooow) - chröme
I somehow missed that you already did this in your latest patch set, so lgtm!
7 years, 5 months ago (2013-07-03 18:56:27 UTC) #5
wjia(left Chromium)
7 years, 5 months ago (2013-07-03 21:33:05 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r210043 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698