| 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 #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) |
| 12 | 12 |
| 13 #include <string> | |
| 14 | |
| 15 #include "chrome/browser/extensions/extension_function.h" | 13 #include "chrome/browser/extensions/extension_function.h" |
| 16 | 14 |
| 17 class RlzRecordProductEventFunction : public SyncExtensionFunction { | 15 class RlzRecordProductEventFunction : public SyncExtensionFunction { |
| 18 virtual bool RunImpl(); | 16 virtual bool RunImpl(); |
| 19 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.recordProductEvent") | 17 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.recordProductEvent") |
| 20 }; | 18 }; |
| 21 | 19 |
| 22 class RlzGetAccessPointRlzFunction : public SyncExtensionFunction { | 20 class RlzGetAccessPointRlzFunction : public SyncExtensionFunction { |
| 23 virtual bool RunImpl(); | 21 virtual bool RunImpl(); |
| 24 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.getAccessPointRlz") | 22 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.getAccessPointRlz") |
| 25 }; | 23 }; |
| 26 | 24 |
| 27 class RlzSendFinancialPingFunction : public SyncExtensionFunction { | 25 class RlzSendFinancialPingFunction : public SyncExtensionFunction { |
| 28 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.sendFinancialPing") | 26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.sendFinancialPing") |
| 29 // 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. |
| 30 protected: | 28 protected: |
| 31 virtual bool RunImpl(); | 29 virtual bool RunImpl(); |
| 32 }; | 30 }; |
| 33 | 31 |
| 34 class RlzClearProductStateFunction : public SyncExtensionFunction { | 32 class RlzClearProductStateFunction : public SyncExtensionFunction { |
| 35 virtual bool RunImpl(); | 33 virtual bool RunImpl(); |
| 36 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.clearProductState") | 34 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.clearProductState") |
| 37 }; | 35 }; |
| 38 | 36 |
| 39 #endif // defined(OS_WIN) | 37 #endif // defined(OS_WIN) |
| 40 | 38 |
| 41 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_RLZ_MODULE_H__ | 39 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_RLZ_MODULE_H__ |
| OLD | NEW |