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