| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CHROMEOS_EXTENSIONS_LAUNCHER_SEARCH_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_LAUNCHER_SEARCH_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_LAUNCHER_SEARCH_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_LAUNCHER_SEARCH_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/chrome_extension_function.h" | 8 #include "extensions/browser/extension_function.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 // Implements chrome.launcherSearchProvider.setSearchResults method. | 12 // Implements chrome.launcherSearchProvider.setSearchResults method. |
| 13 class LauncherSearchProviderSetSearchResultsFunction | 13 class LauncherSearchProviderSetSearchResultsFunction |
| 14 : public ChromeSyncExtensionFunction { | 14 : public UIThreadExtensionFunction { |
| 15 public: | 15 public: |
| 16 DECLARE_EXTENSION_FUNCTION("launcherSearchProvider.setSearchResults", | 16 DECLARE_EXTENSION_FUNCTION("launcherSearchProvider.setSearchResults", |
| 17 LAUNCHERSEARCHPROVIDER_SETSEARCHRESULTS) | 17 LAUNCHERSEARCHPROVIDER_SETSEARCHRESULTS) |
| 18 protected: | 18 protected: |
| 19 ~LauncherSearchProviderSetSearchResultsFunction() override; | 19 ~LauncherSearchProviderSetSearchResultsFunction() override; |
| 20 bool RunSync() override; | 20 ResponseAction Run() override; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace extensions | 23 } // namespace extensions |
| 24 | 24 |
| 25 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_LAUNCHER_SEARCH_PROVIDER_H_ | 25 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_LAUNCHER_SEARCH_PROVIDER_H_ |
| OLD | NEW |