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

Side by Side Diff: trunk/src/chrome/browser/extensions/api/audio/audio_api.h

Issue 14655010: Revert 198556 "Implement the rest of the audio API." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUDIO_AUDIO_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUDIO_AUDIO_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUDIO_AUDIO_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_AUDIO_AUDIO_API_H_
7 7
8 #include "chrome/browser/extensions/api/audio/audio_service.h" 8 #include "chrome/browser/extensions/api/audio/audio_service.h"
9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" 9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
10 #include "chrome/browser/extensions/extension_function.h" 10 #include "chrome/browser/extensions/extension_function.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 protected: 47 protected:
48 virtual ~AudioGetInfoFunction() {} 48 virtual ~AudioGetInfoFunction() {}
49 virtual bool RunImpl() OVERRIDE; 49 virtual bool RunImpl() OVERRIDE;
50 50
51 private: 51 private:
52 void OnGetInfoCompleted(const OutputInfo& output_info, 52 void OnGetInfoCompleted(const OutputInfo& output_info,
53 const InputInfo& input_info, 53 const InputInfo& input_info,
54 bool success); 54 bool success);
55 }; 55 };
56 56
57 class AudioSetActiveDevicesFunction : public SyncExtensionFunction { 57 class AudioSetActiveDevicesFunction : public AsyncExtensionFunction {
58 public: 58 public:
59 DECLARE_EXTENSION_FUNCTION("audio.setActiveDevices", 59 DECLARE_EXTENSION_FUNCTION("audio.setActiveDevices",
60 AUDIO_SETACTIVEDEVICES); 60 AUDIO_SETACTIVEDEVICES);
61 61
62 protected: 62 protected:
63 virtual ~AudioSetActiveDevicesFunction() {} 63 virtual ~AudioSetActiveDevicesFunction() {}
64 virtual bool RunImpl() OVERRIDE; 64 virtual bool RunImpl() OVERRIDE;
65 }; 65 };
66 66
67 class AudioSetPropertiesFunction : public SyncExtensionFunction { 67 class AudioSetPropertiesFunction : public AsyncExtensionFunction {
68 public: 68 public:
69 DECLARE_EXTENSION_FUNCTION("audio.setProperties", 69 DECLARE_EXTENSION_FUNCTION("audio.setProperties",
70 AUDIO_SETPROPERTIES); 70 AUDIO_SETPROPERTIES);
71 71
72 protected: 72 protected:
73 virtual ~AudioSetPropertiesFunction() {} 73 virtual ~AudioSetPropertiesFunction() {}
74 virtual bool RunImpl() OVERRIDE; 74 virtual bool RunImpl() OVERRIDE;
75 }; 75 };
76 76
77 77
78 } // namespace extensions 78 } // namespace extensions
79 79
80 #endif // CHROME_BROWSER_EXTENSIONS_API_AUDIO_AUDIO_API_H_ 80 #endif // CHROME_BROWSER_EXTENSIONS_API_AUDIO_AUDIO_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698