OLD | NEW |
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_RLZ_RLZ_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_RLZ_RLZ_EXTENSION_API_H_ |
6 #define CHROME_BROWSER_RLZ_RLZ_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_RLZ_RLZ_EXTENSION_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) || defined(OS_MACOSX) |
12 | 12 |
13 #include "chrome/browser/extensions/extension_function.h" | 13 #include "chrome/browser/extensions/extension_function.h" |
14 | 14 |
15 class RlzRecordProductEventFunction : public SyncExtensionFunction { | 15 class RlzRecordProductEventFunction : public SyncExtensionFunction { |
16 virtual bool RunImpl() OVERRIDE; | 16 virtual bool RunImpl() OVERRIDE; |
17 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.recordProductEvent") | 17 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.recordProductEvent") |
18 }; | 18 }; |
19 | 19 |
20 class RlzGetAccessPointRlzFunction : public SyncExtensionFunction { | 20 class RlzGetAccessPointRlzFunction : public SyncExtensionFunction { |
21 virtual bool RunImpl() OVERRIDE; | 21 virtual bool RunImpl() OVERRIDE; |
22 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.getAccessPointRlz") | 22 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.getAccessPointRlz") |
23 }; | 23 }; |
24 | 24 |
25 class RlzSendFinancialPingFunction : public SyncExtensionFunction { | 25 class RlzSendFinancialPingFunction : public SyncExtensionFunction { |
26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.sendFinancialPing") | 26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.sendFinancialPing") |
27 // Making this function protected so that it can be overridden in tests. | 27 // Making this function protected so that it can be overridden in tests. |
28 protected: | 28 protected: |
29 virtual bool RunImpl() OVERRIDE; | 29 virtual bool RunImpl() OVERRIDE; |
30 }; | 30 }; |
31 | 31 |
32 class RlzClearProductStateFunction : public SyncExtensionFunction { | 32 class RlzClearProductStateFunction : public SyncExtensionFunction { |
33 virtual bool RunImpl() OVERRIDE; | 33 virtual bool RunImpl() OVERRIDE; |
34 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.clearProductState") | 34 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.clearProductState") |
35 }; | 35 }; |
36 | 36 |
37 #endif // defined(OS_WIN) | 37 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
38 | 38 |
39 #endif // CHROME_BROWSER_RLZ_RLZ_EXTENSION_API_H_ | 39 #endif // CHROME_BROWSER_RLZ_RLZ_EXTENSION_API_H_ |
OLD | NEW |