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