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

Side by Side Diff: chrome/browser/extensions/api/audio/audio_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, 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/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "extensions/browser/browser_context_keyed_api_factory.h" 10 #include "extensions/browser/browser_context_keyed_api_factory.h"
(...skipping 27 matching lines...) Expand all
38 AudioService* service_; 38 AudioService* service_;
39 }; 39 };
40 40
41 class AudioGetInfoFunction : public ChromeAsyncExtensionFunction { 41 class AudioGetInfoFunction : public ChromeAsyncExtensionFunction {
42 public: 42 public:
43 DECLARE_EXTENSION_FUNCTION("audio.getInfo", 43 DECLARE_EXTENSION_FUNCTION("audio.getInfo",
44 AUDIO_GETINFO); 44 AUDIO_GETINFO);
45 45
46 protected: 46 protected:
47 virtual ~AudioGetInfoFunction() {} 47 virtual ~AudioGetInfoFunction() {}
48 virtual bool RunImpl() OVERRIDE; 48 virtual bool RunAsync() OVERRIDE;
49 49
50 private: 50 private:
51 void OnGetInfoCompleted(const OutputInfo& output_info, 51 void OnGetInfoCompleted(const OutputInfo& output_info,
52 const InputInfo& input_info, 52 const InputInfo& input_info,
53 bool success); 53 bool success);
54 }; 54 };
55 55
56 class AudioSetActiveDevicesFunction : public ChromeSyncExtensionFunction { 56 class AudioSetActiveDevicesFunction : public ChromeSyncExtensionFunction {
57 public: 57 public:
58 DECLARE_EXTENSION_FUNCTION("audio.setActiveDevices", 58 DECLARE_EXTENSION_FUNCTION("audio.setActiveDevices",
(...skipping 11 matching lines...) Expand all
70 70
71 protected: 71 protected:
72 virtual ~AudioSetPropertiesFunction() {} 72 virtual ~AudioSetPropertiesFunction() {}
73 virtual bool RunSync() OVERRIDE; 73 virtual bool RunSync() OVERRIDE;
74 }; 74 };
75 75
76 76
77 } // namespace extensions 77 } // namespace extensions
78 78
79 #endif // CHROME_BROWSER_EXTENSIONS_API_AUDIO_AUDIO_API_H_ 79 #endif // CHROME_BROWSER_EXTENSIONS_API_AUDIO_AUDIO_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/app_window/app_window_api.cc ('k') | chrome/browser/extensions/api/audio/audio_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698