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

Side by Side Diff: chrome/browser/extensions/api/alarms/alarms_api.h

Issue 10071035: RefCounted types should not have public destructors, chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/api_function.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ALARMS_ALARMS_API_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__
6 #define CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class AlarmsCreateFunction : public SyncExtensionFunction { 13 class AlarmsCreateFunction : public SyncExtensionFunction {
14 public:
15 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.create");
16
14 protected: 17 protected:
18 virtual ~AlarmsCreateFunction() {}
19
20 // ExtensionFunction:
15 virtual bool RunImpl() OVERRIDE; 21 virtual bool RunImpl() OVERRIDE;
16 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.create");
17 }; 22 };
18 23
19 class AlarmsGetFunction : public SyncExtensionFunction { 24 class AlarmsGetFunction : public SyncExtensionFunction {
25 public:
26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.get");
27
20 protected: 28 protected:
29 virtual ~AlarmsGetFunction() {}
30
31 // ExtensionFunction:
21 virtual bool RunImpl() OVERRIDE; 32 virtual bool RunImpl() OVERRIDE;
22 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.get");
23 }; 33 };
24 34
25 class AlarmsGetAllFunction : public SyncExtensionFunction { 35 class AlarmsGetAllFunction : public SyncExtensionFunction {
36 public:
37 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.getAll");
38
26 protected: 39 protected:
40 virtual ~AlarmsGetAllFunction() {}
41
42 // ExtensionFunction:
27 virtual bool RunImpl() OVERRIDE; 43 virtual bool RunImpl() OVERRIDE;
28 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.getAll");
29 }; 44 };
30 45
31 class AlarmsClearFunction : public SyncExtensionFunction { 46 class AlarmsClearFunction : public SyncExtensionFunction {
47 public:
48 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.clear");
49
32 protected: 50 protected:
51 virtual ~AlarmsClearFunction() {}
52
53 // ExtensionFunction:
33 virtual bool RunImpl() OVERRIDE; 54 virtual bool RunImpl() OVERRIDE;
34 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.clear");
35 }; 55 };
36 56
37 class AlarmsClearAllFunction : public SyncExtensionFunction { 57 class AlarmsClearAllFunction : public SyncExtensionFunction {
58 public:
59 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.clearAll");
60
38 protected: 61 protected:
62 virtual ~AlarmsClearAllFunction() {}
63
64 // ExtensionFunction:
39 virtual bool RunImpl() OVERRIDE; 65 virtual bool RunImpl() OVERRIDE;
40 DECLARE_EXTENSION_FUNCTION_NAME("experimental.alarms.clearAll");
41 }; 66 };
42 67
43 } // namespace extensions 68 } // namespace extensions
44 69
45 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__ 70 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARMS_API_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/api_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698