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

Unified Diff: chrome/browser/extensions/api/alarms/alarms_api.h

Issue 9791011: Add experimental.alarms API to allow lazy background pages to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: docs Created 8 years, 9 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/alarms/alarms_api.h
diff --git a/chrome/browser/extensions/api/alarms/alarms_api.h b/chrome/browser/extensions/api/alarms/alarms_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d0ced284d67cf6721ee9b0b8fd564d1508c47ac
--- /dev/null
+++ b/chrome/browser/extensions/api/alarms/alarms_api.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2011 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_ALARMS_ALARMS_API_H__
+#define CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__
+#pragma once
+
+#include "chrome/browser/extensions/extension_function.h"
+
+class AlarmsSetFunction : public SyncExtensionFunction {
+ protected:
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.set");
+};
+
+class AlarmsGetFunction : public SyncExtensionFunction {
+ protected:
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.get");
+};
+
+class AlarmsGetAllFunction : public SyncExtensionFunction {
+ protected:
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.getAll");
+};
+
+class AlarmsClearFunction : public SyncExtensionFunction {
+ protected:
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.clear");
+};
+
+class AlarmsClearAllFunction : public SyncExtensionFunction {
+ protected:
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.clearAll");
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__
« no previous file with comments | « no previous file | chrome/browser/extensions/api/alarms/alarms_api.cc » ('j') | chrome/browser/extensions/api/alarms/alarms_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698