| 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 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) || defined(OS_MACOSX) | 10 #if defined(ENABLE_RLZ) |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/extensions/extension_function.h" | 13 #include "chrome/browser/extensions/extension_function.h" |
| 14 #include "rlz/lib/lib_values.h" | 14 #include "rlz/lib/lib_values.h" |
| 15 | 15 |
| 16 class RlzRecordProductEventFunction : public SyncExtensionFunction { | 16 class RlzRecordProductEventFunction : public SyncExtensionFunction { |
| 17 public: | 17 public: |
| 18 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.recordProductEvent") | 18 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.recordProductEvent") |
| 19 | 19 |
| 20 protected: | 20 protected: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 public: | 65 public: |
| 66 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.clearProductState") | 66 DECLARE_EXTENSION_FUNCTION_NAME("experimental.rlz.clearProductState") |
| 67 | 67 |
| 68 protected: | 68 protected: |
| 69 virtual ~RlzClearProductStateFunction() {} | 69 virtual ~RlzClearProductStateFunction() {} |
| 70 | 70 |
| 71 // ExtensionFunction: | 71 // ExtensionFunction: |
| 72 virtual bool RunImpl() OVERRIDE; | 72 virtual bool RunImpl() OVERRIDE; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 75 #endif // defined(ENABLE_RLZ) |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_RLZ_RLZ_EXTENSION_API_H_ | 77 #endif // CHROME_BROWSER_RLZ_RLZ_EXTENSION_API_H_ |
| OLD | NEW |