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

Issue 10542092: Refactor the content interface for RequestMediaAccessPermission. (Closed)

Created:
8 years, 6 months ago by Evan Stade
Modified:
8 years, 6 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, jochen+watch-content_chromium.org, feature-media-reviews_chromium.org, jeremya+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org
Visibility:
Public.

Description

Refactor the content interface for RequestMediaAccessPermission. This makes RequestMediaAccessPermission a part of WebContentsDelegate instead of ContentBrowserClient. The request UI (or lack thereof) needs to be controlled by the WebContentsDelegate so that platform apps can grant permission differently than a normal browser. This also seems appropriate because each request is made on behalf of a particular web contents. BUG=130216 TEST=navigator.webkitGetUserMedia still works for normal web pages Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141792

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : clean up #

Total comments: 16

Patch Set 4 : review #

Patch Set 5 : actually remove typedef #

Total comments: 4

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -73 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 2 chunks +0 lines, -34 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/media_stream_infobar_delegate.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/media_stream_device_settings.cc View 1 2 3 3 chunks +26 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 11 chunks +23 lines, -12 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 3 chunks +0 lines, -12 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 3 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Evan Stade
http://codereview.chromium.org/10542092/diff/5001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): http://codereview.chromium.org/10542092/diff/5001/chrome/browser/chrome_content_browser_client.cc#oldcode1117 chrome/browser/chrome_content_browser_client.cc:1117: it also would have been possible to just do ...
8 years, 6 months ago (2012-06-09 05:47:38 UTC) #1
jochen (gone - plz use gerrit)
http://codereview.chromium.org/10542092/diff/5001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10542092/diff/5001/chrome/browser/ui/browser.cc#newcode3693 chrome/browser/ui/browser.cc:3693: TabContentsWrapper* tab = TabContentsWrapper is called TabContents these days ...
8 years, 6 months ago (2012-06-09 07:55:21 UTC) #2
jam
http://codereview.chromium.org/10542092/diff/5001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10542092/diff/5001/chrome/browser/ui/browser.cc#newcode3695 chrome/browser/ui/browser.cc:3695: DCHECK(tab); nit: no need for dcheck, if it's null ...
8 years, 6 months ago (2012-06-11 05:31:57 UTC) #3
macourteau
Moving RequestMediaAccessPermission from ContentBrowserClient to WebContentsDelegate lgtm Nit: it might worth adding comments saying that ...
8 years, 6 months ago (2012-06-11 15:07:09 UTC) #4
Evan Stade
http://codereview.chromium.org/10542092/diff/5001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10542092/diff/5001/chrome/browser/ui/browser.cc#newcode3693 chrome/browser/ui/browser.cc:3693: TabContentsWrapper* tab = On 2012/06/09 07:55:21, jochen wrote: > ...
8 years, 6 months ago (2012-06-12 00:00:45 UTC) #5
Evan Stade
On 2012/06/11 15:07:09, macourteau wrote: > Moving RequestMediaAccessPermission from ContentBrowserClient to > WebContentsDelegate lgtm > ...
8 years, 6 months ago (2012-06-12 00:05:31 UTC) #6
jam
http://codereview.chromium.org/10542092/diff/5001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10542092/diff/5001/chrome/browser/ui/browser.cc#newcode3695 chrome/browser/ui/browser.cc:3695: DCHECK(tab); On 2012/06/12 00:00:46, Evan Stade wrote: > On ...
8 years, 6 months ago (2012-06-12 00:29:06 UTC) #7
jam
(meant to say lgtm)
8 years, 6 months ago (2012-06-12 00:29:15 UTC) #8
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10542092/diff/10002/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): http://codereview.chromium.org/10542092/diff/10002/chrome/browser/chrome_content_browser_client.cc#newcode1138 chrome/browser/chrome_content_browser_client.cc:1138: if (io_data->GetExtensionInfoMap()->SecurityOriginHasAPIPermission( BTW, did you consider this approach (implementing ...
8 years, 6 months ago (2012-06-12 02:57:31 UTC) #9
Evan Stade
ping Jochen http://codereview.chromium.org/10542092/diff/10002/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): http://codereview.chromium.org/10542092/diff/10002/chrome/browser/chrome_content_browser_client.cc#newcode1138 chrome/browser/chrome_content_browser_client.cc:1138: if (io_data->GetExtensionInfoMap()->SecurityOriginHasAPIPermission( On 2012/06/12 02:57:31, Mihai Parparita ...
8 years, 6 months ago (2012-06-12 17:34:17 UTC) #10
jochen (gone - plz use gerrit)
lgtm
8 years, 6 months ago (2012-06-12 20:44:45 UTC) #11
Evan Stade
Mihai: lgty? (need OWNERS for extensions/) Scott: OWNERS for ui/browser.* please
8 years, 6 months ago (2012-06-12 22:55:11 UTC) #12
sky
LGTM
8 years, 6 months ago (2012-06-12 23:42:30 UTC) #13
Mihai Parparita -not on Chrome
8 years, 6 months ago (2012-06-12 23:48:04 UTC) #14
LGTM

Powered by Google App Engine
This is Rietveld 408576698