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 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_DISCOVERY_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_DISCOVERY_API_H_ 7 8 #include "chrome/browser/extensions/extension_function.h" 9 10 namespace extensions { 11 12 class DiscoverySuggestFunction : public SyncExtensionFunction { 13 public: 14 DECLARE_EXTENSION_FUNCTION("experimental.discovery.suggest", 15 EXPERIMENTAL_DISCOVERY_SUGGEST) 16 17 protected: 18 virtual ~DiscoverySuggestFunction() {} 19 virtual bool RunImpl() OVERRIDE; 20 }; 21 22 class DiscoveryRemoveSuggestionFunction : public SyncExtensionFunction { 23 public: 24 DECLARE_EXTENSION_FUNCTION("experimental.discovery.removeSuggestion", 25 EXPERIMENTAL_DISCOVERY_REMOVESUGGESTION) 26 27 protected: 28 virtual ~DiscoveryRemoveSuggestionFunction() {} 29 virtual bool RunImpl() OVERRIDE; 30 }; 31 32 class DiscoveryClearAllSuggestionsFunction : public SyncExtensionFunction { 33 public: 34 DECLARE_EXTENSION_FUNCTION("experimental.discovery.clearAllSuggestions", 35 EXPERIMENTAL_DISCOVERY_CLEARALLSUGGESTIONS) 36 37 protected: 38 virtual ~DiscoveryClearAllSuggestionsFunction() {} 39 virtual bool RunImpl() OVERRIDE; 40 }; 41 42 } // namespace extensions 43 44 #endif // CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_DISCOVERY_API_H_ 45