Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
Aaron Boodman
2012/05/11 21:06:46
You should test this API code. See alarms API for
| |
| 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 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/extensions/extension_function.h" | |
| 10 | |
| 11 namespace extensions { | |
| 12 | |
| 13 class DiscoverySuggestFunction : public SyncExtensionFunction { | |
| 14 public: | |
| 15 DECLARE_EXTENSION_FUNCTION_NAME("experimental.discovery.suggest"); | |
| 16 | |
| 17 protected: | |
| 18 virtual ~DiscoverySuggestFunction() {} | |
| 19 virtual bool RunImpl() OVERRIDE; | |
| 20 }; | |
| 21 | |
| 22 class DiscoveryClearSuggestionFunction : public SyncExtensionFunction { | |
| 23 public: | |
| 24 DECLARE_EXTENSION_FUNCTION_NAME("experimental.discovery.clearSuggestion"); | |
| 25 | |
| 26 protected: | |
| 27 virtual ~DiscoveryClearSuggestionFunction() {} | |
| 28 virtual bool RunImpl() OVERRIDE; | |
| 29 }; | |
| 30 | |
| 31 class DiscoveryClearAllSuggestionsFunction : public SyncExtensionFunction { | |
| 32 public: | |
| 33 DECLARE_EXTENSION_FUNCTION_NAME("experimental.discovery.clearAllSuggestions"); | |
| 34 | |
| 35 protected: | |
| 36 virtual ~DiscoveryClearAllSuggestionsFunction() {} | |
| 37 virtual bool RunImpl() OVERRIDE; | |
| 38 }; | |
| 39 | |
| 40 } // namespace extensions | |
| 41 | |
| 42 #endif // CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_DISCOVERY_API_H_ | |
| OLD | NEW |