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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__
6 #define CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__
7 #pragma once
8
9 #include "chrome/browser/extensions/extension_function.h"
10
11 class AlarmsSetFunction : public SyncExtensionFunction {
12 protected:
13 virtual bool RunImpl() OVERRIDE;
14 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.set");
15 };
16
17 class AlarmsGetFunction : public SyncExtensionFunction {
18 protected:
19 virtual bool RunImpl() OVERRIDE;
20 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.get");
21 };
22
23 class AlarmsGetAllFunction : public SyncExtensionFunction {
24 protected:
25 virtual bool RunImpl() OVERRIDE;
26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.getAll");
27 };
28
29 class AlarmsClearFunction : public SyncExtensionFunction {
30 protected:
31 virtual bool RunImpl() OVERRIDE;
32 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.clear");
33 };
34
35 class AlarmsClearAllFunction : public SyncExtensionFunction {
36 protected:
37 virtual bool RunImpl() OVERRIDE;
38 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.clearAll");
39 };
40
41 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__
OLDNEW
« 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