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

Unified Diff: chrome/browser/chromeos/extensions/power/power_api.h

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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/chromeos/extensions/power/power_api.h
===================================================================
--- chrome/browser/chromeos/extensions/power/power_api.h (revision 181773)
+++ chrome/browser/chromeos/extensions/power/power_api.h (working copy)
@@ -8,35 +8,33 @@
#include "chrome/browser/extensions/extension_function.h"
namespace extensions {
-namespace power {
// Implementation of the chrome.experimental.power.requestKeepAwake API.
-class RequestKeepAwakeFunction : public SyncExtensionFunction {
+class PowerRequestKeepAwakeFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("experimental.power.requestKeepAwake",
EXPERIMENTAL_POWER_REQUESTKEEPAWAKE)
protected:
- virtual ~RequestKeepAwakeFunction() {}
+ virtual ~PowerRequestKeepAwakeFunction() {}
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
};
// Implementation of the chrome.experimental.power.releaseKeepAwake API.
-class ReleaseKeepAwakeFunction : public SyncExtensionFunction {
+class PowerReleaseKeepAwakeFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("experimental.power.releaseKeepAwake",
EXPERIMENTAL_POWER_RELEASEKEEPAWAKE)
protected:
- virtual ~ReleaseKeepAwakeFunction() {}
+ virtual ~PowerReleaseKeepAwakeFunction() {}
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
};
-} // namespace power
} // namespace extensions
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_POWER_POWER_API_H_
« no previous file with comments | « chrome/browser/chromeos/extensions/media_player_api.cc ('k') | chrome/browser/chromeos/extensions/power/power_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698