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

Unified Diff: chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 6 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: chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
diff --git a/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h b/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
index be4a9e8305866cc8bd31312b08a62635236479ab..be981545f6ba92671e683f03e1f24dc513639436 100644
--- a/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
+++ b/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
@@ -117,7 +117,7 @@ class WebrtcAudioPrivateGetSinksFunction : public WebrtcAudioPrivateFunction {
// Sequence of events is that we query the list of sinks on the
// AudioManager's thread, then calculate HMACs on the IO thread,
// then finish on the UI thread.
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
void DoQuery();
virtual void OnOutputDeviceNames(
scoped_ptr<media::AudioDeviceNames> raw_ids) OVERRIDE;
@@ -133,7 +133,7 @@ class WebrtcAudioPrivateGetActiveSinkFunction
DECLARE_EXTENSION_FUNCTION("webrtcAudioPrivate.getActiveSink",
WEBRTC_AUDIO_PRIVATE_GET_ACTIVE_SINK);
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
virtual void OnControllerList(
const content::RenderViewHost::AudioOutputControllerList&
controllers) OVERRIDE;
@@ -152,7 +152,7 @@ class WebrtcAudioPrivateSetActiveSinkFunction
DECLARE_EXTENSION_FUNCTION("webrtcAudioPrivate.setActiveSink",
WEBRTC_AUDIO_PRIVATE_SET_ACTIVE_SINK);
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
virtual void OnControllerList(
const content::RenderViewHost::AudioOutputControllerList&
controllers) OVERRIDE;
@@ -184,7 +184,7 @@ class WebrtcAudioPrivateGetAssociatedSinkFunction
DECLARE_EXTENSION_FUNCTION("webrtcAudioPrivate.getAssociatedSink",
WEBRTC_AUDIO_PRIVATE_GET_ASSOCIATED_SINK);
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
// This implementation is slightly complicated because of different
// thread requirements for the various functions we need to invoke.

Powered by Google App Engine
This is Rietveld 408576698