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

Unified Diff: content/browser/renderer_host/media/audio_renderer_host.h

Issue 1928493002: Use url::Origin to represent security origins in MediaStream-related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
Index: content/browser/renderer_host/media/audio_renderer_host.h
diff --git a/content/browser/renderer_host/media/audio_renderer_host.h b/content/browser/renderer_host/media/audio_renderer_host.h
index b4e9d3f329a009039635d0fc80ed1d0cba4e7133..4f2747be94790027c10675da740f38ef16530e7b 100644
--- a/content/browser/renderer_host/media/audio_renderer_host.h
+++ b/content/browser/renderer_host/media/audio_renderer_host.h
@@ -147,7 +147,7 @@ class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter {
int render_frame_id,
int session_id,
const std::string& device_id,
- const url::Origin& gurl_security_origin);
+ const url::Origin& security_origin);
// Creates an audio output stream with the specified format.
// Upon success/failure, the peer is notified via the NotifyStreamCreated
@@ -173,7 +173,7 @@ class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter {
// Proceed with device authorization after checking permissions.
void OnDeviceAuthorized(int stream_id,
const std::string& device_id,
- const GURL& security_origin,
+ const url::Origin& security_origin,
bool have_access);
// Proceed with device authorization after translating device ID.
@@ -219,7 +219,7 @@ class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter {
// Check if the renderer process has access to the requested output device.
void CheckOutputDeviceAccess(int render_frame_id,
const std::string& device_id,
- const GURL& gurl_security_origin,
+ const url::Origin& security_origin,
const OutputDeviceAccessCB& callback);
// Invoke |callback| after permission to use a device has been checked.
@@ -229,7 +229,7 @@ class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter {
// Translate the hashed |device_id| to a unique device ID.
void TranslateDeviceID(const std::string& device_id,
- const GURL& gurl_security_origin,
+ const url::Origin& security_origin,
const OutputDeviceInfoCB& callback,
const AudioOutputDeviceEnumeration& enumeration);

Powered by Google App Engine
This is Rietveld 408576698