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

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

Issue 363993003: Move chrome.power API from chrome/ to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix quotes in gn file Created 6 years, 6 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
« no previous file with comments | « chrome/browser/extensions/api/power/OWNERS ('k') | chrome/browser/extensions/api/power/power_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/power/power_api.h
diff --git a/chrome/browser/extensions/api/power/power_api.h b/chrome/browser/extensions/api/power/power_api.h
deleted file mode 100644
index 6b12d2ad689220e9736cda73b24a2310cdd9d423..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/power/power_api.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_POWER_POWER_API_H_
-#define CHROME_BROWSER_EXTENSIONS_API_POWER_POWER_API_H_
-
-#include "extensions/browser/extension_function.h"
-
-namespace extensions {
-
-// Implementation of the chrome.power.requestKeepAwake API.
-class PowerRequestKeepAwakeFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("power.requestKeepAwake", POWER_REQUESTKEEPAWAKE)
-
- protected:
- virtual ~PowerRequestKeepAwakeFunction() {}
-
- // ExtensionFunction:
- virtual bool RunSync() OVERRIDE;
-};
-
-// Implementation of the chrome.power.releaseKeepAwake API.
-class PowerReleaseKeepAwakeFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("power.releaseKeepAwake", POWER_RELEASEKEEPAWAKE)
-
- protected:
- virtual ~PowerReleaseKeepAwakeFunction() {}
-
- // ExtensionFunction:
- virtual bool RunSync() OVERRIDE;
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_POWER_POWER_API_H_
« no previous file with comments | « chrome/browser/extensions/api/power/OWNERS ('k') | chrome/browser/extensions/api/power/power_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698