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

Unified Diff: content/public/browser/content_browser_client.h

Issue 10542092: Refactor the content interface for RequestMediaAccessPermission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index c5965fec65d9d1e55b3c59c96d47a7899aa8e96c..d595713f81677259d01d3c8034d15510cbee70c9 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -12,7 +12,6 @@
#include "base/callback_forward.h"
#include "content/public/common/content_client.h"
-#include "content/public/common/media_stream_request.h"
#include "content/public/common/window_container_type.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h"
@@ -68,8 +67,6 @@ class WebUIControllerFactory;
struct MainFunctionParams;
struct ShowDesktopNotificationHostMsgParams;
-typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback;
-
// Embedder API (or SPI) for participating in browser logic, to be implemented
// by the client of the content browser. See ChromeContentBrowserClient for the
// principal implementation. The methods are assumed to be called on the UI
@@ -292,15 +289,6 @@ class CONTENT_EXPORT ContentBrowserClient {
// return NULL if they're not interested.
virtual MediaObserver* GetMediaObserver();
- // Asks permission to use the camera and/or microphone. If permission is
- // granted, a call should be made to |callback| with the devices. If the
- // request is denied, a call should be made to |callback| with an empty list
- // of devices. |request| has the details of the request (e.g. which of audio
- // and/or video devices are requested, and lists of available devices).
- virtual void RequestMediaAccessPermission(
- const MediaStreamRequest* request,
- const MediaResponseCallback& callback) {}
-
// Asks permission to show desktop notifications.
virtual void RequestDesktopNotificationPermission(
const GURL& source_origin,
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698